Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: RPC client functions #382

Open
Harinisri29 opened this issue Aug 5, 2024 · 1 comment
Open

[Bug]: RPC client functions #382

Harinisri29 opened this issue Aug 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Harinisri29
Copy link

Harinisri29 commented Aug 5, 2024

https://github.com/modelscope/agentscope/tree/main/src/agentscope/rpc
In this repo below files are there

init.py
rpc_agent.proto
rpc_agent_client.py
rpc_agent_pb2.py
rpc_agent_pb2_grpc.py

In the rpc_agent_client.py set of functions are defined right? How can I call those? can someone help me to test any of these functions?

from agentscope.rpc.rpc_agent_client import RpcAgentClient
client = RpcAgentClient(host="localhost", port=12010)
agent_list = client.get_agent_list()
print(agent_list)

I get the below error. But my Server agent is running on that port
AttributeError: 'RpcAgentClient' object has no attribute 'get_agent_list'

also for
ok = client.delete_agent(agent_id)
TypeError: RpcAgentClient.delete_agent() takes 1 positional argument but 2 were given

ok = client.delete_all_agent()
AttributeError: 'RpcAgentClient' object has no attribute 'delete_all_agent'. Did you mean: 'delete_agent'?

@Harinisri29 Harinisri29 added the bug Something isn't working label Aug 5, 2024
@pan-x-c
Copy link
Collaborator

pan-x-c commented Aug 5, 2024

You can find some examples in test_agent_server_management_funcs of tests/rpc_agent_test.py.

The wrong version of AgentScope may cause the reported error. Please reinstall AgentScope from the latest source code pip install -e .[full]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants