agentscope icon indicating copy to clipboard operation
agentscope copied to clipboard

third-party agents

Open HaifengWkkk opened this issue 1 year ago • 8 comments

AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English. Well job! I was wondering if third-party intelligences can access this framework, and if not why?

HaifengWkkk avatar Aug 07 '24 02:08 HaifengWkkk

Having several intelligent agents from AgentScope and other third-party agents communicating with each other is an exciting idea. Before continuing the discussion, we need to clarify a few things. What language do these agents speak (information and coding formats)? What communication method do they use (API? UDP network service? RPC)? MessageQueue?) This is a more interesting question, does AgentScope require electing a role as a liaison person?

bg4xsd avatar Aug 07 '24 06:08 bg4xsd

As a multi-agent platform, AgentScope can use third-party agents by implementing a sub-class of AgentBase and using the third-party agent in the reply method. Additionally, AgentScope already has an RPC-based distributed mode, agents can be deployed on multiple machines, please refer to tutorial.

pan-x-c avatar Aug 07 '24 07:08 pan-x-c

Roger that, Thanks.

bg4xsd avatar Aug 07 '24 07:08 bg4xsd

AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English. Well job! I was wondering if third-party intelligences can access this framework, and if not why?

Thansk for your attention. I think it's technically feasible. If your target is only to enable the communication between different agents, just unify the messages passed among different agents, just like an unified interface (e.g. the Msg class in AgentScope).

If you want to use the other features within AgentScope, e.g. distribution, you can wrap the third-party agent within a new agent class that inherits agentscope.agents.AgentBase

DavdGao avatar Aug 07 '24 07:08 DavdGao

Refer to this example for the second case, which integrates langchain within agentscope agent https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_langchain

DavdGao avatar Aug 07 '24 07:08 DavdGao

AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English. Well job! I was wondering if third-party intelligences can access this framework, and if not why?

Thansk for your attention. I think it's technically feasible. If your target is only to enable the communication between different agents, just unify the messages passed among different agents, just like an unified interface (e.g. the Msg class in AgentScope).

If you want to use the other features within AgentScope, e.g. distribution, you can wrap the third-party agent within a new agent class that inherits agentscope.agents.AgentBase

I understand that communication is easy to implement, but to allow third-party intelligences to use the functionality within the framework would require a rewrite?

HaifengWkkk avatar Aug 07 '24 08:08 HaifengWkkk

Having several intelligent agents from AgentScope and other third-party agents communicating with each other is an exciting idea. Before continuing the discussion, we need to clarify a few things. What language do these agents speak (information and coding formats)? What communication method do they use (API? UDP network service? RPC)? MessageQueue?) This is a more interesting question, does AgentScope require electing a role as a liaison person?

How to understand message queues?Is Langgraph's Message Pooling a good choice?

HaifengWkkk avatar Aug 07 '24 08:08 HaifengWkkk

I understand that communication is easy to implement, but to allow third-party intelligences to use the functionality within the framework would require a rewrite?

I think it is.

DavdGao avatar Aug 09 '24 10:08 DavdGao