Skip to content

Commit b9263a2

Browse files
docs(agent): record performance fix notes
1 parent 103776b commit b9263a2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)