Donner des outils à un agent IA : pourquoi je pose la limite hors du prompt
Quand je donne des outils à un agent, je le traite comme une dépendance tierce : je ne lui fais pas confiance, je l'encadre. La règle qui compte : la contrainte se pose au lancement du processus , pas dans le prompt. Un prompt, c'est une demande. Le modèle peut l'ignorer, ou se faire retourner par un texte malveillant glissé dans ce qu'il lit. Sur un agent que j'ai construit, la liste des outils…
When I provide tools to an AI agent, I treat it like a third-party dependency: I don't trust it, I monitor it. The crucial rule is that the constraint is applied at the start of the process, not within the prompt. A prompt is a request. The model may ignore it or receive a malicious text slipped into what it reads. For an agent I built, the list of allowed tools is fixed in advance: twelve reading tools permitted, fifteen writing tools forbidden.
It cannot write a file or send a message, even if it tries. Three additional protections are added: an anti-injection section in the prompt, because an agent reads texts it doesn't master, a mandatory contradictory review before each output, and a human validation before any publication. Why this choice over "a good prompt": an agent that can act does what its environment allows, not what we politely request.
If the action is impossible, there's no longer trust to be had in it. My interest lies less in the speed these tools bring than in how they are contained: this is what allows for quick results without a repository of unreviewed code. Amine Affif, a full-stack developer based in Paris.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to