DecisionModelResult
Namespace: Vercel.AI.Operations
public class DecisionModelResultModel response for doDecide.
Inheritance: object
Derived: EvaluationModelResult
Constructors
Section titled “Constructors”DecisionModelResult(IReadOnlyDictionary<string, DecisionAnswer>, IReadOnlyList<OperationWarning>?, OperationUsage?, DecisionRounding?, JsonElement?, ProviderResponse?)
Section titled “DecisionModelResult(IReadOnlyDictionary<string, DecisionAnswer>, IReadOnlyList<OperationWarning>?, OperationUsage?, DecisionRounding?, JsonElement?, ProviderResponse?)”public DecisionModelResult(IReadOnlyDictionary<string, DecisionAnswer> answers, IReadOnlyList<OperationWarning>? warnings = null, OperationUsage? usage = null, DecisionRounding? rounding = null, JsonElement? providerMetadata = null, ProviderResponse? response = null)Creates a model result.
Parameters
| Name | Type | Description |
|---|---|---|
answers |
IReadOnlyDictionary<string, DecisionAnswer> | |
warnings |
IReadOnlyList<OperationWarning> | |
usage |
OperationUsage | |
rounding |
DecisionRounding | |
providerMetadata |
JsonElement? | |
response |
ProviderResponse |
Properties
Section titled “Properties”Answers
Section titled “Answers”public IReadOnlyDictionary<string, DecisionAnswer> Answers { get; }Answers keyed by question id.
Value: IReadOnlyDictionary<string, DecisionAnswer>
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
Response
Section titled “Response”public ProviderResponse? Response { get; }Response metadata. Timestamp and model id are filled when omitted.
Value: ProviderResponse
Rounding
Section titled “Rounding”public DecisionRounding? Rounding { get; }Rounding declaration.
Value: DecisionRounding
public OperationUsage? Usage { get; }Token usage.
Value: OperationUsage
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product