Metadata

class Metadata

Provides information about the execution process for different types of invocations, such as model invocation, knowledge base invocation, agent collaborator invocation, guardrail invocation, and code interpreter Invocation.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard
val usage: Usage?

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

Functions

Link copied to clipboard
inline fun copy(block: Metadata.Builder.() -> Unit = {}): Metadata
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String