返回顶部
热门问答 更多热门问答
技术文章 更多技术文章

Praison AI:集成mem0、CrewAI、Firecrawl、AutoGen,更易用的多智能体自主 AI 系统

[复制链接]
链载Ai 显示全部楼层 发表于 昨天 11:04 |阅读模式 打印 上一主题 下一主题

这是一个结合了AutoGen 和 CrewAI的开源项目,用于构建和管理多代理 LLM 系统。

因为AutoGen 和 CrewAI(文末有介绍文章)已经是做了封装了。基于CrewAI的开源项目,以前也有介绍。

CrewAI本身也有基于Langchain做了一些工作,所以Praison AI会是一种更低代码、集中式的框架,它旨在简化各种 LLM 应用程序的多代理系统的创建和编排,强调易用性、定制化和人机交互。

我们会看到使用这两个框架的示例(可以切换AutoGen 与CrewAI)

他同时也提供一个图形界面来自动化执行代理操作

直接在对话框输入想要做的事情就会自动去执行

它有两种操作模式

选择手动是可以自定义代理和工具的

工具集成有mem0、Craw4AI、Firecrawl、Langchain这些,这几个以往文章都有介绍,一个记忆层,两个AI爬虫,最后一个不用介绍了。

同时他也提供了众多模型的支持

Praison AI目前实现有这些功能:

  • 自动创建 AI 代理

  • 使用 CrewAI 或 AutoGen 框架

  • 100+ 法学硕士支持

  • 与整个代码库聊天

  • 交互式用户界面

  • 基于 YAML 的配置

  • 自定义工具集成

下面提供官方的文档介绍、相关资源、部署教程等,进一步支撑你的行动,以提升本文的帮助力。

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 2em auto 1em;padding-right: 1em;padding-left: 1em;border-bottom: 2px solid rgb(0, 152, 116);color: rgb(63, 63, 63);">Praison AI

Praison AI 利用 AutoGen 和 CrewAI 或其他任何代理框架,代表了一个低代码、集中化的框架,旨在简化多代理系统的创建和编排,适用于各种 LLM 应用,强调易用性、定制化和人机交互。

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">不同的用户界面:

界面描述URL
UI多代理如 CrewAI 或 AutoGenhttps://docs.praison.ai/ui/ui
Chat与 100+ LLMs 单个 AI 代理聊天https://docs.praison.ai/ui/chat
Code与整个代码库单个 AI 代理聊天https://docs.praison.ai/ui/code

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">Google Colab 多代理


CookbookOpen in Colab
BasicPraisonAI
Include ToolsPraisonAI Tools

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">安装

PraisonAIPraisonAI CodePraisonAI Chat
pip install praisonaipip install "praisonai[code]"pip install "praisonai[chat]"

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">主要特征

    ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 16px;padding-left: 1em;list-style: circle;color: rgb(63, 63, 63);" class="list-paddingleft-1">
  • •自动化 AI 代理创建

  • •使用 CrewAI 或 AutoGen 框架

  • •支持 100+ LLM

  • •与整个代码库聊天

  • •交互式 UI

  • •基于 YAML 的配置

  • •自定义工具集成

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">TL;DR 多代理

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;overflow-x: auto;border-radius: 8px;margin: 10px 8px;">pipinstallpraisonai
exportOPENAI_API_KEY="EnteryourAPIkey"
praisonai--initcreateamoviescriptaboutdoginmoon
praisonai

ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 19.2px;font-weight: bold;display: table;margin: 4em auto 2em;padding-right: 0.2em;padding-left: 0.2em;background: rgb(0, 152, 116);color: rgb(255, 255, 255);">目录

    ingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 16px;padding-left: 1em;list-style: circle;color: rgb(63, 63, 63);" class="list-paddingleft-2">
  • •安装

  • •初始化

  • •运行

  • •全自动模式

  • •用户界面

  • •Praison AI Chat

  • •创建自定义工具

  • •代理剧本

  • •在项目中包含 praisonai 包

  • •安装开发依赖的命令

  • •其他模型

  • •贡献

  • •星历史

安装多代理

pipinstallpraisonai

初始化

exportOPENAI_API_KEY="EnteryourAPIkey"

从这里生成您的 OPENAI API 密钥:https://platform.openai.com/api-keys

注意:您可以使用其他提供商,如 Ollama、Mistral 等。详细信息在底部提供。

praisonai--initcreateamoviescriptaboutdoginmoon

这将在当前目录中自动创建 agents.yaml 文件。

使用特定代理框架初始化(可选):

