invocations Package
Invocations protocol for Azure AI Hosted Agents.
This package provides an invocation protocol host as a subclass of AgentServerHost.
Quick start::
from azure.ai.agentserver.invocations import InvocationAgentServerHost
from starlette.responses import JSONResponse
app = InvocationAgentServerHost()
@app.invoke_handler
async def handle(request):
return JSONResponse({"ok": True})
app.run()
Classes
| InvocationAgentServerHost |
Invocation protocol host for Azure AI Hosted Agents. A AgentServerHost subclass that adds the invocation protocol endpoints. Use the decorator methods to wire handler functions to the endpoints. For multi-protocol agents, compose via cooperative inheritance:
Usage:
|