Skip to content

OpenResponsesToolContext

Namespace: Vercel.AI.OpenResponses

public sealed class OpenResponsesToolContext

Input of EncodeTool and EncodeToolChoice.

Inheritance: object

View source

OpenResponsesToolContext(string, JsonElement)

Section titled “OpenResponsesToolContext(string, JsonElement)”
public OpenResponsesToolContext(string name, JsonElement args)

Creates the context.

Parameters

Name Type Description
name string
args JsonElement

View source

public JsonElement Args { get; }

Provider-tool arguments, a JSON object.

Value: JsonElement

View source

public string Name { get; }

Tool name.

Value: string

View source

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