agents.react_class.react_v2.agentΒΆ

ReactAgent implementation that extends SimpleAgent with tool usage capabilities.

ClassesΒΆ

ReactAgent

A React agent that enhances SimpleAgent with tool-using capabilities.

Module ContentsΒΆ

class agents.react_class.react_v2.agent.ReactAgent(config)ΒΆ

Bases: haive.core.engine.agent.agent.Agent[haive.agents.react_class.react_v2.config.ReactAgentConfig]

A React agent that enhances SimpleAgent with tool-using capabilities.

This agent implements the ReAct (Reasoning + Acting) pattern which allows multi-step reasoning and tool usage for complex tasks.

Init .

Parameters:

config (haive.agents.react_class.react_v2.config.ReactAgentConfig) – [TODO: Add description]

run(input_data, thread_id=None, **kwargs)ΒΆ

Override run to handle tool-based workflows and proper state preparation.

Parameters:

thread_id (str | None)

setup_workflow()ΒΆ

Set up the React agent workflow with tool support.

Return type:

None