Skip to content

DecisionCaller

Namespace: Vercel.AI.Operations

public static class DecisionCaller

Helpers for IDecisionCaller.

Inheritance: object

View source

[Obsolete("Implement IDecisionCaller on the model instead.")]
public static IDecisionCaller FromLegacy(IEvaluationCaller model)

Wraps a model that implements only the deprecated IEvaluationCaller so CancellationToken) can run it. A model that already implements IDecisionCaller is returned unchanged.

Parameters

Name Type Description
model IEvaluationCaller

Returns: IDecisionCaller

View source

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