Skip to content

toolNamespace

function toolNamespace<TTools>(options): TTools;

Responses API only. Group function tools under a shared namespace.

Type Parameter

TTools extends readonly AnyFunctionTool[]

Parameter Type Description

options

ToolNamespaceOptions<TTools>

Namespace metadata and function tools to attach.

TTools

shallow-cloned function tools carrying namespace metadata.