src.uagents.query
Query Envelopes.
query 
async def query(destination: str,
message: Model,
resolver: Optional[Resolver] = None,
timeout: int = 30) -> Union[MsgStatus, Envelope]
Query a remote agent with a message and retrieve the response envelope.
Arguments:
destination
str - The destination address of the remote agent.message
Model - The message to send.resolver
Optional[Resolver], optional - The resolver to use for endpoint resolution. Defaults to GlobalResolver.timeout
int - The timeout for the query in seconds. Defaults to 30.
Returns:
Union[MsgStatus, Envelope]: The response envelope if successful, otherwise MsgStatus.
Last updated on