CAMEL
CAMEL — фреймворк для мультиагентных систем и исследования масштабирования агентов: ролевые диалоги и коммуникация между агентами.
CACAMEL
Мультиагентный
Python
★ 17.5k
Что это
CAMEL — фреймворк для мультиагентных систем и исследования масштабирования агентов: ролевые диалоги и коммуникация между агентами.
Установка
1Установить пакет
pip install camel-ai
2Быстрый старт
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).
Перед запуском настройте API-ключи и переменные окружения, перечисленные в официальной документации проекта.