nat.front_ends.fastapi.routes.execution#

Interactive execution route registration.

Attributes#

Functions#

build_accepted_response(...)

Build a 202 accepted response from an interactive execution record.

add_execution_routes(worker, app)

Add HTTP interactive execution endpoints (HITL + OAuth polling).

Module Contents#

logger#
build_accepted_response(
record: nat.front_ends.fastapi.execution_store.ExecutionRecord,
) nat.data_models.interactive_http.ExecutionAcceptedInteraction | nat.data_models.interactive_http.ExecutionAcceptedOAuth#

Build a 202 accepted response from an interactive execution record.

async add_execution_routes(
worker: nat.front_ends.fastapi.fastapi_front_end_plugin_worker.FastApiFrontEndPluginWorker,
app: fastapi.FastAPI,
)#

Add HTTP interactive execution endpoints (HITL + OAuth polling).