---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/ChatCompletionsTool.md'
description: >-
  Wire shape of a single function tool advertised to the model — identical for
  OpenAI Chat Completions and Ollama.
---

# Interface: ChatCompletionsTool

Defined in: [batteries/llm/chat\_common/types.ts:207](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L207)

Wire shape of a single function tool advertised to the model — identical for OpenAI Chat
Completions and Ollama.

## Properties

| Property                                  | Type                                                                                            | Description                                                                  | Defined in                                                                                                                            |
| ----------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|  `function` | { `description?`: `string`; `name`: `string`; `parameters?`: [`JsonSchema`](JsonSchema.md); } | The function declaration: its name, description, and JSON-Schema parameters. | [batteries/llm/chat\_common/types.ts:211](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L211) |
| `function.description?`                   | `string`                                                                                        | -                                                                            | [batteries/llm/chat\_common/types.ts:213](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L213) |
| `function.name`                           | `string`                                                                                        | -                                                                            | [batteries/llm/chat\_common/types.ts:212](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L212) |
| `function.parameters?`                    | [`JsonSchema`](JsonSchema.md)                                                                   | -                                                                            | [batteries/llm/chat\_common/types.ts:214](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L214) |
|  `type`         | `"function"`                                                                                    | Tool kind; always `'function'` for the bundled batteries.                    | [batteries/llm/chat\_common/types.ts:209](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/types.ts#L209) |
