SuperAPIAI Directory

GPTSwarm

github.com · AI developer platforms

GPTSwarm is a graph-based LLM agent framework that supports building agents as graph structures and enables automatic organization and self-improvement of agent swarms. It provides features such as visualization, edge optimization, and local LLM inference, and can be installed via pip.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

GPTSwarm is a graph-based LLM agent framework that mainly provides two high-level features: first, it allows users to build LLM-based agents in the form of graphs; second, it supports customization and automatic self-organization of agent swarms, with self-improvement capabilities. At a finer granularity, GPTSwarm is a library that includes components such as graph visualization.

Main capabilities:

  • Graph-based agent construction: represent agents as graphs, with customizable nodes and edges.
  • Agent swarm self-organization and self-improvement: supports self-improvement through reinforcement learning or prompt optimization. For example, the edge optimization process can update edge probabilities to improve benchmark scores; intra-agent edges are fixed, while inter-agent connections can be optimized to be pruned (value 0) or created (value 1).
  • Graph visualization.
  • Support for local LLM inference: local inference via LM Studio, using model_name='lmstudio' in the code.
  • Automatic search engine selection: automatically selects Bing API, Search API, or Google API based on the priority of the provided API keys.

Usage:

  • Installation: can be installed via pip with the command pip install gptswarm.
  • Configuration: add API keys in .env.template and rename it to .env.
  • Quick start: can run predefined swarms, or use tools such as the file analyzer; provides a minimal Colab example and an example of running a Swarm with a custom Agent.
  • Local LLM: download the LM Studio desktop application (Mac or Windows), select a model from the Huggingface repository and start the server, then use model_name='lmstudio' in the GPTSwarm code.

Applicable scenarios:

  • Building and experimenting with graph-based LLM agents.
  • Researching self-organization and self-improvement of agent swarms.
  • Agent applications that require local LLM inference or automatic search engine selection.

Limitations:

  • The materials do not provide specific pricing, cost, platform compatibility details, or performance data.
  • Usage requires configuring the corresponding API keys.
  • Local inference depends on the LM Studio desktop application.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools