ExitTool Calling: The request-and-result loop1 / 9
Explanationassociate9 steps · 4 exercises

Follow one tool call across two model turns

How an application declares a tool to a managed model, validates and executes the model’s structured request, and returns the result for the next model turn.

A support app can use tool calling to answer a question about a live order. The app tells the model what lookup it offers. If the model asks for that lookup, the app checks the request, reads the order, and sends the outcome back in a new model turn.

The diagram follows one successful lookup in time order. The Lambda cards show phases of the same application function, and the SageMaker cards show two calls to the same hosted model endpoint, configured to support tool calling. The second turn uses the lookup result to answer the customer; the final reply is outside the diagram.

Prompt and toolsStructured tool requestAuthorized order readOrder itemCorrelated tool result
Application: start turnAWS Lambda
Model endpoint: first turnAmazon SageMaker
Application: validate and executeAWS Lambda
Orders tableAmazon DynamoDB table
Application: package resultAWS Lambda
Model endpoint: next turnAmazon SageMaker

Stage 1 of 7: The application starts with the customer's question and the identity established by the app's authentication layer.

Next up: Trace a request on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.