Skip to content

Bedrock Agent Runtime  >  Structures  >  InlineAgentTracePart

InlineAgentTracePart

Structure Class

InlineAgentTracePart dataclass

Contains information about the agent and session, alongside the agent's reasoning process and results from calling API actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.

Attributes

caller_chain class-attribute instance-attribute
caller_chain: list[Caller] | None = None

The caller chain for the trace part.

collaborator_name class-attribute instance-attribute
collaborator_name: str | None = field(repr=False, default=None)

The collaborator name for the trace part.

event_time class-attribute instance-attribute
event_time: datetime | None = None

The time that trace occurred.

session_id class-attribute instance-attribute
session_id: str | None = None

The unique identifier of the session with the agent.

trace class-attribute instance-attribute
trace: Trace | None = field(repr=False, default=None)

Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.