Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Foundry Hosting

This package provides the integration of Agent Framework agents and workflows with the Foundry Agent Server, which can be hosted on Foundry infrastructure.

ResponsesHostServer persists the Agent Framework AgentSession used by regular agents in addition to the Responses provider's message history. By default it uses the experimental FoundrySessionStore under /.sessions when hosted and an in-memory SessionStore locally. Hosted snapshots are partitioned by the Agent Server request context's platform user ID. Snapshot filenames use the Responses conversation_id or response_id, depending on the continuation mode.

Foundry's session file API exposes the hosted $HOME directory as /, so the API path /.sessions is stored on disk at $HOME/.sessions.

Workflow agents continue to use their existing checkpoint storage layout.

Foundry session isolation

FoundrySessionStore currently subclasses core's FileSessionStore. It reads the active request through azure.ai.agentserver.core.get_request_context() and validates the platform user_id (the same x-agent-user-id value exposed as ResponseContext.platform_context.user_id_key) before selecting its on-disk directory.

Regular-agent session snapshots use the platform user ID and a Responses key:

/.sessions/<user-id>/<conversation-id-or-response-id>.json

A Foundry session controls hosted compute and filesystem lifetime and may host multiple users and Responses conversations. The Foundry session ID is not used as the MAF session identifier.

When conversation_id is used, the host reads and writes the same snapshot under that ID. When previous_response_id is used, the host reads that response snapshot, runs the loaded MAF session, and writes the updated snapshot under the current response's response_id. Multiple responses can therefore branch from one prior response without overwriting its snapshot.

Foundry does not infer the hosted agent_session_id from previous_response_id. Callers using response chains must also reuse the agent_session_id returned by the previous response so the request reaches the same sandbox and $HOME/.sessions filesystem. Conversation objects bind to a stable hosted session automatically.

Workflow checkpoints and function approvals preserve the existing Foundry Hosting layout. Hosted paths insert the validated raw platform user ID:

/.checkpoints/<user-id>/<context-id>/
/.function_approvals/<user-id>/approval_requests.json

Local workflow checkpoints use {cwd}/.checkpoints/<context-id>/, and local function approvals remain in memory.

Hosted requests require container protocol 2.0.0. The v2-only request call_id is checked before session, checkpoint, or approval storage is used, and a missing platform user ID fails closed. Regular agents also require the normal Responses continuation ID for restoration. Local requests may remain unscoped.

The Foundry-specific store type intentionally hides the current filesystem implementation from ResponsesHostServer setup. A future version may move FoundrySessionStore to a Foundry storage API without changing the host's default configuration.

Metadata

Release files for agent-framework-foundry-hosting 1.0.0b260730

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-framework-foundry-hosting 1.0.0b260730
File Size Uploaded Provenance Actions
agent_framework_foundry_hosting-1.0.0b260730.tar.gz 31.0 kB Without provenance Details for agent_framework_foundry_hosting-1.0.0b260730.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-framework-foundry-hosting 1.0.0b260730
File Interpreter ABI Platform Actions
agent_framework_foundry_hosting-1.0.0b260730-py3-none-any.whl Python 3 none any Details for agent_framework_foundry_hosting-1.0.0b260730-py3-none-any.whl

Total release size: 63.8 kB

Release files / agent_framework_foundry_hosting-1.0.0b260730.tar.gz

Download URL agent_framework_foundry_hosting-1.0.0b260730.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d8dba08bc6cef083cad1934230bf56eca6128c5b1433df83c2a99359f083d65
BLAKE2b-256 checksum
How to use checksums
6d49d21872f95652af58479f705ae98233c7fa1c3a2e5f62bef4d97b7df6995a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agent_framework_foundry_hosting-1.0.0b260730-py3-none-any.whl

Download URL agent_framework_foundry_hosting-1.0.0b260730-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
790b3e472009258add341c7c41d01e7bfeb8d3e8375af4d7ec4a68a6dba14f7c
BLAKE2b-256 checksum
How to use checksums
197d01bd4fa5a6cdd3d49b122d096610b5c2e618c7e42bffa46f3719dfc64fea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agent-framework-foundry-hosting 1.0.0b260730

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page