> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAIResponsesToolChoiceFunction - TypeScript SDK

> OpenAIResponsesToolChoiceFunction method reference

<Warning>
  The TypeScript SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/typescript-sdk/issues).
</Warning>

## Example Usage

```typescript lines theme={null}
import { OpenAIResponsesToolChoiceFunction } from "@openrouter/sdk/models";

let value: OpenAIResponsesToolChoiceFunction = {
  type: "function",
  name: "<value>",
};
```

## Fields

| Field  | Type                                                                                                               | Required             | Description |
| ------ | ------------------------------------------------------------------------------------------------------------------ | -------------------- | ----------- |
| `type` | [models.OpenAIResponsesToolChoiceTypeFunction](/agent-sdk/typescript/models/openairesponsestoolchoicetypefunction) | :heavy\_check\_mark: | N/A         |
| `name` | *string*                                                                                                           | :heavy\_check\_mark: | N/A         |
