SpanAttributes
¶
Source code in docs_src/capo_qconnect/types/span_attributes.py
ai_agent_invoker
instance-attribute
¶
ai_agent_invoker: NotRequired[NonEmptyString]
Entity that invoked the AI agent
ai_agent_orchestrator_use_case
instance-attribute
¶
ai_agent_orchestrator_use_case: NotRequired[NonEmptyString]
AI agent orchestrator use case
cache_read_input_tokens
instance-attribute
¶
cache_read_input_tokens: NotRequired[int]
Number of input tokens that were retrieved from cache
cache_write_input_tokens
instance-attribute
¶
cache_write_input_tokens: NotRequired[int]
Number of input tokens that were written to cache in this request
error_type
instance-attribute
¶
error_type: NotRequired[NonEmptyString]
Error classification if span failed (e.g., throttle, timeout)
guardrail_assessments
instance-attribute
¶
guardrail_assessments: NotRequired[SpanGuardrailAssessmentList]
Guardrail assessments for the inference span. Absent on other span types and when no AI Guardrail is attached to the AI Agent.
initial_contact_id
instance-attribute
¶
initial_contact_id: NotRequired[Uuid]
Amazon Connect contact identifier
input_messages
instance-attribute
¶
input_messages: NotRequired[SpanMessageList]
Input message collection sent to LLM
interaction_mode
instance-attribute
¶
interaction_mode: NotRequired[InteractionMode]
How the orchestrator engaged the collaborator agent. Present on spans that invoke a collaborator agent.
operation_name
instance-attribute
¶
operation_name: NotRequired[NonEmptyString]
Action being performed
output_messages
instance-attribute
¶
output_messages: NotRequired[SpanMessageList]
Output message collection received from LLM
provider_name
instance-attribute
¶
provider_name: NotRequired[NonEmptyString]
Model provider identifier (e.g., aws.bedrock)
request_max_tokens
instance-attribute
¶
request_max_tokens: NotRequired[int]
Maximum tokens configured for generation
request_model
instance-attribute
¶
request_model: NotRequired[NonEmptyString]
LLM model ID for request (e.g., anthropic.claude-3-sonnet)
response_finish_reasons
instance-attribute
¶
response_finish_reasons: NotRequired[SpanFinishReasonList]
Generation termination reasons (e.g., stop, max_tokens)
response_model
instance-attribute
¶
response_model: NotRequired[NonEmptyString]
Actual model used for response (usually matches requestModel)
return_reason
instance-attribute
¶
return_reason: NotRequired[ReturnReason]
Reason a sub-agent returned control to the calling agent. Present on return_to_agent spans.
system_instructions
instance-attribute
¶
system_instructions: NotRequired[SpanMessageValueList]
System prompt instructions
target_agent_id
instance-attribute
¶
target_agent_id: NotRequired[NonEmptyString]
Identifier of the collaborator agent being invoked. For first-party collaborators this is the Amazon Connect AI agent ID; for third-party collaborators this is the external application ID.
temperature
instance-attribute
¶
temperature: NotRequired[float]
Sampling temperature for generation
time_to_first_token_ms
instance-attribute
¶
time_to_first_token_ms: NotRequired[int]
Time to first token in milliseconds, measured from when Amazon Bedrock was invoked to when the first token was returned
usage_input_tokens
instance-attribute
¶
usage_input_tokens: NotRequired[int]
Number of input tokens in prompt