symfonic.agent.fastapi.chat_owner¶
chat_owner ¶
Per-app ownership guard for compatibility-shaped HTTP chat roots.
assert_chat_family_routes_available ¶
Refuse existing root routes that would win selected family requests.
Source code in src/symfonic/agent/fastapi/chat_owner.py
assert_chat_owner_available ¶
Refuse an already claimed or served POST {prefix}/chat; claim nothing.
Source code in src/symfonic/agent/fastapi/chat_owner.py
claim_http_chat_owner ¶
Reserve an explicit root and fail closed on a later mixed co-mount.
A factory with an explicit app rejects claims for the same direct path. Opt-in roots additionally check the final composed router at startup and request time, covering outer include prefixes and app-less legacy routers mounted after the reservation. The passed app must be the outermost ASGI root: a selected app mounted beneath another router cannot inspect parent routes and is unsupported. Historical app-less legacy use is unchanged.
Source code in src/symfonic/agent/fastapi/chat_owner.py
register_chat_family_routes ¶
Guard the selected route family against later sibling shadowing.