skillfed

agent-framework-foundry-hosting

Foundry Hosting integration for Microsoft Agent Framework.

agent-framework-foundry-hosting v1.0.0b260813 337.7K downloads/30d#7,446 on PyPI12,804
Permissive license Active released

What it is and what it does

Agent-framework-foundry-hosting bridges Microsoft's Agent Framework with the Foundry Agent Server, enabling agents and workflows to run on Foundry-hosted infrastructure. It provides three durable state stores out of the box: FoundryAgentSessionStore (for Agent Framework sessions), FoundryCheckpointStore (for workflow checkpoints), and FoundryFunctionApprovalStore (for function approvals). When hosted on Foundry, all state is automatically isolated by platform user ID—no manual partitioning needed. Outside Foundry, state persists as JSON files locally under ~/.agentserver/state_stores.

The package depends on agent-framework-core, three azure-ai-agentserver modules (core, responses, invocations), httpx, and mcp. It's in beta (1.0.0b260813) but actively maintained, with support for Python 3.10 through 3.14. The permissive license and low install friction make it straightforward to add to an Agent Framework project that targets Foundry deployment.

Use it for:

  • Deploy Agent Framework agents to Foundry infrastructure with automatic durable session and checkpoint storage.
  • Build multi-user agent applications where session data must be isolated by platform user ID without custom partitioning logic.
  • Persist workflow checkpoints across agent restarts to enable long-running, resumable workflows.
  • Manage function approval workflows with durable storage that works both locally (file-based) and on Foundry (cloud-backed).
  • Develop agents locally using file-based state stores, then deploy the same code to Foundry with zero storage configuration changes.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Agent Framework agents and workflows with the Foundry Agent Server, providing durable state persistence (sessions, checkpoints, approvals) with automatic user isolation when hosted on Foundry infrastructure.

Yes, if you are building agents with Microsoft's Agent Framework and plan to deploy to Foundry infrastructure. The package is actively maintained, has no known vulnerabilities, and provides essential durable state management with automatic user isolation. The beta status and recent release date (2026-08-14) suggest it is still evolving; review the sample code and state-store guide before committing to production use.

Install

agent-framework-foundry-hosting on PyPI

pip

pip install agent-framework-foundry-hosting

uv

uv add agent-framework-foundry-hosting

poetry

poetry add agent-framework-foundry-hosting

Installing agent-framework-foundry-hosting

Before you install

Active maintenance with a recent release (2026-08-14) and low install friction. Depends on six runtime packages including agent-framework-core and azure-ai-agentserver components, all from the same ecosystem.

License in practice

Licensed permissively, allowing broad use and modification without restrictive obligations.

Quickstart

pip install agent-framework-foundry-hosting

from agent_framework_foundry_hosting import ResponsesHostServer

# ResponsesHostServer persists Agent Framework sessions durably
server = ResponsesHostServer()

Requires Python 3.10 or later. Local state persistence writes to ~/.agentserver/state_stores by default; set AGENTSERVER_STATE_ROOT environment variable to customize the root directory.

Verify before relying

  • Whether ResponsesHostServer is the primary entry point or if other hosting classes are commonly used.
  • What configuration is required to connect to actual Foundry infrastructure (vs. local file-based fallback).
  • Performance characteristics or limits for concurrent agent sessions or checkpoint sizes.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — agent-framework-core, azure-ai-agentserver-core, azure-ai-agentserver-responses, azure-ai-agentserver-invocations, httpx, mcp
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 337,747/month — #7,446 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: agent_framework_foundry_hosting-1.0.0b260813-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

agent framework foundry hostingdurable state store agent sessionsfoundry agent server integrationworkflow checkpoint persistencefunction approval storemulti-user agent isolationagent framework deployment
agent-frameworkfoundry-hostingdurable-state

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

agent-framework-foundry-local

Integrates Microsoft Agent Framework with…

permissive · top 15,000 on PyPI

agent-framework-azurefunctions

Hosts Microsoft Agent Framework agents on Azure…

permissive · top 15,000 on PyPI

agent-framework-foundry

Provides Microsoft Foundry integrations for the…

permissive · top 15,000 on PyPI

agent-framework-durabletask

Integrates Microsoft Agent Framework agents…

permissive · top 15,000 on PyPI

agent-framework-azure-ai

Integrates Azure AI Foundry memory capabilities…

permissive · top 15,000 on PyPI

agent-framework-azure-cosmos

Provides Azure Cosmos DB integration for the…

permissive · top 15,000 on PyPI

azure-ai-agentserver-core

Provides the host framework and infrastructure…

permissive · top 5,000 on PyPI

azure-ai-agentserver-agentframework

Wraps an Agent-framework agent to host it on…

unclear · top 15,000 on PyPI

agent-framework-redis

Adds Redis-backed persistent memory and…

permissive · top 15,000 on PyPI

azure-ai-agentserver-invocations

Provides HTTP and WebSocket invocation protocol…

permissive · top 15,000 on PyPI

Further reading