widgets/cl_ai_assistant/src/llm/react_agent
library
Classes
-
AgentResponse
-
Response from the ReAct agent after processing a user message.
-
ReactAgent
-
ReAct (Reason → Act → Observe) agent loop.
Typedefs
-
OnThought
= void Function(String thought)
-
Callback for when the LLM emits reasoning/status text alongside tool calls.
This text is shown to the user as progressive status in the action feed.
-
OnToolComplete
= void Function(String toolName, Map<String, dynamic> args, ToolResult result)
-
Callback signature for when a tool finishes executing.
-
OnToolStart
= void Function(String toolName, Map<String, dynamic> args)
-
Callback signature for when a tool starts executing.