Skip to content

[WORKFLOW SDK FEATURE REQUEST] Support pydantic models #858

@leechristensen

Description

@leechristensen

Describe the WORKFLOW SDK feature

It would be convenient if workflows/activities could support Pydantic models as input, automatically handling the (de)serializaiton. Right now, they only support dictionaries or simple values. The motivation comes from wanting to use strongly typed objects vs dictionaries (which are more opaque in their types).

There is some precedent here with the FastAPI extension supporting them in subscriptions.

Release Note

RELEASE NOTE: Workflows and activities can now use Pydantic models as their input.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions