Class: Anthropic
Extends
ToolCallLLM
<AnthropicAdditionalChatOptions
>
Constructors
new Anthropic()
new Anthropic(
init
?):Anthropic
Parameters
• init?: Partial
<Anthropic
>
Returns
Overrides
Source
packages/core/src/llm/anthropic.ts:115
Properties
apiKey?
optional
apiKey:string
=undefined
Source
packages/core/src/llm/anthropic.ts:110
maxRetries
maxRetries:
number
Source
packages/core/src/llm/anthropic.ts:111
maxTokens?
optional
maxTokens:number
Source
packages/core/src/llm/anthropic.ts:107
model
model:
"claude-3-opus"
|"claude-3-sonnet"
|"claude-3-haiku"
|"claude-2.1"
|"claude-instant-1.2"
Source
packages/core/src/llm/anthropic.ts:104
session
session:
AnthropicSession
Source
packages/core/src/llm/anthropic.ts:113
temperature
temperature:
number
Source
packages/core/src/llm/anthropic.ts:105
timeout?
optional
timeout:number
Source
packages/core/src/llm/anthropic.ts:112
topP
topP:
number
Source
packages/core/src/llm/anthropic.ts:106
Accessors
metadata
get
metadata():object
Returns
object
contextWindow
contextWindow:
number
maxTokens
maxTokens:
undefined
|number
model
model:
"claude-3-opus"
|"claude-3-sonnet"
|"claude-3-haiku"
|"claude-2.1"
|"claude-instant-1.2"
temperature
temperature:
number
tokenizer
tokenizer:
undefined
=undefined
topP
topP:
number
Source
packages/core/src/llm/anthropic.ts:138
supportToolCall
get
supportToolCall():boolean
Returns
boolean
Source
packages/core/src/llm/anthropic.ts:134
Methods
chat()
chat(params)
chat(
params
):Promise
<AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>>