---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/interfaces/TransformersJsTool.md
description: >-
  A tool definition in the transformers.js `tools` array
  (OpenAI-function-shaped).
---

# Interface: TransformersJsTool

Defined in: [src/batteries/llm/transformers\_js/helpers.ts:105](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L105)

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`](../../../../interfaces/JsonSchema.md); } | The function descriptor: name, optional description, and JSON-Schema parameters.    | [src/batteries/llm/transformers\_js/helpers.ts:109](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L109) |
| `function.description?`                   | `string`                                                                                                               | -                                                                                   | [src/batteries/llm/transformers\_js/helpers.ts:111](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L111) |
| `function.name`                           | `string`                                                                                                               | -                                                                                   | [src/batteries/llm/transformers\_js/helpers.ts:110](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L110) |
| `function.parameters?`                    | [`JsonSchema`](../../../../interfaces/JsonSchema.md)                                                                   | -                                                                                   | [src/batteries/llm/transformers\_js/helpers.ts:112](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L112) |
|  `type`         | `"function"`                                                                                                           | Always `'function'` — the only tool type transformers.js chat templates understand. | [src/batteries/llm/transformers\_js/helpers.ts:107](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/helpers.ts#L107) |
