This repo contains agents for Delphi, a versatile and adaptable conversational agent framework that streamlines chatbots and AI-driven agent systems.
Clone the repo, install the dependencies, and build the project:
git clone https://github.com/WeCanDoBetter/delphi.git
cd delphi
npm install
npm run build:ts
Then, import the agents you want to use. For example:
import { wikipedia } from "./agents/dist";
They are more like agent functions, anyway. Each provides a set of functions that can be used by a Delphi agent.
See the Delphi documentation for more information. The repository also contains a number of examples.
- NLP (readability scores, etc.)
import { wikipedia } from "./index";
import { Context } from "@wecandobetter/delphi";
// Get a map of functions for the Wikipedia API
// Enable the functions by passing true
const functionMap = wikipedia.getMap(true);
// Create a context with the functions
const context = new Context({
messages: [],
functions: functionMap,
});
// use the context on a Delphi agent, e.g.:
// const result = await agent.run(context);
Contributions are welcome! Open an issue or submit a pull request to get started.
This project is licensed under the MIT License.