Class: Anthropic
Anthropic LLM implementation
Hierarchy
-
BaseLLM
↳
Anthropic
Constructors
constructor
• new Anthropic(init?
): Anthropic
Parameters
Name | Type |
---|---|
init? | Partial <Anthropic > |
Returns
Overrides
BaseLLM.constructor
Defined in
packages/core/src/llm/LLM.ts:656
Properties
apiKey
• Optional
apiKey: string
= undefined
Defined in
packages/core/src/llm/LLM.ts:649
callbackManager
• Optional
callbackManager: CallbackManager
Defined in
packages/core/src/llm/LLM.ts:654
maxRetries
• maxRetries: number
Defined in
packages/core/src/llm/LLM.ts:650
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/LLM.ts:646
model
• model: "claude-3-opus"
| "claude-3-sonnet"
| "claude-3-haiku"
| "claude-2.1"
| "claude-instant-1.2"
Defined in
packages/core/src/llm/LLM.ts:643
session
• session: AnthropicSession
Defined in
packages/core/src/llm/LLM.ts:652
temperature
• temperature: number
Defined in
packages/core/src/llm/LLM.ts:644
timeout
• Optional
timeout: number
Defined in
packages/core/src/llm/LLM.ts:651
topP
• topP: number
Defined in
packages/core/src/llm/LLM.ts:645
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
BaseLLM.metadata
Defined in
packages/core/src/llm/LLM.ts:681