跳到主要内容

Class: AnthropicAgentWorker

Hierarchy

  • AgentWorker<Anthropic>

    AnthropicAgentWorker

Constructors

constructor

new AnthropicAgentWorker(): AnthropicAgentWorker

Returns

AnthropicAgentWorker

Inherited from

AgentWorker<Anthropic>.constructor

Properties

#taskSet

Private #taskSet: Set<TaskStep<Anthropic, {}, ToolCallLLMMessageOptions>>

Inherited from

AgentWorker.#taskSet

Defined in

packages/core/src/agent/base.ts:231


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Defined in

packages/core/src/agent/base.ts:266


taskHandler

taskHandler: TaskHandler<Anthropic> = AnthropicAgent.taskHandler

Overrides

AgentWorker.taskHandler

Defined in

packages/core/src/agent/anthropic.ts:35

Methods

createTask

createTask(query, context): ReadableStream<TaskStepOutput<Anthropic, {}, ToolCallLLMMessageOptions>>

Parameters

NameType
querystring
contextAgentTaskContext<Anthropic, {}, ToolCallLLMMessageOptions>

Returns

ReadableStream<TaskStepOutput<Anthropic, {}, ToolCallLLMMessageOptions>>

Inherited from

AgentWorker.createTask

Defined in

packages/core/src/agent/base.ts:234