We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103776b commit b9263a2Copy full SHA for b9263a2
1 file changed
.serena/memories/agent_performance_fixes.md
@@ -0,0 +1,17 @@
1
+# Agent Performance Fixes (TASK-277)
2
+
3
+## Issues
4
+1. **Parallel tool execution not working** - Model not calling multiple tools per turn
5
+2. **Token cap needed** - Response generation taking 63s due to excessive token generation
6
7
+## Changes Required
8
9
+### 1. Add max_tokens to agent builder (mod.rs)
10
+Add `.max_tokens(1024)` after `.temperature(0.2)` in the `build_agent()` function.
11
12
+### 2. Update system prompt (prompt.rs)
13
+Add explicit instruction to call multiple tools in parallel. The prompt should say something like:
14
+"You can and SHOULD call multiple tools in a single turn. Use parallel tool calls to gather information faster."
15
16
+### 3. Run tests
17
+- `cargo nextest run --workspace --features agent` should pass
0 commit comments