Interface: TransformersJsTool
Defined in: src/batteries/llm/transformers_js/helpers.ts:105
A tool definition in the transformers.js tools array (OpenAI-function-shaped).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
function | { description?: string; name: string; parameters?: JsonSchema; } | The function descriptor: name, optional description, and JSON-Schema parameters. | src/batteries/llm/transformers_js/helpers.ts:109 |
function.description? | string | - | src/batteries/llm/transformers_js/helpers.ts:111 |
function.name | string | - | src/batteries/llm/transformers_js/helpers.ts:110 |
function.parameters? | JsonSchema | - | src/batteries/llm/transformers_js/helpers.ts:112 |
type | "function" | Always 'function' — the only tool type transformers.js chat templates understand. | src/batteries/llm/transformers_js/helpers.ts:107 |