tool dispatcher

The code that receives a model's tool call, checks the tool name and input, runs the matching function and builds the result.

In more detail

A dispatcher is the one place to enforce validation, permissions, timeouts and logging for every tool, and to turn exceptions into error results the model can read. Keep the mapping from tool names to functions in one table, so an unknown name is rejected rather than guessed.

Related terms

Taught in

References

Certification courses