npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

engine-agents

v0.0.11

Published

A multi-agent framework for LLM applications

Downloads

79

Readme

WARNING: This project currently in pre-release and is not suitable for production usage

Engine Agents

NPM version

A multi-agent LLM framework inspired by Microsoft's autogen, designed to be friendlier to use behind APIs and written in TypeScript.

Want a hosted version of this? Sign up for the waitlist here to access a hosted UI and API, coming in the next few days (as of 26th October 2023).

Getting Started

npm install engine-agents
# or
yarn add engine-agents

You'll also need to make the environment variable OPENAI_API_KEY available wherever you're using this library.

If you're working on this library, one way to do this is to copy .env.example to .env, fill in your API key, and use dotenv as shown below and in the examples.

Usage

import * as dotenv from "dotenv";
dotenv.config();

import { TeamLeader, Team } from "engine-agents";

async function run() {
  const assistant = new TeamLeader(
    "Helpful Assistant",
    "You are a helpful assistant."
  );

  const team = new Team(assistant);

  const chat = await team.chat(
    "What does the @ sign in some NPM packages mean?"
  );
  console.log(chat);
}

run();

See the examples directory for more.

Known issues

  • Code execution: if enabled on an agent, it will attempt to execute any code it generates on the machine that it is running on - this code execution is currently not sandboxed in any way so use at your own risk!

  • Code execution: this library has not been tested for compatibility on machines running Windows

  • Code execution: single line code blocks will not be executed

  • The max number of messages is currently capped at 30 and not yet configurable from outside the library

  • The LLM used to create the completions is not yet configurable from outside the library

  • Errors from the OpenAI API aren't handled gracefully or retried yet

  • When defining function calls with FunctionConfig, function implementations must not be arrow functions because of how the config is serialized and deserialized

  • The groupchat model sometimes doesn't mesh well with returning only the responses from the TeamLeader of a Team

  • Allowing team members to pass control between themselves is currently fairly unreliable

Roadmap

Coming soon

Contributing

Contributions and suggestions are welcome!