agentscope.rpc.rpc_agent_pb2_grpc module

Client and server classes corresponding to protobuf-defined services.

class RpcAgent[源代码]

基类:object

Servicer for rpc agent server

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 clone_agent(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 download_file(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_agent_memory(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 is_alive(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 stop(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)[源代码]
class RpcAgentServicer[源代码]

基类:object

Servicer for rpc agent server

call_agent_func(request, context)[源代码]

call funcs of agent running on the server

clone_agent(request, context)[源代码]

clone an agent with specific agent_id

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

download_file(request, context)[源代码]

file transfer

get_agent_list(request, context)[源代码]

get id of all agents on the server as a list

get_agent_memory(request, context)[源代码]

get memory of a specific agent

get_server_info(request, context)[源代码]

get the resource utilization information of the server

is_alive(request, context)[源代码]

check server is alive

set_model_configs(request, context)[源代码]

update the model configs in the server

stop(request, context)[源代码]

stop the server

update_placeholder(request, context)[源代码]

update value of PlaceholderMessage

class RpcAgentStub(channel)[源代码]

基类:object

Servicer for rpc agent server

add_RpcAgentServicer_to_server(servicer, server)[源代码]