agentscope.rpc.rpc_agent_pb2_grpc module

Client and server classes corresponding to protobuf-defined services.

class agentscope.rpc.rpc_agent_pb2_grpc.RpcAgentStub(channel)[source]

Bases: object

Servicer for rpc agent server

__init__(channel)[source]

Constructor.

Parameters:

channel – A grpc.Channel.

class agentscope.rpc.rpc_agent_pb2_grpc.RpcAgentServicer[source]

Bases: object

Servicer for rpc agent server

is_alive(request, context)[source]

check server is alive

stop(request, context)[source]

stop the server

create_agent(request, context)[source]

create a new agent on the server

delete_agent(request, context)[source]

delete agent from the server

delete_all_agents(request, context)[source]

clear all agent on the server

clone_agent(request, context)[source]

clone an agent with specific agent_id

get_agent_list(request, context)[source]

get id of all agents on the server as a list

get_server_info(request, context)[source]

get the resource utilization information of the server

set_model_configs(request, context)[source]

update the model configs in the server

get_agent_memory(request, context)[source]

get memory of a specific agent

call_agent_func(request, context)[source]

call funcs of agent running on the server

update_placeholder(request, context)[source]

update value of PlaceholderMessage

download_file(request, context)[source]

file transfer

agentscope.rpc.rpc_agent_pb2_grpc.add_RpcAgentServicer_to_server(servicer, server)[source]
class agentscope.rpc.rpc_agent_pb2_grpc.RpcAgent[source]

Bases: object

Servicer for rpc agent server

static is_alive(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static stop(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static create_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static delete_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static delete_all_agents(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static clone_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static get_agent_list(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static get_server_info(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static set_model_configs(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static get_agent_memory(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static call_agent_func(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static update_placeholder(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]
static download_file(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]