This release is a pre-release and may not be stable for production use.
agent-framework-hosting-responses
OpenAI Responses-shaped helpers for app-owned Agent Framework hosting.
This package provides the Responses-specific conversion layer:
responses_to_run(...)— convert a Responses request body into Agent Framework run values.responses_session_id(...)— extract a priorresp_*response id orconv_*conversation id from the request body when present.create_response_id(...)— mint a Responses-shaped response id.responses_from_run(...)— convert anAgentResponseinto a Responses-compatible JSON payload.responses_from_streaming_run(...)— convert an Agent FrameworkResponseStreaminto Responses-compatible SSE events.
FastAPI/Starlette/Django/Azure Functions code owns route registration, authentication, status codes, response construction, and background work.
from agent_framework_hosting import AgentState
from agent_framework_hosting_responses import (
create_response_id,
responses_from_run,
responses_session_id,
responses_to_run,
)
from fastapi import Body, FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
state = AgentState(agent)
@app.post("/responses")
async def responses(body: dict = Body(...)) -> JSONResponse:
run = responses_to_run(body)
session_id = responses_session_id(body)
response_id = create_response_id()
session = await state.get_or_create_session(session_id or response_id)
result = await (await state.get_target()).run(
run["messages"],
session=session,
options=run["options"],
)
await state.set_session(response_id, session)
return JSONResponse(responses_from_run(result, response_id=response_id, session_id=session_id))
The base execution-state helpers live in
agent-framework-hosting.
Metadata
Release files for agent-framework-hosting-responses 1.0.0a260709
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agent_framework_hosting_responses-1.0.0a260709.tar.gz | 11.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_framework_hosting_responses-1.0.0a260709-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / agent_framework_hosting_responses-1.0.0a260709.tar.gz
| Download URL | agent_framework_hosting_responses-1.0.0a260709.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
733c5c390536be193bec23b837218bd17d4346c628765801ab192771ce57292a
|
|
BLAKE2b-256 checksum How to use checksums |
9f73837dd8b0e9adfef13cc620f3cba0fdc21ad5798ad8190923b115c6a8637a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / agent_framework_hosting_responses-1.0.0a260709-py3-none-any.whl
| Download URL | agent_framework_hosting_responses-1.0.0a260709-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d667572c29365b2238172ea1d6b21f15b0a32cbbbe0560d9261c10362ae1cd7f
|
|
BLAKE2b-256 checksum How to use checksums |
d9e4f40e4c8b6a18f94ab2b3e3bd36bd364a9aaaab1ee298895a36c1554028d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for agent-framework-hosting-responses 1.0.0a260709
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.