Metadata-Version: 2.1
Name: CollabAgents
Version: 0.0.2.1
Summary: CollabAgents is a Python framework for building AI agents with specialized roles and tools, enabling seamless collaboration within and across companies to fulfill complex user requests.
Author: Vishnu.D
Author-email: vishnujune17@gmail.com
License: MIT
Keywords: pip install CollabAgents,pip install collabagents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: instructor==1.3.4
Requires-Dist: openai==1.40.1
Requires-Dist: anthropic==0.34.1
Requires-Dist: pandas==2.2.2
Requires-Dist: pydantic==2.8.2
Requires-Dist: pybase64==1.4.0
Requires-Dist: requests==2.32.3
Requires-Dist: tiktoken==0.7.0
Requires-Dist: websocket-client==1.8.0
Requires-Dist: lxml==5.3.0
Requires-Dist: pytest-playwright==0.5.1
Requires-Dist: scikit-learn==1.5.1
Requires-Dist: statsmodels==0.14.2
Requires-Dist: scipy==1.14.1
Requires-Dist: transformers==4.44.2
Requires-Dist: notebook==7.2.1
Requires-Dist: requests==2.32.3
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: openpyxl==3.1.5
Requires-Dist: xlrd==2.0.1
Requires-Dist: pyodbc==5.1.0
Requires-Dist: matplotlib==3.9.2
Requires-Dist: seaborn==0.13.2
Requires-Dist: plotly==5.23.0
Requires-Dist: kaleido==0.2.1
Requires-Dist: chromadb==0.5.5
Requires-Dist: semantic-text-splitter==0.15.0
Requires-Dist: markdownify==0.13.1
Requires-Dist: sentence-transformers==3.0.1
Requires-Dist: Markdown==3.7

# CollabAgents

**CollabAgents** is a versatile Python framework that allows developers to create intelligent AI agents with various roles and tools. The framework supports the creation of Assistant agents (e.g., CEO, Manager, Developer) that can work together within or across companies to complete complex user requests. The unique capability of CollabAgents lies in its ability to simulate real-world business processes, where multiple AI-driven companies interact to achieve specific goals.

## Features

- **Create AI Agents with Tools**: Easily build AI agents equipped with a wide range of tools, from Python execution to file operations and terminal commands.
- **Assistant Agents**: Define assistant agents like CEOs, Managers, and Developers, each with specific roles and responsibilities.
- **Interacting Companies**: Simulate business scenarios where multiple companies collaborate to fulfill user requirements.
- **Flexible Integration**: Supports both Anthropic and OpenAI models, allowing you to choose the best fit for your needs.

## Example Use Case

Here’s an example of how to create a Python Developer agent using CollabAgents:

```python
import asyncio
from CollabAgents.agent import StructuredAgent
from CollabAgents.models import AnthropicModel
from CollabAgents.tools.PythonTool import RunPythonFile
from CollabAgents.tools.FileOperationsTool import CreateFolder, SaveFile, ListFilesInDirectory
from CollabAgents.helper import print_colored

description = "Responsible for Answering User questions."
instruction = "You are a helpful Assistant."
tools = [CreateFolder, SaveFile, ListFilesInDirectory, RunPythonFile]

api_key = 'YOUR_API_KEY'

model = AnthropicModel(model_name='claude-3-haiku-20240307', api_key=api_key)

agent = StructuredAgent(model, "AI Assistant", description, instruction, tools, max_allowed_attempts=50)

if __name__ == "__main__":
    async def main():
        print_colored("Starting the application...........", "green")
        user_input = input("User Input: ")
        messages = []
        while user_input != "bye":
            output = await agent.run(user_input, messages)
            messages = agent.messages
            user_input = input("User Input: ")

    asyncio.run(main())
```
