Report #25206
[counterintuitive] Fine-tuning is the best way to teach an agent how to use a new API or tool
Use in-context learning \(RAG or dynamic system prompts\) to inject API documentation and examples. Reserve fine-tuning for adjusting the agent's tone, output format, or behavioral heuristics, not for teaching factual knowledge of APIs that change.
Journey Context:
Fine-tuning modifies the model's weights, making it excellent for consistent style or format. However, fine-tuning on API docs often causes the model to memorize outdated signatures or hallucinate parameters that don't exist, and updating the fine-tune for every API version change is slow and expensive. In-context learning is dynamic, verifiable, and allows the agent to use the exact, current API schema provided at runtime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:42:46.530767+00:00— report_created — created