PRODUCTION SCENARIO
A Generative AI Engineer registers two Unity Catalog function tools for a retail agent: one refunds a delivered order and one cancels an unshipped order. Both carry one-word docstrings, and in testing the LLM calls the refund function for 30% of cancellation requests.
What should the engineer fix first to improve tool selection?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Write docstrings that state what each function does and when to use it
The Unity Catalog functions toolkit parses each function's docstring to tell the LLM how and when a tool applies, so one-word docstrings leave the model guessing. Temperature and naming changes do not supply the semantic distinction it is missing.