Skip to content

ConverseStreamMetadataEvent

Source code in docs_src/capo_bedrock_runtime/types/converse_stream_metadata_event.py
class ConverseStreamMetadataEvent(TypedDict, closed=True):
    usage: "capo_bedrock_runtime.types.token_usage.TokenUsage"
    """<p>Usage information for the conversation stream event.</p>"""
    metrics: "capo_bedrock_runtime.types.converse_stream_metrics.ConverseStreamMetrics"
    """<p>The metrics for the conversation stream metadata event.</p>"""
    trace: NotRequired[
        "capo_bedrock_runtime.types.converse_stream_trace.ConverseStreamTrace"
    ]
    """<p>The trace object in the response from <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a> that contains information about the guardrail behavior.</p>"""
    performance_config: NotRequired[
        "capo_bedrock_runtime.types.performance_configuration.PerformanceConfiguration"
    ]
    """<p>Model performance configuration metadata for the conversation stream event.</p>"""
    service_tier: NotRequired["capo_bedrock_runtime.types.service_tier.ServiceTier"]
    """<p>Specifies the processing tier configuration used for serving the request.</p>"""

metrics instance-attribute

The metrics for the conversation stream metadata event.

performance_config instance-attribute

performance_config: NotRequired[PerformanceConfiguration]

Model performance configuration metadata for the conversation stream event.

service_tier instance-attribute

service_tier: NotRequired[ServiceTier]

Specifies the processing tier configuration used for serving the request.

trace instance-attribute

trace: NotRequired[ConverseStreamTrace]

The trace object in the response from ConverseStream that contains information about the guardrail behavior.

usage instance-attribute

usage: TokenUsage

Usage information for the conversation stream event.