mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-05 21:01:50 +08:00
Merge pull request #203 from RuoJi6/RuoJi6/feat/issue-194-memory-limit
fix: limit ARTEX container and tool memory use # Conflicts: # agent/chat.go # agent/mainagent.go # agent/planner.go
This commit is contained in:
commit
9ce996ef46
36 files changed
+1869
-64
No files matched your search
+1
-1
@@ -120,7 +120,7 @@ func (c *ChatAgent) Chat(ctx context.Context, agentKey, sessionID, message strin
|
||||
// Pure assistant: DefaultTools as the base; AugmentTools layers in the key's
|
||||
// visible skills/MCP and lets the DB tools table filter/override. DefaultTools
|
||||
// have no tools-table rows, so they always pass through.
|
||||
base := actool.DefaultTools()
|
||||
base := guardedDefaultTools()
|
||||
ctx = WithRunInfo(ctx, RunInfo{SessionID: sessionID, WorkDir: sessionWorkDir})
|
||||
tools, def, cleanup := AugmentTools(ctx, agentKey, base)
|
||||
defer cleanup()
|
||||
|
||||
Reference in new issue
Block a user