Skip to content

Commit

Permalink
chore: delint
Browse files Browse the repository at this point in the history
  • Loading branch information
anubhav756 committed Nov 15, 2024
1 parent 5c94393 commit b64bdc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion llm_demo/orchestrator/langgraph/langgraph_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ def user_session_reset(self, session: dict[str, Any], uuid: str):
# Reset graph checkpointer
checkpoint = empty_checkpoint()
config = self.get_config(uuid)
self._checkpointer.put(config=config, checkpoint=checkpoint, metadata={}, new_versions={})
self._checkpointer.put(
config=config, checkpoint=checkpoint, metadata={}, new_versions={}
)

# Update state with message history
self._langgraph_app.update_state(config, {"messages": history})
Expand Down
4 changes: 3 additions & 1 deletion llm_demo/orchestrator/langgraph/react_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async def acall_model(state: UserState, config: RunnableConfig):
res = AIMessage(
content="suggesting a tool call",
tool_calls=[
ToolCall(id=str(uuid.uuid4()), name=action, args=action_input)
ToolCall(
id=str(uuid.uuid4()), name=action, args=action_input
)
],
)
except Exception as e:
Expand Down

0 comments on commit b64bdc7

Please sign in to comment.