---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_responses/types/type-aliases/OpenAIResponsesTool.md
description: >-
  Wire shape of a single function tool advertised to the model. `name` is
  TOP-LEVEL, unlike Chat Completions' `{type:'function', function:{name, ...}}`
  nesting.
---

# Type Alias: OpenAIResponsesTool

```ts
type OpenAIResponsesTool = {
  description?: string | null;
  name: string;
  parameters: JsonSchema | null;
  strict?: boolean | null;
  type: "function";
};
```

Defined in: [src/batteries/llm/openai\_responses/types.ts:243](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L243)

Wire shape of a single function tool advertised to the model. `name` is TOP-LEVEL, unlike Chat
Completions' `{type:'function', function:{name, ...}}` nesting.

## Properties

| Property                                         | Type                                                           | Description                                                                            | Defined in                                                                                                                                              |
| ------------------------------------------------ | -------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `description?` | `string` | `null`                                             | Human-readable description of what the tool does, shown to the model.                  | [src/batteries/llm/openai\_responses/types.ts:249](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L249) |
|  `name`                | `string`                                                       | The tool's name, as the model will reference it in a `function_call` item.             | [src/batteries/llm/openai\_responses/types.ts:247](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L247) |
|  `parameters`    | [`JsonSchema`](../../../../interfaces/JsonSchema.md) | `null` | JSON Schema describing the tool's accepted arguments.                                  | [src/batteries/llm/openai\_responses/types.ts:251](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L251) |
|  `strict?`           | `boolean` | `null`                                            | Whether the provider should enforce strict schema adherence for this tool's arguments. | [src/batteries/llm/openai\_responses/types.ts:253](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L253) |
|  `type`                | `"function"`                                                   | Tool-kind discriminator; always `'function'` for this battery's v1.                    | [src/batteries/llm/openai\_responses/types.ts:245](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_responses/types.ts#L245) |
