Skip to main content

A Python package for AI-MultiModal MultiAgents methods and tools.

Project description

EnsembleAI

EnsembleAI is a framework for building intelligent agents that can perform various tasks such as summarizing Wikipedia articles, analyzing YouTube transcripts, scraping web pages, and more.

Features

  • Wikipedia Summarizer
  • YouTube Transcript Analysis
  • Web Scraper
  • Image Analysis
  • Retrieval-Augmented Generation (RAG)

Installation

pip install ensembleai

Usage

from ensembleai import Agent, LLMModel, Environment, YouTubeTranscriptTool, WikipediaTool, ImageAnalysisTool, WebScrapingTool, RAGTool

# Initialize models and tools
model = LLMModel(name="test-model", api_key="your-api-key")
youtube_tool = YouTubeTranscriptTool(api_key="your-youtube-api-key", keyword="your-keyword")
wikipedia_tool = WikipediaTool(topic="your-topic")
image_tool = ImageAnalysisTool(text="your-text", url="your-image-url")
webscraper_tool = WebScrapingTool(url="your-url")
rag_tool = RAGTool(file_paths=["path/to/your/file.pdf"])

# Create agents
agent1 = Agent(name="Agent1", model_instance=model, role="role1", work="work1")
agent1.add_tool("youtube_transcript", youtube_tool)

agent2 = Agent(name="Agent2", model_instance=model, role="role2", work="work2")
agent2.add_tool("wikipedia", wikipedia_tool)

agent3 = Agent(name="Agent3", model_instance=model, role="role3", work="work3")
agent3.add_tool("image_analysis", image_tool)

agent4 = Agent(name="Agent4", model_instance=model, role="role4", work="work4")
agent4.add_tool("web_scraping", webscraper_tool)

agent5 = Agent(name="Agent5", model_instance=model, role="role5", work="work5")
agent5.add_tool("RAG", rag_tool)

# Define agent connections
agent1.give_to(agent2)
agent2.give_to(agent3)
agent3.give_to(agent4)
agent4.give_to(agent5)

# Create and start the environments
env = Environment(agents=[agent1, agent2, agent3, agent4, agent5])
env.start()

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

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

ensembleai-1.2.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

ensembleai-1.2.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file ensembleai-1.2.3.tar.gz.

File metadata

  • Download URL: ensembleai-1.2.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for ensembleai-1.2.3.tar.gz
Algorithm Hash digest
SHA256 af33d9d6ceba8fe267795edb6e9d2ca99c713543ccf2086150a90e310bdb6506
MD5 eb6434456e44a2c7af8fabeb8d0caa43
BLAKE2b-256 40fa3c6f406a6681f49dde5d93919e68d6cda012c7f3212939a6ad1e278b2d9d

See more details on using hashes here.

File details

Details for the file ensembleai-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: ensembleai-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for ensembleai-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b0bbe8b4fd88a1bfe6bafc056707196cb5f1fee16da1e4348d56d5afb8594df
MD5 37059f0ec3069a24909d14e3c0bc5f2e
BLAKE2b-256 6f5afa8f90cef56ec9588c52bb54f52bee59207e48bfb25cd152efc1db0ed8bd

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