Skip to content

LanguageModelV4FunctionTool

Namespace: E2E.Decision.Sdk

public sealed record LanguageModelV4FunctionTool : LanguageModelV4Tool, IEquatable<LanguageModelV4Tool>, IEquatable<LanguageModelV4FunctionTool>

A tool that has a name, a description, and a JSON schema for its input (LanguageModelV4FunctionTool).

Inheritance: object → LanguageModelV4Tool

Implements: IEquatable<LanguageModelV4Tool>, IEquatable<LanguageModelV4FunctionTool>

View source

LanguageModelV4FunctionTool(string, JsonElement)

Section titled “LanguageModelV4FunctionTool(string, JsonElement)”
public LanguageModelV4FunctionTool(string Name, JsonElement InputSchema)

A tool that has a name, a description, and a JSON schema for its input (LanguageModelV4FunctionTool).

Parameters

Name Type Description
Name string The name of the tool, unique within a call.
InputSchema JsonElement The JSON schema of the tool’s input.

public string? Description { get; init; }

A description of the tool, which the model uses to decide when and how to call it.

Value: string

public IReadOnlyList<JsonElement>? InputExamples { get; init; }

Example inputs of the tool, each a JSON object.

Value: IReadOnlyList<JsonElement>

public JsonElement InputSchema { get; init; }

The JSON schema of the tool’s input.

Value: JsonElement

public string Name { get; init; }

The name of the tool, unique within a call.

Value: string

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }

Additional provider-specific options, keyed by provider name.

Value: IReadOnlyDictionary<string, JsonElement>

public bool? Strict { get; init; }

The strict mode setting, for providers that support it.

Value: bool?