Agent Dispatch¶
Use this when a workbench task should move from the local task ledger into the AKS / Service Bus execution lane.
Create Or Inspect A Task¶
Use the Agent Workbench UI or backend API:
POST /api/agents/tasks
GET /api/agents/tasks/{task_id}
GET /api/agents/tasks/{task_id}/traces
GET /api/agents/tasks/{task_id}/artifacts
Run Locally With Agents SDK¶
POST /api/agents/tasks/{task_id}/run
If the OpenAI Agents SDK is unavailable, the task must move to an explicit blocked state with a trace.
Dispatch To Service Bus¶
POST /api/agents/tasks/{task_id}/dispatch
Expected configured runtime:
LEAFENTERPRISE_AGENT_SERVICE_BUS_CONNECTION_STRING, orLEAFENTERPRISE_AGENT_SERVICE_BUS_FULLY_QUALIFIED_NAMESPACE.
If neither is configured, dispatch returns not_configured and records a trace.
Worker Entry¶
python scripts\run_agent_service_bus_worker.py
The worker records receipt/failure traces, materializes ITR evidence when a source request is present, and runs the governed agent execution path.