flowchart TD A(User: Send request with question and tool definitions) --> B(Model: Analyze request) B --> |Function needed| C(Model: Return function call with arguments) C --> D(Client: Execute the function) D --> E(Client: Send function output back to the model) E --> F(Model: Generate final response using function output) %% Interactions click A href "#usage" "User sends the initial request with tool definitions" click C href "#usage" "Model responds with the required function call" click E href "#detailed-example" "Client sends the tool's output back to the model" click F href "#detailed-example" "Model provides the final answer"