OptionalcostList of tag keys to propagate to LLM Observability cost and token metrics emitted from this span.
Each key must already be present in tags from this call or from a previous annotation on the
same span.
OptionalinputA single input string, object, or a list of objects based on the span kind:
OptionalmetadataObject of JSON serializable key-value metadata pairs relevant to the input/output operation described by the LLM Observability span.
OptionalmetricsObject of JSON serializable key-value metrics (number) pairs, such as {input,output,total}Tokens
OptionaloutputA single output string, object, or a list of objects based on the span kind:
OptionalpromptA Prompt object that represents the prompt used for an LLM call. Only used on llm spans.
OptionaltagsObject of JSON serializable key-value tag pairs to set or update on the LLM Observability span regarding the span's context.
OptionaltoolA list of ToolDefinition object that represents the tools available to the LLM for this span
Each definition requires a name and optionally accepts description, schema, and version.
Annotation options for LLM Observability spans.