fix history leakage
This commit is contained in:
parent
45d0b0b142
commit
10b4cfeace
2 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ pip install -e .
|
||||||
## Run
|
## Run
|
||||||
```
|
```
|
||||||
python run_agent.py \
|
python run_agent.py \
|
||||||
--query "search up the latest docs on jit in python 3.13 and write me basic example that's not in their docs." \
|
--query "search up the latest docs on jit in python 3.13 and write me basic example that's not in their docs. profile its perf" \
|
||||||
--max_turns 20 \
|
--max_turns 20 \
|
||||||
--model claude-sonnet-4-20250514 \
|
--model claude-sonnet-4-20250514 \
|
||||||
--base_url https://api.anthropic.com/v1/ \
|
--base_url https://api.anthropic.com/v1/ \
|
||||||
|
|
|
||||||
|
|
@ -139,8 +139,9 @@ def terminal_tool(
|
||||||
result = run_tool_with_lifecycle_management(tool_call)
|
result = run_tool_with_lifecycle_management(tool_call)
|
||||||
|
|
||||||
# Format the result with all possible fields
|
# Format the result with all possible fields
|
||||||
|
# Map hecate's "stdout" to "output" for compatibility
|
||||||
formatted_result = {
|
formatted_result = {
|
||||||
"output": result.get("output", ""),
|
"output": result.get("stdout", result.get("output", "")),
|
||||||
"screen": result.get("screen", ""),
|
"screen": result.get("screen", ""),
|
||||||
"session_id": result.get("session_id"),
|
"session_id": result.get("session_id"),
|
||||||
"exit_code": result.get("returncode", result.get("exit_code", -1)),
|
"exit_code": result.get("returncode", result.get("exit_code", -1)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue