When connecting agents in an application, the output of one agent needs to be compatible with the input of the following agent. This compatibility needs to be guaranteed at three different levels:
- transport level: the two agents need to use the same transport protocol.
- format level: the two agents need to carry information using the same format (e.g. same JSON data structures)
- semantic level: the two agents need to “talk about the same thing”.
Communication between agents is not possible if there are discrepancies between the agents at any of the layers [1-3].
Ensuring that agents are semantically compatible, i.e., the output of the one agent contains the information needed by later agents, is an problem of composition or planning in the application. This project, the IO Mapper Agent, addresses level 2 and 3 compatibility. It is a component, implemented as an agent, that can make use of an LLM to transform the output of one agent to become compatible to the input of another agent. Note that this may mean many different things, for example:
- JSON structure transcoding: A JSON dictionary needs to be remapped into another JSON dictionary
- Text summarisation: A text needs to be summarised or some information needs to be removed
- Text translation: A text needs to be translated from one language to another
- Text manipulation: Part of the information of one text needs to be reformulated into another text
- Any combination of the above
The IO mapper Agent can be fed the schema definitions of inputs and outputs as defined by the Agent Connect Protocol.
To get a local copy up and running follow these simple steps.
-
Clone the repository
git clone https://github.com/agntcy/iomapper-agnt.git
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For detailed contributing guidelines, please see CONTRIBUTING.md
Distributed under the Apache-2.0 License. See LICENSE for more information.
Project Link: https://github.com/agntcy/iomapper-agnt