From agent ideas to a reusable architecture. Explore how a Foundry-centered approach can help your team build task-specific agents from shared components, rather than treating every use case as a separate stack.
Demand planning, supplier risk, invoice review, freight coordination, and customer triage are different kinds of work. Each can suggest a different agent role.
The roles here are illustrative examples, not a list of products or vendors.
Each needs a way to run, a model to interpret the task, clear instructions, approved capabilities, and the right context.
Bring the roles around a shared foundation.
A common architecture can make the repeated parts visible. A team can decide what to design once and what must stay specific to each workflow.
Reuse deliberately. Specialize where it matters.
Shared building blocks can reduce one-off design work. Data access, permissions, and behavior still need to fit the task and the people who use it.
One pattern. Five parts to design.
Microsoft Foundry agents can combine a model, instructions, and tools. A wider architecture also considers the runtime around them, the information they use, and context they may retain.
This is a practical reference pattern, not a fixed checklist of Foundry product features.
Example roles, one shared pattern. The exact components vary by agent and implementation.
HarnessCoordinate the steps around the model so an agent can run inside a system your team can observe and manage.
LLMHandle language and reasoning tasks. The model does not replace business rules, permissions, or validation.
PromptsGive an agent a clear job and a consistent way to respond.
Tools, skills & knowledgeConnect an agent's reasoning to the systems, procedures, and information it is allowed to use.
MemoryHelp an agent continue work without asking people to repeat useful context.
What each part does
Follow one component at a time. The diagram changes with the story; each layer has a distinct job and a different reuse decision.
Harness
The harness is the application and runtime around the model. It receives a request, assembles context, manages the execution loop, and handles tool results.
Purpose: Coordinate the steps around the model so an agent can run inside a system your team can observe and manage.
Reuse thoughtfully: Reuse the runtime pattern where the workflow and control requirements match. A harness is an architectural term here, not a specific Foundry product name.
A request moves through context, a model, an approved tool, and a result check before returning an answer.
LLM
A large language model interprets the request and supplied context, then produces a response or proposes a next step such as a tool call.
Purpose: Handle language and reasoning tasks. The model does not replace business rules, permissions, or validation.
Reuse thoughtfully: A model choice can be shared across agents when its quality, cost, latency, and data requirements suit each job.
An input and its context enter a language model, which can return a response or request a tool call.
Prompts
Instructions define the agent's role, task, constraints, and expected response. They provide direction to the model; they are not a substitute for enforcement in code.
Purpose: Give an agent a clear job and a consistent way to respond.
Reuse thoughtfully: Keep shared instructions stable, then add task-specific details where agents genuinely differ. Version changes so behavior can be reviewed.
Role, task, constraints, and output requirements combine into an agent instruction set.
Tools, skills & knowledge
Tools let an agent query data or take an action. Skills describe repeatable procedures. Knowledge supplies approved information to ground its work.
Purpose: Connect an agent's reasoning to the systems, procedures, and information it is allowed to use.
Reuse thoughtfully: Share tools and knowledge deliberately, with access scoped to the role and workflow that need them.
An agent draws on permitted tools, repeatable skills, and trusted knowledge for different kinds of work.
Memory
Memory is relevant context carried from one step or conversation to another. It can include recent conversation history or information deliberately retained for later.
Purpose: Help an agent continue work without asking people to repeat useful context.
Reuse thoughtfully: Decide what to retain, for whom, and for how long. Reuse context only when the data boundary and purpose fit.
A useful detail from an earlier turn is retained and retrieved to help answer a follow-up question.