AI Agent Hub
AI エージェント / プラグイン情報メディア
← 一覧へ
CAMEL
OTHER

CAMEL

CAMEL

ロールプレイングを通じて協調する AI エージェントを研究するためのオープンソースフレームワーク。100+ 種類のツール統合と数百万エージェント規模の検証実装に対応する。

原文: 🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
#研究#マルチエージェント#Python#agent#ai-societies#artificial-intelligence#communicative-ai#cooperative-ai#deep-learning#large-language-models#multi-agent-systems#natural-language-processing
REPO STATS

リポジトリ統計

⭐ Stars
16.9k
🍴 Forks
1.9k
⚠️ Open Issues
470
🌿 Language
Python
📄 License
Apache-2.0
🕒 最終更新
2026.05.01 (6日前)
📅 公開日
2023.03.18
🌿 Branch
master
README

ドキュメント

— AI による自動翻訳 (2026.05.07 更新)



🐫 CAMELはエージェントのスケーリング法則を見つけることに専念するオープンソースコミュニティです。大規模でこれらのエージェントを研究することで、その振る舞い、能力、および潜在的なリスクについての貴重な洞察が得られると考えています。この分野の研究を促進するため、さまざまな種類のエージェント、タスク、プロンプト、モデル、およびシミュレーション環境を実装・サポートしています。


エージェントのスケーリング法則を見つけることの境界を押し広げるために、(DiscordまたはWeChatで)私たちに参加してください。

🌟 GitHubでCAMELをスターして、新しいリリースについて即座に通知を受け取ってください。

Star

目次


CAMEL フレームワークの設計原則

🧬 進化可能性

このフレームワークは、データ生成と環境との相互作用を通じて、マルチエージェントシステムが継続的に進化することを可能にします。この進化は、検証可能な報酬を伴う強化学習または教師あり学習によって駆動できます。

📈 スケーラビリティ

このフレームワークは、数百万のエージェントを持つシステムをサポートするように設計されており、スケール時の効率的な調整、通信、およびリソース管理を保証します。

💾 ステートフルネス

エージェントはステートフルメモリを保持し、環境との多段階の相互作用を実行し、複雑なタスクを効率的に処理することを可能にします。

📖 コード・アズ・プロンプト

コードのすべての行とコメントは、エージェントのプロンプトとして機能します。コードは明確で読みやすく記述し、人間とエージェント両方が効果的に解釈できることを保証する必要があります。


研究に CAMEL を使用する理由

私たちはマルチエージェントシステムの最先端研究の進展に献身する 100 名以上の研究者で構成されるコミュニティ駆動の研究集団です。世界中の研究者は、以下の理由に基づいて自分たちの研究に CAMEL を選択しています。

大規模エージェントシステム 複雑なマルチエージェント環境における創発的な振る舞いとスケーリング法則を研究するために、最大 100 万のエージェントをシミュレートできます。
動的通信 エージェント間のリアルタイム相互作用を実現し、複雑なタスクに取り組むためのシームレスな協力を促進します。
ステートフルメモリ エージェントに過去のコンテキストを保持して活用する機能を備え、長期の相互作用にわたって意思決定を改善します。
複数のベンチマークのサポート 標準化されたベンチマークを使用してエージェントのパフォーマンスを厳密に評価し、再現性と信頼性の高い比較を保証します。
異なるエージェントタイプのサポート 様々なエージェントロール、タスク、モデル、および環境で機能し、学際的な実験と多様な研究応用をサポートします。
データ生成とツール統合 複数のツールとシームレスに統合しながら大規模な構造化データセットの作成を自動化し、合成データ生成と研究ワークフローを合理化します。

CAMELで何が構築できますか?

1. データ生成

2. タスク自動化

3. ワールドシミュレーション


クイックスタート

CAMEL は PyPI で利用可能であるため、インストール自体は簡単です。ターミナルを開いて以下を実行するだけです:

pip install camel-ai

ChatAgent で始める

この例では、CAMEL フレームワークを使用して ChatAgent を作成し、DuckDuckGo を使用して検索クエリを実行する方法を説明します。

  1. ツールパッケージをインストールします:
