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>)[source]

Bases: 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[source]
update_value() None[source]

Update the value. For compatibility with old version.

result() Any[source]

Get the result.