File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments