Skip to content

PreparedResponsesTools

Namespace: Vercel.AI.OpenAI

public sealed class PreparedResponsesTools

Tools prepared for the OpenAI Responses API.

Inheritance: object

View source

PreparedResponsesTools(JsonArray?, JsonNode?, IReadOnlyList<CallWarning>)

Section titled “PreparedResponsesTools(JsonArray?, JsonNode?, IReadOnlyList<CallWarning>)”
public PreparedResponsesTools(JsonArray? tools, JsonNode? toolChoice, IReadOnlyList<CallWarning> toolWarnings)

Creates a prepared tool list.

Parameters

Name Type Description
tools JsonArray
toolChoice JsonNode
toolWarnings IReadOnlyList<CallWarning>

View source

public JsonNode? ToolChoice { get; }

The tool_choice request value. A named choice maps to the matching hosted tool, a custom tool, or a function tool. Null when unset.

Value: JsonNode

View source

public IReadOnlyList<CallWarning> ToolWarnings { get; }

Warnings produced while preparing tools.

Value: IReadOnlyList<CallWarning>

View source

public JsonArray? Tools { get; }

Provider tool objects. Null when the request has no tools.

Value: JsonArray

View source

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