One good input/output pair outperforms a paragraph of adjectives. Models imitate the example's structure more reliably than they interpret 'be concise'.
Google's grounding / search retrieval is a retrieval step with a vendor index. Treat citations as you would any RAG hit: verify URLs before acting.
Design every mutating tool as idempotent. Agents retry, users double-click, and proxies replay POSTs.
Set a hard max on tool rounds per user request. A confused agent will otherwise call search forever.
Persist tool name, arguments, latency, and a redacted result. When the agent loops, the log is the only ground truth.
Use a smaller model to break a task into tool calls, then a stronger model only for the hard edit. You cut cost without losing the critical patch.
When you need JSON, use structured outputs or a tool with a schema. Parsing free-form markdown with regex will break on the first extra sentence.
Extended thinking / reasoning traces are not function calls. Cap the thinking budget so a hard problem cannot starve the final answer.
Ask for citations that map to retrieval chunk IDs. You can then verify the claim against the source instead of trusting fluent prose.
For codebase Q&A, retrieve the relevant files first, then generate. A 200k context window is not a search index.
// showing 1-10 of 16 posts • page 1/2