Skip to main content

Composite.ai was developed to make it as easy as possible for developers to build advanced AI agent systems while sacrificing as little customizability and versatility as possible. Using our framework, you should be able to construct AI agent teams that can complete complicated tasks and define rules for their interactions in just a few lines of code.

Project description

Composite.ai Logo

Composite.ai was developed to make it as easy as possible for developers to build advanced AI agent systems while sacrificing as little customizability and versatility as possible. Using our framework, you should be able to construct AI agent teams that can complete complicated tasks and define rules for their interactions in just a few lines of code.

License: MIT

Getting Started

To get started with Composite.ai, follow these simple steps:

Installation

pip install compositeai

Set Up Your Agent

  1. Choose the provider and model LLM that will power your agent's "driver".
  2. Describe the role and purpose of your agent.
  3. Choose built-in tools or define your own for the agent to use.
  4. Have the agent begin a task that you describe.
from compositeai.drivers import OpenAIDriver
from compositeai.tools import GoogleSerperApiTool, WebScrapeTool
from compositeai.agents import RAISEAgent


agent = RAISEAgent(
    driver=OpenAIDriver(model="gpt-4o"),
    description="You are a weatherman and can tell me the weather for any location.",
    tools=[GoogleSerperApiTool(), WebScrapeTool()],
)

task = """
What's the weather going to be today in Cambridge, MA?
"""

for chunk in agent.execute(task, stream=True):
    print(chunk.content)
    print("\n\n\n\n\n----------------------------------------------------------------------------------------------------------\n\n\n\n\n")

print("FINAL ANSWER:\n\n")
print(chunk.content)

Key Features

Currently Implemented

  • Role-Based Agent Design: Customize agents with specific roles, goals, and tools.
  • Developer-Defined Agent Delegation: The developer can specify exactly how teams of multiple AI agents should be interacting with each other to complete more complex tasks using a rule-based system.
  • Streamable Agent Thoughts and Actions: For transparency within multi-agent systems, developers will be able to access records of agent planning, thoughts, memory, and actions taken.

Planned

  • Works with multiple LLMs (including open source)

Examples

License

Composite.ai is released 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

compositeai-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

compositeai-0.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file compositeai-0.1.1.tar.gz.

File metadata

  • Download URL: compositeai-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Darwin/23.5.0

File hashes

Hashes for compositeai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d712b5f7a30bf06f67e9ff532abbda8678c19a27facf99aece443dcc00da2efb
MD5 2f220774b4adac60a725844584fe34aa
BLAKE2b-256 1c88851a94dbfac89252245fdb33d35c26830219b01ad4170653a60124e261f2

See more details on using hashes here.

File details

Details for the file compositeai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: compositeai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Darwin/23.5.0

File hashes

Hashes for compositeai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6eaec5d39f93ce1cd2818f2c9240b4facf942222cdfe3298d1fa0f43cec7198
MD5 d89d6ea0ce143fcf8ebd24be412863ae
BLAKE2b-256 24b9dafcd5b1820c314e0b6f70a2236bef64071266a63068f4da17bd8eb0d1d2

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