Skip to content

Commit

Permalink
fix bug introduced to fix context size
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Oct 10, 2023
1 parent d6f0144 commit b85a7f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hybridagi/interpreter/graph_program_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ def decide_next(self, node:Node) -> Node:
context = self.working_memory.get_trace(self.fast_llm_max_token)

Check failure on line 223 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.9)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:223:9: F841 Local variable `context` is assigned to but never used

Check failure on line 223 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.10)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:223:9: F841 Local variable `context` is assigned to but never used

Check failure on line 223 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:223:9: F841 Local variable `context` is assigned to but never used

decision = self.perform_decision(
context,
purpose,
question,
options)
Expand Down Expand Up @@ -255,7 +254,6 @@ def use_tool(self, node:Node):
context = self.working_memory.get_trace(self.smart_llm_max_token)

Check failure on line 254 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.9)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:254:9: F841 Local variable `context` is assigned to but never used

Check failure on line 254 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.10)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:254:9: F841 Local variable `context` is assigned to but never used

Check failure on line 254 in hybridagi/interpreter/graph_program_interpreter.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (F841)

hybridagi/interpreter/graph_program_interpreter.py:254:9: F841 Local variable `context` is assigned to but never used

action = self.perform_action(
context,
purpose,
tool_name,
tool_input_prompt,
Expand Down

0 comments on commit b85a7f0

Please sign in to comment.