pip install 'camel-ai[web_tools]'
  1. OpenAI API キーをセットアップします:
export OPENAI_API_KEY='your_openai_api_key'

または、.env ファイルを使用します:

cp .env.example .env
# then edit .env and add your keys
  1. 次の Python コードを実行します:
from camel.models import ModelFactory
from camel.types import ModelPlatformType, ModelType
from camel.agents import ChatAgent
from camel.toolkits import SearchToolkit

model = ModelFactory.create(
  model_platform=ModelPlatformType.OPENAI,
  model_type=ModelType.GPT_4O,
  model_config_dict={"temperature": 0.0},
)

search_tool = SearchToolkit().search_duckduckgo

agent = ChatAgent(model=model, tools=[search_tool])

response_1 = agent.step("What is CAMEL-AI?")
print(response_1.msgs[0].content)
# CAMEL-AI is the first LLM (Large Language Model) multi-agent framework
# and an open-source community focused on finding the scaling laws of agents.
# ...

response_2 = agent.step("What is the Github link to CAMEL framework?")
print(response_2.msgs[0].content)
# The GitHub link to the CAMEL framework is
# [https://github.com/camel-ai/camel](https://github.com/camel-ai/camel).
  1. (オプション)モデルリクエスト/レスポンスログを有効にします:
export CAMEL_MODEL_LOG_ENABLED=true
export CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLED=true
export CAMEL_LOG_DIR=camel_logs
  • CAMEL_MODEL_LOG_ENABLED:リクエスト/レスポンス JSON ログを有効にします。
  • CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLEDrequest.model_config_dict の下に model_config_dict をログするかどうかを制御します。設定されていない場合、CAMEL_MODEL_LOG_ENABLED と同じ値にデフォルト設定されます。
  • CAMEL_LOG_DIR:生成されたログファイルのディレクトリ(デフォルト:camel_logs)。
  • ログは UTF-8 JSON として書き込まれ、多言語テキスト(例:中国語、日本語、アラビア語)は Unicode エスケープノイズなしで保持されます。

より詳細な手順と追加の設定オプションについては、インストールセクションを参照してください。

実行後、docs.camel-ai.org で CAMEL Tech Stack とクックブックを探索して、強力なマルチエージェントシステムを構築できます。

Python プログラマーと株式トレーダーの役割を演じる 2 つの ChatGPT エージェント間の会話を示す Google Colab デモを提供しています。このデモは、株式市場のトレーディングボット開発に協力しています。

異なるタイプのエージェント、それらの役割、およびそれらのアプリケーションを探索します。

ヘルプを求める

CAMEL のセットアップで問題が発生した場合は、CAMEL discord でお問い合わせください。


テックスタック

主要モジュール

CAMEL-AI エージェントとマルチエージェント社会を構築、運用、拡張するためのコアコンポーネントとユーティリティです。

モジュール 説明
Agents 自律動作のためのコアエージェントアーキテクチャと動作です。
Agent Societies マルチエージェントシステムと協働の構築および管理のためのコンポーネントです。
Data Generation

— GitHub から取得した原文(一部省略の場合あり)



🐫 CAMEL is an open-source community dedicated to finding the scaling laws of agents. We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks. To facilitate research in this field, we implement and support various types of agents, tasks, prompts, models, and simulated environments.


Join us (Discord or WeChat) in pushing the boundaries of finding the scaling laws of agents.

🌟 Star CAMEL on GitHub and be instantly notified of new releases.

Star

Table of contents


CAMEL Framework Design Principles

🧬 Evolvability

The framework enables multi-agent systems to continuously evolve by generating data and interacting with environments. This evolution can be driven by reinforcement learning with verifiable rewards or supervised learning.

📈 Scalability

The framework is designed to support systems with millions of agents, ensuring efficient coordination, communication, and resource management at scale.

💾 Statefulness

Agents maintain stateful memory, enabling them to perform multi-step interactions with environments and efficiently tackle sophisticated tasks.

📖 Code-as-Prompt

Every line of code and comment serves as a prompt for agents. Code should be written clearly and readably, ensuring both humans and agents can interpret it effectively.


