Skip to content

AgentOutputType

type AgentOutputType<HandoffOutputType> =
| TextOutput
| ZodObject<any>
| JsonSchemaDefinition
| HandoffsOutput<HandoffOutputType>;

The type of the output object. If not provided, the output will be a string. ‘text’ is a special type that indicates the output will be a string.

Type Parameter Default type Description

HandoffOutputType

UnknownContext

The type of the output of the handoff.