Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / formatToolChoice

Function: formatToolChoice() ​

formatToolChoice(toolChoice): object

Defined in: providers/anthropic-transformers.ts:104

Parameters ​

toolChoice ​

undefined | { name: string; } | "auto" | "required" | "none"

Returns ​

object

type ​

type: "tool" | "auto" | "any"

name? ​

optional name: string

Released under the MIT License.