The outcome of one agent run: where it ran, how it ended, and the thread's state at its end. A readable value, built only by Agent; a conversation continues by its threadId.
Value parameters
activeAgent
the agent the thread is with at the run's end: the next turn starts with it
messages
the thread's full history, without system prompts
runId
this run
status
how the turn ended, or what it waits for
threadId
the conversation's thread
usage
token usage accumulated over the thread, per model
The answer read as O: the agent's response format (AgentBuilder.withOutput) makes it JSON of O's schema, and any JSON answer - fenced or in prose - reads too. Left(ValidationError) when the turn did not complete, or the answer is not JSON, is JSON null, or does not read as O.
The answer read as O: the agent's response format (AgentBuilder.withOutput) makes it JSON of O's schema, and any JSON answer - fenced or in prose - reads too. Left(ValidationError) when the turn did not complete, or the answer is not JSON, is JSON null, or does not read as O.