Skip to content

ExtractionLanguageModelOptions

Namespace: Vercel.AI.Operations

public sealed class ExtractionLanguageModelOptions

The wrapped model, provider id, and field limit that cross a workflow boundary for ExtractionLanguageModel.

Inheritance: object

View source

ExtractionLanguageModelOptions(ILanguageModel, string, double)

Section titled “ExtractionLanguageModelOptions(ILanguageModel, string, double)”
public ExtractionLanguageModelOptions(ILanguageModel model, string provider, double maxFieldsPerCall = Infinity)

Creates the options.

Parameters

Name Type Description
model ILanguageModel
provider string
maxFieldsPerCall double

View source

public double MaxFieldsPerCall { get; }

Most fields per language-model call. PositiveInfinity means no limit.

Value: double

View source

public ILanguageModel Model { get; }

The wrapped language model.

Value: ILanguageModel

View source

public string Provider { get; }

The extraction provider id.

Value: string

View source

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