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)[源代码]

基类:object

Servicer for rpc agent server

__init__(channel)[源代码]

Constructor.

参数:

channel – A grpc.Channel.

class agentscope.rpc.rpc_agent_pb2_grpc.RpcAgentServicer[源代码]

基类:object

Servicer for rpc agent server

is_alive(request, context)[源代码]

check server is alive

stop(request, context)[源代码]

stop the server

create_agent(request, context)[源代码]

create a new agent on the server

delete_agent(request, context)[源代码]

delete agent from the server

delete_all_agents(request, context)[源代码]

clear all agent on the server

clone_agent(request, context)[源代码]

clone an agent with specific agent_id

get_agent_list(request, context)[源代码]

get id of all agents on the server as a list

get_server_info(request, context)[源代码]

get the resource utilization information of the server

set_model_configs(request, context)[源代码]

update the model configs in the server

get_agent_memory(request, context)[源代码]

get memory of a specific agent

call_agent_func(request, context)[源代码]

call funcs of agent running on the server

update_placeholder(request, context)[源代码]

update value of PlaceholderMessage

download_file(request, context)[源代码]

file transfer

agentscope.rpc.rpc_agent_pb2_grpc.add_RpcAgentServicer_to_server(servicer, server)[源代码]
class agentscope.rpc.rpc_agent_pb2_grpc.RpcAgent[源代码]

基类: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)[源代码]
static stop(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]
static create_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]
static delete_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]
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)[源代码]
static clone_agent(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]
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)[源代码]
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)[源代码]
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)[源代码]
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)[源代码]
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)[源代码]
static update_placeholder(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]
static download_file(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[源代码]