Skip to main content

GenPilot streamlines the creation of multi-agent systems powered by Generative AI. Adhering to the Model Context Protocol (MCP), it ensures seamless integration with MCP servers through an intuitive terminal or web interface

Project description


GenPilot

GenPilot streamlines the creation, development, and management of single and multi-agent systems powered by Generative AI. Adhering to the Model Context Protocol (MCP), it ensures seamless integration with a variety of MCP servers, enabling both developers and end-users to efficiently transform concepts and prototypes into fully realized solutions. All of this is facilitated through an intuitive, user-friendly terminal and web interface.

Installation

Require Python 3.10 or later.

pip install genpilot

Usage

The client is initialized using litellm. Please refer to the guide for details on different providers.

import genpilot as gp
import asyncio

# 1. User Interface: Also supports Streamlit UI, allowing all agents to share the same chat interface.
terminal = gp.TerminalChat()

# 2. Define a Tool to search and summarize information
def search_and_summarize(query):
    """Search for information on the internet and return a summary."""
    return f"Here's the summary for '{query}': [Summarized info]."

# 3. Define an Agent for summarizing search results
info_explorer = gp.Agent(
    name="Information Explorer",
    model_config={
        "name": "groq/llama-3.3-70b-versatile",
    },
    chat=terminal,
    tools=[search_and_summarize],
    system=(
        "Your role is to search the internet and summarize relevant information for a given query. "
        "Use the search tool to find and condense information for the user, ensuring clarity and relevance."
    ),
)

# 4. Run the Agent with a query
response = asyncio.run(info_explorer("What's the latest news about AI advancements?"))
print(response)

Why GenPilot?

  • MCP Agent: Leverage the MCP servers provided by the ecosystem to empower agents, allowing them to connect and interact within a richer, more expansive environment.

  • Multi-Agent System: Seamlessly scale from single-agent tasks to complex multi-agent workflows, inspired by Routines and Handoffs.

  • User-Friendly Interface: Offers an intuitive interface for prototyping and quick implementation, whether through a web UI (Streamlit, Chainlit) or terminal. Get started quickly and effortlessly with minimal effort.

  • Enhanced Autonomy: GenPilot can internally register and invoke tools, reducing reliance on external agents and minimizing unnecessary interactions.

  • Governed Actions

    governed action

    GenPilot's actions are governed by three permission levels:

    • auto: Permission requested only for system/environment-modifying actions
    • always: Permission requested for all actions
    • none: No permission requests
  • Memory [PROCESSING]: GenPilot enhances accuracy with customizable memory:

    1. ChatBufferMemory A short-term memory solution designed to retrieve the most recent message along with the current session context.

    2. ChatVectorMemory A long-term memory implementation based on LlamaIndex vector memory.

    MemGPT: Towards LLMs as Operating Systems CLIN: A CONTINUALLY LEARNING LANGUAGE AGENT FOR RAPID TASK ADAPTATION AND GENERALIZATION

    1. ChatPgMemory ...
  • RAG Support: GenPilot integrates a retrieval agent that allows local resource or knowledge integration into the multi-agent system. The default implementation leverages LlamaIndex's ChatEngine.

  • Typed Prompt and Auto Optimizer

Samples

This demo provides advice on what to wear when traveling to a city

Watch the demo

This demo uses multi-agent troubleshooting for issues in RedHat ACM

Cluster Unknown

Watch the demo

Addons Aren't Created

Watch the demo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genpilot-0.1.4.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genpilot-0.1.4-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file genpilot-0.1.4.tar.gz.

File metadata

  • Download URL: genpilot-0.1.4.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Darwin/24.3.0

File hashes

Hashes for genpilot-0.1.4.tar.gz
Algorithm Hash digest
SHA256 08ea41e92bc5cdda331a4f259dc0c9b6886bc5fadf96a3a0cd59e0607009d095
MD5 3cd5c9604d397f891552b8b4b2216c55
BLAKE2b-256 b52ed1aebd844e0e91cf9890242ed785f1ba845395443e2600d15900717aebbc

See more details on using hashes here.

File details

Details for the file genpilot-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: genpilot-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Darwin/24.3.0

File hashes

Hashes for genpilot-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e303605e99b76cf0dfdedfc21c55bba07280c636f8d4a37f9fd751cbd8af5b
MD5 4ca0602d1b281af4a028ffc46267d16f
BLAKE2b-256 71fc0a3378ca1495d85b7a875cf4cb17aa4eaf385f173829c6abec65abf54e0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page