Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Model | string | ✅ | N/A | |
Provider | optionalnullable.OptionalNullable[components.ProviderPreferences] | ➖ | N/A | { “allow_fallbacks”: true } |
Questions | map[string]components.Questions | ✅ | N/A | |
SessionID | *string | ➖ | A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. | session-1234 |
State | components.State | ✅ | The content to evaluate: a plain string, or a JSON object or array of related context. | |
Trace | *components.TraceConfig | ➖ | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. | { “trace_id”: “trace-abc123”, “trace_name”: “my-app-trace” } |
User | *string | ➖ | N/A |