Skip to content

LiquidModelCatalog

Namespace: Vercel.AI.Liquid

public static class LiquidModelCatalog

Known Liquid model ids, the adapter limits and the capability catalog. Upstream liquid-model-catalog.ts.

Inheritance: object

View source

public const int DecisionMaxAudioClips = 8

Most audio clips per request. Upstream liquidDecisionModelLimits.maxAudioClips.

Value: int

View source

public const int DecisionMaxChoiceOptions = 255

Most options of a choice question. Upstream liquidDecisionModelLimits.maxChoiceOptions.

Value: int

View source

public const int DecisionMaxImages = 8

Most images per request. Upstream liquidDecisionModelLimits.maxImages.

Value: int

View source

public const int DecisionMaxQuestions = 128

Most questions per request. Upstream liquidDecisionModelLimits.maxQuestions.

Value: int

View source

public const int DecisionMaxScoreLevels = 10

Most levels of a score question. Upstream liquidDecisionModelLimits.maxScoreLevels.

Value: int

View source

public const int DecisionMinChoiceOptions = 2

Fewest options of a choice question. Upstream liquidDecisionModelLimits.minChoiceOptions.

Value: int

View source

public const int DecisionMinScoreLevels = 2

Fewest levels of a score question. Upstream liquidDecisionModelLimits.minScoreLevels.

Value: int

View source

public static readonly IReadOnlyList<string> DecisionModelIds

Known decision model ids. Other ids are passed through unchanged. Upstream decisionModelIds.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyList<string> DecisionSupportedQuestionTypes

Question types Liquid Decisions supports. Upstream liquidDecisionModelLimits.supportedQuestionTypes.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyDictionary<string, ModelEntry<object>> Entries

Entries of every known model id. Upstream liquidModelCatalog; renamed because C# does not allow a member named like its class.

Value: IReadOnlyDictionary<string, ModelEntry<object>>

View source

public static ModelEntry<object> GetLiquidDecisionModelEntry(string modelId)

Returns the catalog entry of a decision model. Upstream getLiquidDecisionModelEntry.

Parameters

Name Type Description
modelId string

Returns: ModelEntry&lt;object&gt;

View source

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