Skip to content

Metadata

Source code in docs_src/capo_bedrock_agent_runtime/types/metadata.py
class Metadata(TypedDict, closed=True):
    start_time: NotRequired[
        "capo_bedrock_agent_runtime.types.date_timestamp.DateTimestamp"
    ]
    """<p>In the final response, <code>startTime</code> is the start time of the agent invocation operation.</p>"""
    end_time: NotRequired[
        "capo_bedrock_agent_runtime.types.date_timestamp.DateTimestamp"
    ]
    """<p>In the final response, <code>endTime</code> is the end time of the agent invocation operation.</p>"""
    total_time_ms: NotRequired["int"]
    """<p> The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.</p>"""
    operation_total_time_ms: NotRequired["int"]
    """<p>The total time it took for the agent to complete execution. This field is only set for the final response.</p>"""
    client_request_id: NotRequired["str"]
    """<p>A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.</p>"""
    usage: NotRequired["capo_bedrock_agent_runtime.types.usage.Usage"]
    """<p>Specific to model invocation and contains details about the usage of a foundation model.</p>"""

client_request_id instance-attribute

client_request_id: NotRequired[str]

A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.

end_time instance-attribute

end_time: NotRequired[DateTimestamp]

In the final response, endTime is the end time of the agent invocation operation.

operation_total_time_ms instance-attribute

operation_total_time_ms: NotRequired[int]

The total time it took for the agent to complete execution. This field is only set for the final response.

start_time instance-attribute

start_time: NotRequired[DateTimestamp]

In the final response, startTime is the start time of the agent invocation operation.

total_time_ms instance-attribute

total_time_ms: NotRequired[int]

The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.

usage instance-attribute

usage: NotRequired[Usage]

Specific to model invocation and contains details about the usage of a foundation model.