Skip to content

Commit

Permalink
convert max_web_research_loops to int to make sure comparison works
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmutz committed Feb 25, 2025
1 parent ae891ee commit 08be5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assistant/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def route_research(state: SummaryState, config: RunnableConfig) -> Literal["fina
""" Route the research based on the follow-up query """

configurable = Configuration.from_runnable_config(config)
if state.research_loop_count <= configurable.max_web_research_loops:
if state.research_loop_count <= int(configurable.max_web_research_loops):
return "web_research"
else:
return "finalize_summary"
Expand Down

0 comments on commit 08be5cf

Please sign in to comment.