Skip to content

Sync instructions, output, validator functions don't work with Temporal #2805

@DouweM

Description

@DouweM

Initial Checks

Description

This doesn't raise an error, but causes the Temporal workflow to stall for some reason:

complex_agent = Agent( model, deps_type=Deps, name='agent', ) @agent.instructions def instructions(ctx: RunContext[Deps]) -> str: return 'Always be kind.' temporal_agent = TemporalAgent(agent) # now use the temporal_agent in a workflow

Example Code

Python, Pydantic AI & LLM client version

Pydantic AI v1.0.0b1 

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtemporal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions