Runs the LLM's tool calls.
Blocking calls run in a task; their results go upstream to the context as
ToolResults, which starts the next round. If a blocking call has a
progress_message and the LLM said nothing before calling it, the message
is spoken after progress_delay_ms.
Non-blocking calls start in the background and get a placeholder result for
this round. Their real results come back as
{:octoroom_agent_async_tool_result, result} messages and go upstream as
AsyncToolResult, according to the tool's scheduling:
:silent- at once (the context only notes it):interrupt- at once, interrupting the reply, unless the user is speaking:when_idle- once the user isn't speaking and no reply is running
Waiting results are postponed (this is a Octoroom.Agent.Processor.StateMachine
with the states :idle, :user_speaking and :responding).
Options (default to the host context's values): :tools, :context
(the tools' context map). The agent worker sets the context's :speaker
before each reply with an {:octoroom_agent_speaker, participant}
message. Handlers run in the agent's process
(Octoroom.Agent.ToolExecutor).