Skip to content

OpenAIChatToolPreparation

Namespace: Vercel.AI.OpenAI

public sealed class OpenAIChatToolPreparation

Chat Completions tools and tool choice.

Inheritance: object

View source

public JsonNode? ToolChoice { get; }

OpenAI tool_choice. Null when the caller did not set one.

Value: JsonNode

View source

public JsonArray? Tools { get; }

Tool objects. Null when the caller passed no tools.

Value: JsonArray

View source

public IReadOnlyList<OpenAICallWarning> Warnings { get; }

Warnings produced while preparing tools.

Value: IReadOnlyList<OpenAICallWarning>

View source

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