PreparedResponsesTools
Namespace: Vercel.AI.OpenAI
public sealed class PreparedResponsesToolsTools prepared for the OpenAI Responses API.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”ToolChoice
Section titled “ToolChoice”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
ToolWarnings
Section titled “ToolWarnings”public IReadOnlyList<CallWarning> ToolWarnings { get; }Warnings produced while preparing tools.
Value: IReadOnlyList<CallWarning>
public JsonArray? Tools { get; }Provider tool objects. Null when the request has no tools.
Value: JsonArray
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product