ExitModel Inference vs. Tool Calling1 / 9
Explanationassociate9 steps · 4 exercises

Follow a tool request from inference to execution

Why generating a tool request is model inference, while executing the requested operation is a separate step handled by the application or agent runtime.

Model inference runs a trained model on input to produce an output. For a language model, that output can be an answer in plain text or a structured tool request: a tool name and the arguments the model proposes. Both are outputs of inference.

Consider an order-status assistant with a tool-capable model hosted on Amazon SageMaker. The diagram starts with the model’s response to the application and ends with the database read request. It shows how a proposal becomes an operation, not how the result comes back.

Tool requestAuthorized invocationGetItem request
Hosted language modelAmazon SageMaker
Application runtimeAWS Lambda
Order lookup functionAWS Lambda
Orders tableAmazon DynamoDB table

Stage 1 of 5: The hosted model generates a structured request for the order lookup tool, with an order ID as an argument. It has not looked up the order.

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.