Skip to main content

Class: AnthropicAgentWorker

Extends

Constructors

new AnthropicAgentWorker()

new AnthropicAgentWorker(): AnthropicAgentWorker

Returns

AnthropicAgentWorker

Inherited from

AgentWorker<Anthropic>.constructor

Properties

#taskSet

private #taskSet: Set<TaskStep <Anthropic, object, ToolCallLLMMessageOptions>>

Inherited from

AgentWorker.#taskSet

Source

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


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Source

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


taskHandler

taskHandler: TaskHandler <Anthropic> = AnthropicAgent.taskHandler

Overrides

AgentWorker.taskHandler

Source

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

Methods

createTask()

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

Parameters

query: string

context: AgentTaskContext <Anthropic, object, ToolCallLLMMessageOptions>

Returns

ReadableStream<TaskStepOutput <Anthropic, object, ToolCallLLMMessageOptions>>

Inherited from

AgentWorker.createTask

Source

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