Skip to content
Middle+0 views

What tools had you implemented—were they hard-coded in the code or specified in the prompt?

Practice

Asked at

AI answer

Usually, the available tools are described explicitly rather than hidden in arbitrary prompt text. Depending on the platform, these may be function/API schemas passed to the model separately, or tool descriptions in the system configuration. The model selects a tool and generates arguments; the application validates them, performs the permitted action, and returns the result to the model. The implementations themselves reside in code or services, not in the prompt. This makes testing and access control easier. If the set of tools is small and fixed, their schemas can be declared statically in code; the configuration can be separated out when flexibility is needed.