Skip to content

DecisionModelEvent

Namespace: Vercel.AI.Operations

public class DecisionModelEvent

Model-call telemetry event.

Inheritance: object

Derived: EvaluateModelEvent

View source

DecisionModelEvent(string, string, string, string, IReadOnlyList<DecisionModelStatePart>?, IReadOnlyDictionary<string, DecisionQuestion>, IReadOnlyDictionary<string, DecisionAnswer>?, OperationUsage?, bool?, bool?, string?)

Section titled “DecisionModelEvent(string, string, string, string, IReadOnlyList<DecisionModelStatePart>?, IReadOnlyDictionary<string, DecisionQuestion>, IReadOnlyDictionary<string, DecisionAnswer>?, OperationUsage?, bool?, bool?, string?)”
public DecisionModelEvent(string callId, string operationId, string provider, string modelId, IReadOnlyList<DecisionModelStatePart>? state, IReadOnlyDictionary<string, DecisionQuestion> questions, IReadOnlyDictionary<string, DecisionAnswer>? answers = null, OperationUsage? usage = null, bool? recordInputs = null, bool? recordOutputs = null, string? functionId = null)

Creates a model event.

Parameters

Name Type Description
callId string
operationId string
provider string
modelId string
state IReadOnlyList<DecisionModelStatePart>
questions IReadOnlyDictionary<string, DecisionQuestion>
answers IReadOnlyDictionary<string, DecisionAnswer>
usage OperationUsage
recordInputs bool?
recordOutputs bool?
functionId string

View source

public IReadOnlyDictionary<string, DecisionAnswer>? Answers { get; }

Answers after the model returns.

Value: IReadOnlyDictionary<string, DecisionAnswer>

View source

public string CallId { get; }

Call id.

Value: string

View source

public string? FunctionId { get; }

Telemetry function id.

Value: string

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string OperationId { get; }

ai.decide.doDecide.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public IReadOnlyDictionary<string, DecisionQuestion> Questions { get; }

Questions.

Value: IReadOnlyDictionary<string, DecisionQuestion>

View source

public bool? RecordInputs { get; }

Telemetry input recording flag.

Value: bool?

View source

public bool? RecordOutputs { get; }

Telemetry output recording flag.

Value: bool?

View source

public IReadOnlyList<DecisionModelStatePart>? State { get; }

The normalized list of state parts the model receives.

Value: IReadOnlyList<DecisionModelStatePart>

View source

public OperationUsage? Usage { get; }

Provider usage before total tokens are derived.

Value: OperationUsage

View source

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