(data)
| 127 | ) |
| 128 | |
| 129 | def 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 | |
| 136 | def should_continue(data): |
| 137 | if isinstance(data['agent_outcome'], AgentFinish): |
nothing calls this directly
no outgoing calls
no test coverage detected