TracePart¶
Structure Class¶
TracePart
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¶
agent_alias_id
class-attribute
instance-attribute
¶
agent_alias_id: str | None = None
The unique identifier of the alias of the agent.
agent_id
class-attribute
instance-attribute
¶
agent_id: str | None = None
The unique identifier of the agent.
agent_version
class-attribute
instance-attribute
¶
agent_version: str | None = None
The version of the agent.
caller_chain
class-attribute
instance-attribute
¶
caller_chain: list[Caller] | None = None
The part's caller chain.
collaborator_name
class-attribute
instance-attribute
¶
collaborator_name: str | None = field(repr=False, default=None)
The part's collaborator name.
event_time
class-attribute
instance-attribute
¶
event_time: datetime | None = None
The time of the trace.
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.