Class: AnthropicAgentWorker
Extends
AgentWorker
<Anthropic
>
Constructors
new AnthropicAgentWorker()
new AnthropicAgentWorker():
AnthropicAgentWorker
Returns
Inherited from
AgentWorker<Anthropic>.constructor
Properties
#taskSet
private
#taskSet:Set
<TaskStep
<Anthropic
,object
,ToolCallLLMMessageOptions
>>
Inherited from
AgentWorker.#taskSet
Source
packages/llamaindex/src/agent/base.ts:158
[toStringTag]
[toStringTag]:
string
="AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Source
packages/llamaindex/src/agent/base.ts:194
taskHandler
taskHandler:
TaskHandler
<Anthropic
> =AnthropicAgent.taskHandler
Overrides
AgentWorker.taskHandler
Source
packages/llamaindex/src/agent/anthropic.ts:16
Methods
createTask()
createTask(
query
,context
):ReadableStream
<TaskStepOutput
<Anthropic
,object
,ToolCallLLMMessageOptions
>>
Parameters
• query: MessageContent
• context: AgentTaskContext
<Anthropic
, object
, ToolCallLLMMessageOptions
>