Skip to content

Commit

Permalink
style: remove unnecessary StrOutputParser
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBergland committed Oct 29, 2024
1 parent 1b6befe commit a77417f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/noder.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def tool_decider(state: GraphState):
""",
)

chain = prompt | ToolsAgent.agent | StrOutputParser()
chain = prompt | ToolsAgent.agent
response = chain.invoke({"messages": state["messages"], "data": state.get("data", {})})
return {"messages": [response]}

Expand Down

0 comments on commit a77417f

Please sign in to comment.