Why Use CAMEL for Your Research?

We are a community-driven research collective comprising over 100 researchers dedicated to advancing frontier research in Multi-Agent Systems. Researchers worldwide choose CAMEL for their studies based on the following reasons.

Large-Scale Agent System Simulate up to 1M agents to study emergent behaviors and scaling laws in complex, multi-agent environments.
Dynamic Communication Enable real-time interactions among agents, fostering seamless collaboration for tackling intricate tasks.
Stateful Memory Equip agents with the ability to retain and leverage historical context, improving decision-making over extended interactions.
Support for Multiple Benchmarks Utilize standardized benchmarks to rigorously evaluate agent performance, ensuring reproducibility and reliable comparisons.
Support for Different Agent Types Work with a variety of agent roles, tasks, models, and environments, supporting interdisciplinary experiments and diverse research applications.
Data Generation and Tool Integration Automate the creation of large-scale, structured datasets while seamlessly integrating with multiple tools, streamlining synthetic data generation and research workflows.

What Can You Build With CAMEL?

1. Data Generation

2. Task Automation

3. World Simulation


Quick Start

Installing CAMEL is a breeze thanks to its availability on PyPI. Simply open your terminal and run:

pip install camel-ai

Starting with ChatAgent

This example demonstrates how to create a ChatAgent using the CAMEL framework and perform a search query using DuckDuckGo.

  1. Install the tools package:
pip install 'camel-ai[web_tools]'
  1. Set up your OpenAI API key:
export OPENAI_API_KEY='your_openai_api_key'

Alternatively, use a .env file:

cp .env.example .env
# then edit .env and add your keys
  1. Run the following Python code:
from camel.models import ModelFactory
from camel.types import ModelPlatformType, ModelType
from camel.agents import ChatAgent
from camel.toolkits import SearchToolkit

model = ModelFactory.create(
  model_platform=ModelPlatformType.OPENAI,
  model_type=ModelType.GPT_4O,
  model_config_dict={"temperature": 0.0},
)

search_tool = SearchToolkit().search_duckduckgo

agent = ChatAgent(model=model, tools=[search_tool])

response_1 = agent.step("What is CAMEL-AI?")
print(response_1.msgs[0].content)
# CAMEL-AI is the first LLM (Large Language Model) multi-agent framework
# and an open-source community focused on finding the scaling laws of agents.
# ...

response_2 = agent.step("What is the Github link to CAMEL framework?")
print(response_2.msgs[0].content)
# The GitHub link to the CAMEL framework is
# [https://github.com/camel-ai/camel](https://github.com/camel-ai/camel).
  1. (Optional) Enable model request/response logs:
export CAMEL_MODEL_LOG_ENABLED=true
export CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLED=true
export CAMEL_LOG_DIR=camel_logs
  • CAMEL_MODEL_LOG_ENABLED: Enables request/response JSON logs.
  • CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLED: Controls whether model_config_dict is logged under request.model_config_dict. When unset, it defaults to the same value as CAMEL_MODEL_LOG_ENABLED.
  • CAMEL_LOG_DIR: Directory for generated log files (default: camel_logs).
  • Logs are written as UTF-8 JSON with multilingual text preserved (for example Chinese, Japanese, Arabic) without Unicode escape noise.

For more detailed instructions and additional configuration options, check out the installation section.

After running, you can explore our CAMEL Tech Stack and Cookbooks at docs.camel-ai.org to build powerful multi-agent systems.

We provide a Google Colab demo showcasing a conversation between two ChatGPT agents playing roles as a python programmer and a stock trader collaborating on developing a trading bot for stock market.

Explore different types of agents, their roles, and their applications.

Seeking Help

Please reach out to us on CAMEL discord if you encounter any issue set up CAMEL.


Tech Stack

Key Modules

Core components and utilities to build, operate, and enhance CAMEL-AI agents and societies.

Module Description
Agents Core agent architectures and behaviors for autonomous operation.
Agent Societies Components for building and managing multi-agent systems and collaboration.
Data Generation
RELATED

同じカテゴリの他のツール