<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[anthropic](../../) / [Exports](../modules) / IAnthropicProviderOptions

# Interface: IAnthropicProviderOptions

Anthropic provider options

Note: Anthropic API doesn't support response format configuration.
JSON output can be requested through prompt instructions.

## Hierarchy

- [`IProviderOptions`](IProviderOptions)

  ↳ **`IAnthropicProviderOptions`**

## Table of contents

### Properties

- [apiKey](IAnthropicProviderOptions#apikey)
- [timeout](IAnthropicProviderOptions#timeout)
- [baseURL](IAnthropicProviderOptions#baseurl)
- [client](IAnthropicProviderOptions#client)
- [executor](IAnthropicProviderOptions#executor)

## Properties

### apiKey

• `Optional` **apiKey**: `string`

Anthropic API key (required when client is not provided)

#### Defined in

[anthropic/src/types.ts:38](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/anthropic/src/types.ts#L38)

---

### timeout

• `Optional` **timeout**: `number`

API request timeout (milliseconds)

#### Defined in

[anthropic/src/types.ts:43](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/anthropic/src/types.ts#L43)

---

### baseURL

• `Optional` **baseURL**: `string`

API base URL

#### Defined in

[anthropic/src/types.ts:48](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/anthropic/src/types.ts#L48)

---

### client

• `Optional` **client**: `Anthropic`

Anthropic client instance (optional: will be created from apiKey if not provided)

#### Defined in

[anthropic/src/types.ts:53](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/anthropic/src/types.ts#L53)

---

### executor

• `Optional` **executor**: `IExecutor`

Optional executor for handling AI requests

When provided, the provider will delegate all chat operations to this executor
instead of making direct API calls. This enables remote execution capabilities.

**`Example`**

```typescript
import { LocalExecutor, RemoteExecutor } from '@robota-sdk/agent-core';

// Local execution (registers this provider)
const localExecutor = new LocalExecutor();
localExecutor.registerProvider('anthropic', new AnthropicProvider({ apiKey: 'sk-ant-...' }));

// Remote execution
const remoteExecutor = new RemoteExecutor({
  serverUrl: 'https://api.robota.io',
  userApiKey: 'user-token-123',
});

const provider = new AnthropicProvider({
  executor: remoteExecutor, // No direct API key needed
});
```

#### Defined in

[anthropic/src/types.ts:80](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/anthropic/src/types.ts#L80)
