AI engineering glossary · Prompt context engineering

What is tool choice?

Tool choice: A request setting that controls whether the model may, must, or must not call a tool, or must call one specific tool. It gives developers control, for example forcing a structured extraction call every time.

Level: intermediateTopic: Prompt context engineering

Tool choice: an example

Set tool_choice to a fixed function 'extract_invoice' so the reply is always that function's arguments.

Related terms

More Prompt context engineering terms

Where you learn it

Tool choice is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.