agent-framework-declarative
Declarative specification support for Microsoft Agent Framework.
What it is and what it does
This package adds declarative YAML-based specification support to Microsoft's Agent Framework, letting you define agents and workflows in configuration files rather than pure Python code. It wraps agent-framework-core with a higher-level abstraction layer and depends on httpx for HTTP operations, powerfx for formula evaluation, and pyyaml for parsing specifications.
The package splits its API into two stability tiers: WorkflowFactory and related workflow execution surfaces are production-ready, while AgentFactory and the YAML agent loading path are experimental and may change without notice—the package emits ExperimentalWarning when you use those symbols. This split means you can rely on declarative workflows in production but should treat agent configuration loading as subject to breaking changes.
Use it for:
- Define multi-step agent workflows in YAML and execute them without writing orchestration code
- Build agents with declarative configuration for easier version control and non-programmer configuration
- Prototype agent behavior by editing YAML specifications and reloading without code changes
- Integrate HTTP-based services into agent workflows using httpx under the hood
- Evaluate dynamic formulas within agent workflows using powerfx expressions
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Enables building agents from YAML specifications using Microsoft's Agent Framework, with stable workflow support and experimental agent configuration loading.
Yes, if you are building agents within Microsoft's Agent Framework ecosystem and want YAML-based configuration. The stable workflow tier is production-ready, and the package has low install friction and active maintenance. However, avoid the experimental AgentFactory and YAML agent loading APIs in production code until they stabilize, as they carry no backward-compatibility guarantee.
Install
agent-framework-declarative on PyPI
pip
pip install agent-framework-declarativeuv
uv add agent-framework-declarativepoetry
poetry add agent-framework-declarativeInstalling agent-framework-declarative
Before you install
Low install friction with a pure Python wheel. Active maintenance as of 2026-08-14 with recent release. Depends on agent-framework-core, httpx, powerfx, and pyyaml.
License in practice
MIT license permits commercial and private use with minimal restrictions; permissive treatment means you can integrate freely into most projects.
Quickstart
pip install agent-framework-declarative
from agent_framework_declarative import WorkflowFactory
workflow = WorkflowFactory.create(spec)
result = workflow.execute()
Requires Python 3.10 or later. Experimental agent loading APIs emit ExperimentalWarning and may break in future releases.
Verify before relying
- Stability guarantees for the experimental AgentFactory and YAML agent loading path beyond the ExperimentalWarning
- Performance characteristics when loading large or complex YAML agent specifications
- Compatibility matrix with specific versions of agent-framework-core and powerfx
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — agent-framework-core, httpx, powerfx, pyyaml |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 478,657/month — #6,436 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agent_framework_declarative-1.0.2-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
agent-framework-foundryProvides Microsoft Foundry integrations for the…
permissive · top 15,000 on PyPI
regopyregopy wraps the Open Policy Agent's Rego…
permissive · top 15,000 on PyPI
agent-framework-foundry-localIntegrates Microsoft Agent Framework with…
permissive · top 15,000 on PyPI
agent-framework-ollamaIntegrates Ollama LLM provider support into…
permissive · top 15,000 on PyPI
agent-framework-orchestrationsProvides high-level builder patterns for…
permissive · top 15,000 on PyPI
agent-framework-labProvides experimental lab modules (GAIA, TAU2,…
permissive · top 15,000 on PyPI
agent-framework-claudeIntegrates Claude with Microsoft Agent…
permissive · top 15,000 on PyPI
agent-framework-devuiProvides a lightweight web UI and…
permissive · top 15,000 on PyPI
strands-agents-builderStrands Agent Builder is a terminal-based…
permissive · top 15,000 on PyPI
datacontract-specificationReads and writes YAML files conforming to the…
permissive · top 5,000 on PyPI