API Reference
Session Types and Results
The most important fields and meanings in Session input and output objects
Session Types and Results
The most common input and output objects are:
AgentSessionSetInputAgentSessionPromptInputAgentSessionTurnHandleAgentSessionTurnResultAgentSessionEventAgentSessionMetadata
AgentSessionPromptInput
Core field:
query
AgentSessionTurnHandle
Core fields:
idresultfinished
AgentSessionTurnResult
Core fields:
turnIdsuccesserrortext
For most users, text is the field they consume most directly. Use session.subscribe() when you need real-time UI updates before finished resolves.