MCPcopy Create free account
hub / github.com/Hrishikesh332/Godrej-Chat-AI / execute_tools

Function execute_tools

app.py:129–134  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

127)
128
129def execute_tools(data):
130 agent_action = data.pop('agent_outcome')
131 tools_to_use = {t.name: t for t in tools}[agent_action.tool]
132 observation = tools_to_use.invoke(agent_action.tool_input)
133 data['intermediate_steps'].append((agent_action, observation))
134 return data
135
136def should_continue(data):
137 if isinstance(data['agent_outcome'], AgentFinish):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected