Skip to main content
  1. Tags/

Prompt-Engineering

Prompt Engineering for AI Agents -- Grounding, Roles, and YAML Configuration

Deep Dive · Apr 12, 2026 · 21 min read
Revised with .NET examples — A newer version of this article, covering both Python and .NET, is available as part of the MAF v1: Python and .NET series: MAF v1 — 24-prompt-engineering. The newer version pulls role-specific behavior out of the system prompt and into a context provider, so you don’t re-instantiate the agent per role. The five concerns and YAML composition below are still the canonical architecture; the new chapter shows the modernised wiring.
Prompt Engineering for AI Agents -- Grounding, Roles, and YAML Configuration