Skip to content

TelemetryOptions

Namespace: Vercel.AI

public sealed class TelemetryOptions

Telemetry configuration. Maps to TelemetryOptions in telemetry/telemetry-options.ts.

Inheritance: object

View source

public string? FunctionId { get; set; }

Identifier for this function. Used to group telemetry data by function. Maps to functionId.

Value: string

View source

public IReadOnlyDictionary<string, bool>? IncludeRuntimeContext { get; set; }

Top-level runtime context properties that should be included in telemetry. Runtime context properties are excluded unless they are explicitly set to true. Maps to includeRuntimeContext.

Value: IReadOnlyDictionary<string, bool>

View source

public IReadOnlyDictionary<string, IReadOnlyDictionary<string, bool>>? IncludeToolsContext { get; set; }

Top-level tool context properties that should be included in telemetry, configured per tool name. Tool context properties are excluded unless they are explicitly set to true. Maps to includeToolsContext.

Value: IReadOnlyDictionary<string, IReadOnlyDictionary<string, bool>>

View source

public IReadOnlyList<ITelemetry>? Integrations { get; set; }

Per-call telemetry integrations that receive lifecycle events during generation. When provided, they take precedence over the globally registered integrations for this call. Maps to integrations.

Value: IReadOnlyList<ITelemetry>

View source

public bool? IsEnabled { get; set; }

Enable or disable telemetry. Enabled by default when a telemetry integration is registered. Set to false to opt out. Maps to isEnabled.

Value: bool?

View source

public bool? RecordInputs { get; set; }

Enable or disable input recording. Enabled by default. Maps to recordInputs.

Value: bool?

View source

public bool? RecordOutputs { get; set; }

Enable or disable output recording. Enabled by default. Maps to recordOutputs.

Value: bool?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product