Definition: A method in which, instead of generating a textual response, the model produces the name of a Function and the arguments required to execute it.

Simply put: The model says “Execute this Function with these inputs,” and the application executes it.

Examples:

get_weather(city="Mashhad")
get_user(id=123)
search_products(query="laptop")

AI Agent My-Journey-In-Codeless