request • AI Agent SDK
request: Deliver “req“ to the session's client and await its reply.
request
Async
Method
</div>
This is a method of the GatewayRequestChannelProtocol class in the protocols module.
Deliver `req` to the session’s client and await its reply.
Returns the correlated :class:GatewayServerReply, or `None when no reply arrives within timeout_s` (the request is then cleared from the open set so it is not replayed on a later reconnect).
Signature
async def request(req: 'GatewayServerRequest') -> Optional['GatewayServerReply']Parameters
ParamField
GatewayServerRequestNo description available.
Returns
ResponseField
Optional['GatewayServerReply']The result of the operation.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3919