chore: ignore runtime data
This commit is contained in:
parent
6fb9c4cf22
commit
5bd61ae80d
25
.gitignore
vendored
Normal file
25
.gitignore
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# OS & tools
|
||||||
|
.DS_Store
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*.tmp
|
||||||
|
|
||||||
|
# Python artifacts
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Runtime data (main agent)
|
||||||
|
logs/
|
||||||
|
data/
|
||||||
|
project/
|
||||||
|
users/
|
||||||
|
webapp.pid
|
||||||
|
|
||||||
|
# Runtime data (sub agent)
|
||||||
|
sub_agent/tasks/
|
||||||
|
sub_agent/data/
|
||||||
|
sub_agent/logs/
|
||||||
|
sub_agent/project/
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
*.pid
|
||||||
@ -595,16 +595,16 @@ class MainTerminal:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# 3. 保存独立的tool消息
|
# 3. 保存独立的tool消息
|
||||||
for tool_result in collected_tool_results:
|
for tool_result in collected_tool_results:
|
||||||
self.context_manager.add_conversation(
|
self.context_manager.add_conversation(
|
||||||
"tool",
|
"tool",
|
||||||
tool_result["content"],
|
tool_result["content"],
|
||||||
tool_call_id=tool_result["tool_call_id"],
|
tool_call_id=tool_result["tool_call_id"],
|
||||||
name=tool_result["name"]
|
name=tool_result["name"]
|
||||||
)
|
)
|
||||||
system_message = tool_result.get("system_message")
|
system_message = tool_result.get("system_message")
|
||||||
if system_message:
|
if system_message:
|
||||||
self._record_sub_agent_message(system_message, tool_result.get("task_id"), inline=False)
|
self._record_sub_agent_message(system_message, tool_result.get("task_id"), inline=False)
|
||||||
|
|
||||||
# 4. 在终端显示执行信息(不保存到历史)
|
# 4. 在终端显示执行信息(不保存到历史)
|
||||||
if collected_tool_calls:
|
if collected_tool_calls:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user