agentscope.rpc.rpc_async module

Async related modules.

class agentscope.rpc.rpc_async.AsyncResult(host: str, port: int, task_id: int | None = None, stub: ~concurrent.futures._base.Future | None = None, retry: ~agentscope.rpc.retry_strategy.RetryBase = <agentscope.rpc.retry_strategy.RetryFixedTimes object>)[源代码]

基类:object

Use this class to get the the async result from rpc server.

__init__(host: str, port: int, task_id: int | None = None, stub: ~concurrent.futures._base.Future | None = None, retry: ~agentscope.rpc.retry_strategy.RetryBase = <agentscope.rpc.retry_strategy.RetryFixedTimes object>) None[源代码]
update_value() None[源代码]

Update the value. For compatibility with old version.

result() Any[源代码]

Get the result.