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

@adasuite/agentgpt

v1.0.3

Published

A package that helps you create multiple GPT agents and multi-agent architectures.

Downloads

5

Readme

AgentGPT: GPT4 Agent Factory

AgentGPT is a package that simplifies the creation of GPT4 agents, also known as Language Models (LLMs) or AIs, designed to accomplish specific tasks. It enables the development of multiple GPT agents and multi-agent architectures to perform more complex tasks by leveraging specialized AIs. Imagine a neural network where each node is an LLM.

Features

  • Easily create GPT4 agents for specific tasks
  • Build multi-agent architectures for complex tasks
  • Leverage specialized AIs for improved performance
  • Simplify the process of interacting with OpenAI's GPT-4 API

Installation

npm install agentgpt

Usage

  1. Import the AgentFactory:
const AgentFactory = require("@adasuite/agentgpt");
  1. Create an instance of the AgentFactory using your OpenAI API key:
const Recruit = AgentFactory({
  API_KEY: "your_openai_api_key_here",
});
  1. Define your GPT4 agents by providing their identities, analysis tasks, and expected output formats:
const MyAgent = Recruit.new_agent({
  identity: "You are a specific agent",
  analysis: "Based on the input, perform a specific task",
  output: "<desired_output_format>",
});
  1. Use the analyze() function to interact with your agent(s) and process input data:
async function processData(input) {
  const result = await MyAgent.analyze([input]);
  console.log(result);
}

processData("your_input_data_here");

Documentation

AgentFactory

The main object that helps you create GPT-4 agents.

Parameters

  • API_KEY (string): Your OpenAI API key.

Methods

  • new_agent(options): Creates a new GPT-4 agent with the specified options.

new_agent(options)

Create a new GPT-4 agent by providing the required options.

Options

  • identity (string, optional): A description of the agent's identity.
  • analysis (string): A description of the task the agent will perform.
  • output (string): The expected output format.

Returns

  • A new GPT-4 agent with the specified identity, analysis task, and output format.

Agent

An object representing a GPT-4 agent.

Methods

  • analyze(inputs, config): Processes the input data and returns the results.

analyze(inputs, config)

Process the input data using the agent's defined task and return the results.

Parameters

  • inputs (array): An array of input data.
  • config (object, optional): Configuration options for the GPT-4 API call.

Returns

  • The processed results based on the agent's analysis task and output format.

Example

See the provided example in the examples folder for a demonstration of how to create and use multiple GPT-4 agents for a complex task.

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome any improvements or suggestions!

License

AgentGPT is released under the MIT License.