Skip to content

Response Types

All SDK methods return typed dataclasses with full IDE autocomplete.

Returned by agent.chat() and agent.achat().

FieldTypeDescription
.contentstrLLM response text
.modelstrModel used (e.g. gpt-4o-mini)
.usageUsageToken usage
.pipelinePipelineResultPipeline execution details
.tokenCapabilityTokenSigned capability token
.tool_callslist[ToolCall]Tool calls made by the LLM

str(response) returns .content for convenience.

FieldType
.prompt_tokensint
.completion_tokensint
.total_tokensint
FieldTypeDescription
.blockedboolWhether the request was blocked
.classificationstrData classification (PUBLIC, INTERNAL, etc.)
.stepslistSteps that ran
.flagsdictActive governance flags
FieldTypeDescription
.tokenstrSigned JWT
.classificationstrData classification
.toolslist[str]Allowed tools
.opslist[str]Allowed operations
.ttlintTime-to-live (seconds)
FieldType
.idstr
.namestr
.argumentsdict
TypeReturned byKey fields
HealthStatustp.health().status, .version, .storage
AgentInfotp.agents().agent_id, .framework, .active
PipelineInfotp.pipelines().pipeline_id, .steps, .agents
AuditEntrytp.audit().event_id, .event_type, .timestamp, .agent_id