Skip to main content

Required Parameters

LocalPromptMessage

Streaming

Streaming Example

See Streaming for more details.

LLM Configuration

Example

Tool Calling

ToolDefinition

ToolChoice

Tool Calling Example

Provider Configuration

Provider Override

Use provider when using a model not in the built-in list:

Custom API Key

Override the environment variable API key:

Custom Options

Pass provider-specific options using a provider-namespaced object. Each key is the provider name, and the value is an object of options passed to the AI SDK:
By default, openai.strictJsonSchema is set to false, which matches the OpenAI API default. The AI SDK’s OpenAI provider defaults to true, which can reject tool schemas with open-ended objects. Tracia overrides this to false unless you explicitly set it.

Variable Interpolation

See Variables for more details.

Span Options

Example

Span Linking for Multi-Turn Conversations

See Sessions for automatic span linking.

Disabling Tracing

See Tracing for more details.

Complete Example