praisonai--frameworkautogen--initcreatemoviescriptaboutcatinmars

运行

praisonai

python-mpraisonai

指定代理框架(可选):

praisonai--frameworkautogen

全自动模式

praisonai--autocreateamoviescriptaboutDoginMoon

用户界面

PraisonAI 用户界面:

界面描述URL
UI多代理如 CrewAI 或 AutoGenhttps://docs.praisonai.com/ui/ui
Chat与 100+ LLMs 单个 AI 代理聊天https://docs.praisonai.com/ui/chat
Code与整个代码库单个 AI 代理聊天https://docs.praisonai.com/ui/code
pipinstall-U"praisonai[ui]"
exportOPENAI_API_KEY="EnteryourAPIkey"
chainlitcreate-secret
exportCHAINLIT_AUTH_SECRET=xxxxxxxx
praisonaiui

python-mpraisonaiui

Praison AI Chat

  • •https://docs.praison.ai/chat/

pipinstall"praisonai[chat]"
exportOPENAI_API_KEY="EnteryourAPIkey"
praisonaichat

Praison AI Code

pipinstall"praisonai[code]"
exportOPENAI_API_KEY="EnteryourAPIkey"
praisonaicode

创建自定义工具

  • •https://docs.praison.ai/tools/custom/

代理剧本

简单剧本示例

framework:crewai
topic:ArtificialIntelligence
roles:
screenwriter:
backstory:"Skilledincraftingscriptswithengagingdialogueabout{topic}."
goal:Createscriptsfromconcepts.
role:Screenwriter
tasks:
scriptwriting_task:
description:"Developscriptswithcompellingcharactersanddialogueabout{topic}."
expected_output:"Completescriptreadyforproduction."

使用 100+ 模型

  • •https://docs.praison.ai/models/

在项目中包含 praisonai 包

  • •https://docs.praison.ai/developers/wrapper

  • •https://docs.praison.ai/developers/wrapper-tools/

选项 1:使用 RAW YAML

frompraisonaiimportPraisonAI

#示例agent_yaml内容
agent_yaml="""
framework:"crewai"
topic:"SpaceExploration"

roles:
astronomer:
role:"SpaceResearcher"
goal:"Discovernewinsightsabout{topic}"
backstory:"Youareacuriousanddedicatedastronomerwithapassionforunravelingthemysteriesofthecosmos."
tasks:
investigate_exoplanets:
description:"Researchandcompileinformationaboutexoplanetsdiscoveredinthelastdecade."
expected_output:"Asummarizedreportonexoplanetdiscoveries,includingtheirsize,potentialhabitability,anddistancefromEarth."
"""

#使用agent_yaml内容创建PraisonAI实例
praisonai=PraisonAI(agent_yaml=agent_yaml)

#运行PraisonAI
result=praisonai.run()

#打印结果
print(result)

选项 2:使用单独的 agents.yaml 文件

注意:请预先创建 agents.yaml 文件。

frompraisonaiimportPraisonAI

defbasic():#基本模式
praisonai=PraisonAI(agent_file="agents.yaml")
praisonai.run()

if__name__=="__main__":
basic()

安装依赖的命令:

  1. 1.安装所有依赖,包括开发依赖:

    poetryinstall
  2. 2.仅安装文档依赖:

    poetryinstall--withdocs
  3. 3.仅安装测试依赖:

    poetryinstall--withtest
  4. 4.仅安装开发依赖:

    poetryinstall--withdev

这个配置确保您的开发依赖项被正确分类,并在需要时安装。

Mem0 AI:开源一天斩获万星!超越 RAG、为LLM、Agent加上超强个性记忆!

Devyan (CrewAI) + DeepSeek-Coder-V2:几秒钟生成一个应用程序(本地、快速、一次提示)

14.8k Star!CrewAI:部署一支由你指挥的人工智能代理大军,股票分析、发布帖子、支持Ollama!

2024年AI+爬虫指南:使用JinaAI、FireCrawl、Crawl4AI(别用Beautiful Soup了)

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

链载AI是专业的生成式人工智能教程平台。提供Stable Diffusion、Midjourney AI绘画教程,Suno AI音乐生成指南,以及Runway、Pika等AI视频制作与动画生成实战案例。从提示词编写到参数调整,手把手助您从入门到精通。
  • 官方手机版

  • 微信公众号

  • 商务合作

  • Powered by Discuz! X3.5 | Copyright © 2025-2025. | 链载Ai
  • 桂ICP备2024021734号 | 营业执照 | |广西笔趣文化传媒有限公司|| QQ