Class: Anthropic
Hierarchy
-
ToolCallLLM
<AnthropicAdditionalChatOptions
>↳
Anthropic
Constructors
constructor
• new Anthropic(init?
): Anthropic
Parameters
Name | Type |
---|---|
init? | Partial <Anthropic > |
Returns
Overrides
ToolCallLLM<AnthropicAdditionalChatOptions>.constructor
Defined in
packages/core/src/llm/anthropic.ts:114
Properties
apiKey
• Optional
apiKey: string
= undefined
Defined in
packages/core/src/llm/anthropic.ts:109
maxRetries
• maxRetries: number
Defined in
packages/core/src/llm/anthropic.ts:110
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/anthropic.ts:106
model
• model: "claude-3-opus"
| "claude-3-sonnet"
| "claude-3-haiku"
| "claude-2.1"
| "claude-instant-1.2"
Defined in
packages/core/src/llm/anthropic.ts:103
session
• session: AnthropicSession
Defined in
packages/core/src/llm/anthropic.ts:112
temperature
• temperature: number
Defined in
packages/core/src/llm/anthropic.ts:104
timeout
• Optional
timeout: number
Defined in
packages/core/src/llm/anthropic.ts:111
topP
• topP: number
Defined in
packages/core/src/llm/anthropic.ts:105
Accessors
metadata
• get
metadata(): Object
Returns
Object
Name | Type |
---|---|
contextWindow | number |
maxTokens | undefined | number |
model | "claude-3-opus" | "claude-3-sonnet" | "claude-3-haiku" | "claude-2.1" | "claude-instant-1.2" |
temperature | number |
tokenizer | undefined |
topP | number |
Overrides
ToolCallLLM.metadata
Defined in
packages/core/src/llm/anthropic.ts:137
supportToolCall
• get
supportToolCall(): boolean
Returns
boolean
Overrides
ToolCallLLM.supportToolCall
Defined in
packages/core/src/llm/anthropic.ts:133
Methods
chat
▸ chat(params
): Promise
<AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming <AnthropicAdditionalChatOptions , ToolCallLLMMessageOptions > |
Returns
Promise
<AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>>
Overrides
ToolCallLLM.chat
Defined in
packages/core/src/llm/anthropic.ts:212
▸ chat(params
): Promise
<ChatResponse
<ToolCallLLMMessageOptions
>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsNonStreaming <AnthropicAdditionalChatOptions , ToolCallLLMMessageOptions > |
Returns
Promise
<ChatResponse
<ToolCallLLMMessageOptions
>>
Overrides
ToolCallLLM.chat
Defined in
packages/core/src/llm/anthropic.ts:218
complete
▸ complete(params
): Promise
<AsyncIterable
<CompletionResponse
>>
Parameters
Name | Type |
---|---|
params | LLMCompletionParamsStreaming |