class

CrystalAgent::Worker

Inherits Reference < Object

Worker agent that researches a specific topic using web search and URL fetching

Constructors

new(id : Int32, task : String, client : Anthropic::Client, config : Config, status_channel : Channel(WorkerStatus) | Nil = nil, round : Int32 = 1)
Source

Instance methods

round
Source
run

Run the research task using tool runner

Source
run_async(result_channel : Channel(WorkerResult))

Run the worker in a fiber and send result to channel

Source
status
Source
task
Source