Skill 2.1.3

Design workflows, tool-augmented flows, and multistep reasoning pipelines

Key Concepts

A workflow chains steps with defined inputs and outputs: for example classify the request, retrieve context, draft a response, check it against policy and format it. Deterministic steps (validation, lookups, calculations) are written as code; language steps use models, each with a focused prompt and often a smaller model. Tool-augmented flows let the model call functions, such as an order lookup or a calculator, through function calling: the model returns a structured call, the application executes it and returns the result for the next model turn.

Multistep reasoning pipelines decompose a problem into sub-questions, answer each with retrieval or tools, and combine the results; reasoning models perform part of this internally. Foundry workflows provide a visual and declarative way to orchestrate agents, conditions, loops and human steps, and the Microsoft Agent Framework provides the same in code. Designs should limit iterations, validate intermediate outputs and log every step for tracing.