Skip to main content
context is for conversation/message-history continuation.
context: agent.investigate_task passes the whole message history of investigate_task into propose_solution. The second agent then appends its own instruction and continues the work.

Context versus structured output

Use a structured reference when you need a value:
Use context: agent.name when you want the next agent to continue the prior conversation:
These are different operations. Structured references read JSON-like output fields. Context continuation passes message history.