agora.fleet.strategies.qwen2_5_coder
qwen2_5_coder strategy — few-shot the text channel (Phase 2 design).
Mismatch: qwen2.5-coder wasn’t trained on tool-call tokens; under the default
protocol it narrates intent instead of sustaining calls (~0.67 calls/task in
v1, all via text-fallback extraction, 0/18 pass). The failure is loop
breakdown, not parsing — Agora’s text-fallback parser already extracts the
json blocks the model does emit.
Target: wrap_system appends two complete worked examples of tool-call turns
in the exact fenced-JSON shape the text-fallback parser consumes (one
read_file, one write_file, realistic arguments), followed by two rules.
wrap_tools / wrap_messages are identity. This is a text-channel
strategy: it is judged on pass_rate / tool_calls_total;
structured_emission_rate may stay 0 by design.
Classes
Append a fenced-JSON few-shot block + two rules to the system prompt. |