Skip to content

TracePart

Source code in docs_src/capo_bedrock_agent_runtime/types/trace_part.py
class TracePart(TypedDict, closed=True):
    session_id: NotRequired["capo_bedrock_agent_runtime.types.session_id.SessionId"]
    """<p>The unique identifier of the session with the agent.</p>"""
    trace: NotRequired["capo_bedrock_agent_runtime.types.trace.Trace"]
    """<p>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 <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-enablement">Trace enablement</a>.</p>"""
    caller_chain: NotRequired[
        "capo_bedrock_agent_runtime.types.caller_chain.CallerChain"
    ]
    """<p>The part's caller chain.</p>"""
    event_time: NotRequired[
        "capo_bedrock_agent_runtime.types.date_timestamp.DateTimestamp"
    ]
    """<p> The time of the trace. </p>"""
    collaborator_name: NotRequired["capo_bedrock_agent_runtime.types.name.Name"]
    """<p>The part's collaborator name.</p>"""
    agent_id: NotRequired["capo_bedrock_agent_runtime.types.agent_id.AgentId"]
    """<p>The unique identifier of the agent.</p>"""
    agent_alias_id: NotRequired[
        "capo_bedrock_agent_runtime.types.agent_alias_id.AgentAliasId"
    ]
    """<p>The unique identifier of the alias of the agent.</p>"""
    agent_version: NotRequired[
        "capo_bedrock_agent_runtime.types.agent_version.AgentVersion"
    ]
    """<p>The version of the agent.</p>"""

agent_alias_id instance-attribute

agent_alias_id: NotRequired[AgentAliasId]

The unique identifier of the alias of the agent.

agent_id instance-attribute

agent_id: NotRequired[AgentId]

The unique identifier of the agent.

agent_version instance-attribute

agent_version: NotRequired[AgentVersion]

The version of the agent.

caller_chain instance-attribute

caller_chain: NotRequired[CallerChain]

The part's caller chain.

collaborator_name instance-attribute

collaborator_name: NotRequired[Name]

The part's collaborator name.

event_time instance-attribute

event_time: NotRequired[DateTimestamp]

The time of the trace.

session_id instance-attribute

session_id: NotRequired[SessionId]

The unique identifier of the session with the agent.

trace instance-attribute

trace: NotRequired[Trace]

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.