Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/aiq/agent/react_agent/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ async def react_agent_workflow(config: ReActAgentWorkflowConfig, builder: Builde
# the agent can run any installed tool, simply install the tool and add it to the config file
# the sample tool provided can easily be copied or changed
tools = builder.get_tools(tool_names=config.tool_names, wrapper_type=LLMFrameworkEnum.LANGCHAIN)
if not tools:
raise ValueError(f"No tools specified for ReAct Agent '{config.llm_name}'")
# configure callbacks, for sending intermediate steps
# construct the ReAct Agent Graph from the configured llm, prompt, and tools
graph: CompiledGraph = await ReActAgentGraph(llm=llm,
Expand Down
2 changes: 2 additions & 0 deletions src/aiq/agent/rewoo_agent/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ async def ReWOO_agent_workflow(config: ReWOOAgentWorkflowConfig, builder: Builde
# the agent can run any installed tool, simply install the tool and add it to the config file
# the sample tool provided can easily be copied or changed
tools = builder.get_tools(tool_names=config.tool_names, wrapper_type=LLMFrameworkEnum.LANGCHAIN)
if not tools:
raise ValueError(f"No tools specified for ReWOO Agent '{config.llm_name}'")

# construct the ReWOO Agent Graph from the configured llm, prompt, and tools
graph: CompiledGraph = await ReWOOAgentGraph(llm=llm,
Expand Down
2 changes: 2 additions & 0 deletions src/aiq/agent/tool_calling_agent/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ async def tool_calling_agent_workflow(config: ToolCallAgentWorkflowConfig, build
# the agent can run any installed tool, simply install the tool and add it to the config file
# the sample tools provided can easily be copied or changed
tools = builder.get_tools(tool_names=config.tool_names, wrapper_type=LLMFrameworkEnum.LANGCHAIN)
if not tools:
raise ValueError(f"No tools specified for Tool Calling Agent '{config.llm_name}'")

# some LLMs support tool calling
# these models accept the tool's input schema and decide when to use a tool based on the input's relevance
Expand Down