Skip to content
Open
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/enrichment_agent/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def route_after_agent(
# it ensures the system doesn't crash but instead tries to recover by calling the agent model again.
if not isinstance(last_message, AIMessage):
return "call_agent_model"
# If the "Into" tool was called, then the model provided its extraction output. Reflect on the result
# If the "Info" tool was called, then the model provided its extraction output. Reflect on the result
if last_message.tool_calls and last_message.tool_calls[0]["name"] == "Info":
return "reflect"
# The last message is a tool call that is not "Info" (extraction output)
Expand Down Expand Up @@ -215,7 +215,7 @@ def route_after_checker(

# Create the graph
workflow = StateGraph(
State, input=InputState, output=OutputState, config_schema=Configuration
State, input_schema=InputState, output_schema=OutputState, config_schema=Configuration
)
workflow.add_node(call_agent_model)
workflow.add_node(reflect)
Expand Down