Class: AnthropicAgent
Hierarchy
-
AgentRunner
<Anthropic
>↳
AnthropicAgent
Constructors
constructor
• new AnthropicAgent(params
): AnthropicAgent
Parameters
Name | Type |
---|---|
params | AnthropicAgentParams |
Returns
Overrides
AgentRunner<Anthropic>.constructor
Defined in
packages/core/src/agent/anthropic.ts:39
Properties
#chatHistory
• Private
#chatHistory: ChatMessage
<ToolCallLLMMessageOptions
>[]
Inherited from
AgentRunner.#chatHistory
Defined in
packages/core/src/agent/base.ts:230
#llm
• Private
Readonly
#llm: Anthropic
Inherited from
AgentRunner.#llm
Defined in
packages/core/src/agent/base.ts:225
#runner
• Private
Readonly
#runner: AgentWorker
<Anthropic
, {}, ToolCallLLMMessageOptions
>
Inherited from
AgentRunner.#runner
Defined in
packages/core/src/agent/base.ts:231
#systemPrompt
• Private
Readonly
#systemPrompt: null
| MessageContent
= null
Inherited from
AgentRunner.#systemPrompt
Defined in
packages/core/src/agent/base.ts:229
#tools
• Private
Readonly
#tools: BaseToolWithCall
[] | (query
: MessageContent
) => Promise
<BaseToolWithCall
[]>
Inherited from
AgentRunner.#tools
Defined in
packages/core/src/agent/base.ts:226
#verbose
• Private
Readonly
#verbose: boolean
Inherited from
AgentRunner.#verbose
Defined in
packages/core/src/agent/base.ts:232
createStore
• createStore: () => object
= AgentRunner.defaultCreateStore
Type declaration
▸ (): object
Returns
object
Overrides
AgentRunner.createStore
Defined in
packages/core/src/agent/anthropic.ts:56
taskHandler
▪ Static
taskHandler: TaskHandler
<Anthropic
>
Defined in
packages/core/src/agent/anthropic.ts:71
Accessors
chatHistory
• get
chatHistory(): ChatMessage
<AdditionalMessageOptions
>[]
Returns
ChatMessage
<AdditionalMessageOptions
>[]
Inherited from
AgentRunner.chatHistory
Defined in
packages/core/src/agent/base.ts:259
llm
• get
llm(): AI
Returns
AI
Inherited from
AgentRunner.llm
Defined in
packages/core/src/agent/base.ts:255
verbose
• get
verbose(): boolean
Returns
boolean
Inherited from
AgentRunner.verbose
Defined in
packages/core/src/agent/base.ts:263
Methods
chat
▸ chat(params
): Promise
<AgentChatResponse
<ToolCallLLMMessageOptions
>>
Parameters
Name | Type |
---|---|
params | ChatEngineParamsNonStreaming |