Spaces:
Sleeping
Sleeping
Fix logging in AgentNode's step callback in graph.py to display action directly instead of action step, improving clarity in debug output.
Browse files
graph.py
CHANGED
|
@@ -64,7 +64,7 @@ class AgentNode:
|
|
| 64 |
# )
|
| 65 |
|
| 66 |
step_callbacks: Optional[List[Callable]] = [
|
| 67 |
-
lambda step: logger.info(f"Step {step.step_number} completed: {step.
|
| 68 |
]
|
| 69 |
|
| 70 |
self.agent = CodeAgent(
|
|
|
|
| 64 |
# )
|
| 65 |
|
| 66 |
step_callbacks: Optional[List[Callable]] = [
|
| 67 |
+
lambda step: logger.info(f"Step {step.step_number} completed: {step.action}")
|
| 68 |
]
|
| 69 |
|
| 70 |
self.agent = CodeAgent(
|