AgentMatrix is an open-source framework for building and orchestrating AI agents. It provides a flexible and extensible architecture for creating, managing, and interacting with various types of AI agents, including language models and search engines.
- Modular agent architecture
- Easy integration with DuckDuckGo for web searches
- Seamless interaction with OpenAI's language models
- Extensible base classes for creating custom agents
- Logging system for transparency and debugging
Install AgentMatrix using pip:
pip install agentmatrix
Here's a simple example of how to use AgentMatrix:
from agentmatrix import MultiAgentSystem
# Initialize the system
mas = MultiAgentSystem()
# Add agents
mas.add_duckduckgo_agent()
mas.add_llm_agent(api_key="sk-uAbo-mUMIA", model="gpt-4")
# Process a query
conclusion = mas.process_query(
search_term="current trends in stock and share market",
expert_type="Financial Market Expert",
expert_description="You are an expert in the latest trends and developments in the global stock and share market.",
user_prompt="Provide insights into the current trends and developments in the stock and share market. Include reference links.",
response_format="json",
listed_urls=["https://www.marketwatch.com/", "https://www.bloomberg.com/markets"] #which URLs should be referred
)
print(conclusion)
For detailed documentation, please visit our GitHub Wiki.
We welcome contributions from the community! Here are some ways you can contribute:
-
Feature Additions: Have an idea for a new agent type or functionality? We'd love to hear it! Open an issue to discuss your idea or submit a pull request with your implementation.
-
Bug Fixes: Found a bug? Please open an issue describing the problem or submit a pull request with a fix.
-
Documentation: Help improve our documentation by fixing errors or adding examples.
-
Testing: Expand our test coverage or improve existing tests.
To contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please read our Contributing Guidelines for more details.
- Add support for more LLM providers
- Implement agent chaining and workflows
- Create a web interface for agent management
- Develop more specialized agents (e.g., for data analysis, code generation)
- Implement caching mechanisms for improved performance
This project is licensed under the MIT License - see the LICENSE file for details.
Kiran Beethoju - @kiranbeethoju
Project Link: https://github.com/kiranbeethoju/agentmatrix
- OpenAI for their amazing language models
- DuckDuckGo for their search API
- All the contributors who have helped shape this project
Join us in making LLM agent frameworks more powerful and accessible!