DEFINITION
Single-Shot Function Calling
Single-Shot Function Calling
Definition
A function calling approach where the model makes a single tool invocation decision based on user input, without requiring multi-turn reasoning or chaining. Needle is optimized for single-shot function calling, where the model matches the query to one tool and extracts arguments in a single forward pass.
Examples in the Wild
- Example 1:User: 'set a timer for 10 minutes' → Single call to timer_set()
- Example 2:User: 'send a message to Alice' → Single call to send_message()
- Example 3:User: 'navigate to the coffee shop' → Single call to navigate()