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:context: agent.name when you want the next agent to continue the prior conversation: