Julep 是一个强大的平台,用于创建具备长时间记忆能力的人工智能代理,能够执行复杂的多步骤任务。通过 Julep,用户可以构建能够决策、进行并行处理并与多种外部工具和 API 集成的多步骤任务。
设想一个研究 AI 代理,该代理能够:
在 Julep 中,这样的任务只需不到 80 行代码即可完成,且全部步骤在 Julep 自有服务器上自动执行,无需任何人工干预。
以下是一个工作示例:
name: Research Agent input_schema: type: object properties: topic: type: string description: The main topic to research tools: - name: web_search type: integration integration: provider: brave setup: api_key: BSAqES7dj9d... - name: discord_webhook type: api_call api_call: url: https://eobuxj02se0n.m.pipedream.net method: POST headers: Content-Type: application/json main: - prompt: - role: system content: >- You are a research assistant. Generate 100 diverse search queries related to the topic: {{inputs[0].topic}} Write one query per line. unwrap: true - evaluate: search_queries: "_.split('\n')" - over: "_.search_queries" map: tool: web_search arguments: query: "_" parallelism: 10 - evaluate: results: "'\n'.join([item.result for item in _])" - prompt: - role: system content: > You are a research summarizer. Create a comprehensive summary of the following research results on the topic {{inputs[0].topic}}. The summary should be well-structured and highlight key findings: {{_.results}} unwrap: true settings: model: gpt-4o-mini - tool: discord_webhook arguments: content: |- f''' **Research Summary for {inputs[0].topic}** {_} '''
要开始使用 Julep,可以通过 npm 或 pip 安装:
Node.js:
npm install @julep/sdk
Python:
pip install julep
from julep import Julep client = Julep(api_key="your_julep_api_key") agent = client.agents.create( name="Storytelling Agent", model="claude-3.5-sonnet", about="You are a creative storyteller." ) task_yaml = """ name: Storyteller tools: - name: research_wikipedia integration: provider: wikipedia main: - prompt: - role: system content: You are {{agent.name}}. {{agent.about}} - role: user content: Based on '{{_.idea}}', generate 5 plot ideas. unwrap: true - evaluate: plot_ideas: load_yaml(_.split('```yaml')[1].split('```')[0].strip()) - foreach: in: _.research_queries do: tool: research_wikipedia arguments: query: _ - prompt: - role: system content: {{agent.about}} - role: user content: With plot ideas and Wikipedia results: {{_.results}}, develop story. unwrap: true - evaluate: plot: "load_yaml(_.split('```yaml')[1].split('```')[0].strip())" """
Julep 是一个创新平台,帮助用户创建更智能、更持久的 AI 代理,轻松管理复杂任务,提升业务和研究效率。
AI数字人视频创作平台
Keevx 一款开箱即用的AI数字人视频创作平台,广泛适用于电商广告、企 业培训与社媒宣传,让全球企业与个人创作者无需拍摄剪辑,就能快速生成多语言、高质量的专业视频。
一站式AI创作平台
提供 AI 驱动的图片、视频生成及数字人等功能,助力创意创作
AI办公助手,复杂任务高效处理
AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!
AI辅助编程,代码自动 修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
AI小说写作助手,一站式润色、改写、扩写
蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。