Module Values.ConverseStreamMetadataEventSource

A conversation stream metadata event.

Sourcetype nonrec t = {
  1. usage : TokenUsage.t option;
    (*

    Usage information for the conversation stream event.

    *)
  2. metrics : ConverseStreamMetrics.t option;
    (*

    The metrics for the conversation stream metadata event.

    *)
  3. trace : ConverseStreamTrace.t option;
    (*

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

    *)
  4. performanceConfig : PerformanceConfiguration.t option;
    (*

    Model performance configuration metadata for the conversation stream event.

    *)
  5. serviceTier : ServiceTier.t option;
    (*

    Specifies the processing tier configuration used for serving the request.

    *)
}
Sourceval make : ?usage:??? -> ?metrics:??? -> ?trace:??? -> ?performanceConfig:??? -> ?serviceTier:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of TokenUsageInputTokensInteger.t | `List of [> `Structure of (string * [> `Enum of string | `Integer of CacheDetailInputTokensInteger.t ]) list ] list | `Long of Long.t | `Structure of (string * [> `List of [> `String of GuardrailOutputText.t ] list | `Map of ([> `String of String_.t ] * [> `List of [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string | `Structure of (string * [> `Boolean of Boolean.t | `Double of GuardrailContextualGroundingFilterThresholdDouble.t | `Enum of string | `String of String_.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Double of GuardrailAutomatedReasoningTranslationConfidence.t | `List of [> `Structure of (string * [> `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list | `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list | `String of AutomatedReasoningRuleIdentifier.t ]) list ] list | `Structure of (string * [> `Double of GuardrailAutomatedReasoningTranslationConfidence.t | `Enum of string | `List of [> `Structure of (string * [> `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list ]) list ]) list ]) list ] list | `Long of GuardrailProcessingLatency.t | `String of GuardrailId.t | `Structure of (string * [> `Integer of GuardrailTopicPolicyUnitsProcessed.t | `Structure of (string * [> `Integer of TextCharactersGuarded.t ]) list ]) list ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string | `Structure of (string * [> `Boolean of Boolean.t | `Double of GuardrailContextualGroundingFilterThresholdDouble.t | `Enum of string | `String of String_.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Double of GuardrailAutomatedReasoningTranslationConfidence.t | `List of [> `Structure of (string * [> `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list | `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list | `String of AutomatedReasoningRuleIdentifier.t ]) list ] list | `Structure of (string * [> `Double of GuardrailAutomatedReasoningTranslationConfidence.t | `Enum of string | `List of [> `Structure of (string * [> `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list ]) list ]) list ]) list ] list | `Long of GuardrailProcessingLatency.t | `String of GuardrailId.t | `Structure of (string * [> `Integer of GuardrailTopicPolicyUnitsProcessed.t | `Structure of (string * [> `Integer of TextCharactersGuarded.t ]) list ]) list ]) list ]) list ]) list | `String of String_.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t