Class: AnthropicAgentWorker
Hierarchy
-
AgentWorker
<Anthropic
>↳
AnthropicAgentWorker
Constructors
constructor
• new AnthropicAgentWorker(): AnthropicAgentWorker
Returns
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:168
[toStringTag]
• [toStringTag]: string
= "AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Defined in
packages/core/src/agent/base.ts:204
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
Name | Type |
---|---|
query | string |
context | AgentTaskContext <Anthropic , {}, ToolCallLLMMessageOptions > |
Returns
ReadableStream
<TaskStepOutput
<Anthropic
, {}, ToolCallLLMMessageOptions
>>
Inherited from
AgentWorker.createTask