Interface: TransformersJsTool
Defined in: src/batteries/llm/transformers_js/helpers.ts:115
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:119 |
function.description? | string | - | src/batteries/llm/transformers_js/helpers.ts:121 |
function.name | string | - | src/batteries/llm/transformers_js/helpers.ts:120 |
function.parameters? | JsonSchema | - | src/batteries/llm/transformers_js/helpers.ts:122 |
type | "function" | Always 'function' — the only tool type transformers.js chat templates understand. | src/batteries/llm/transformers_js/helpers.ts:117 |