Asked about How tool calling works
Why use an enum in a parameter schema?
An answer that works
It constrains the argument to valid values at generation time, so an invalid status or category cannot be produced. It also removes a whole class of validation code from your handler.
Reading an answer is not being able to give one. The section that teaches this is How tool calling works, 3 hours of Tool calling.
Learn this properlyAlso asked about Tool calling
Walk me through what happens when a model calls a tool.What makes a good tool description?How many API calls does one tool-using question take?A tool throws an exception. What should happen?How do you handle a model requesting several tools in one turn?Why does the size of a tool result matter?How do you stop an agent taking a destructive action?