PromptAppGPT重磅更新!AI助手0门槛开发+运行:几十行代码即可实现AutoGPT
新智元报道
新智元报道
【新智元导读】PromptAppGPT迎来重磅更新,支持几十行低代码实现AutoGPT;人人都可以自然语言开发和运行AI助手,无需安装,点击网页即刻开发自己的大语言模型应用程序!
基于PromptAppGPT 的 My AutoGPT的代码
---
author: Leo
name: My AutoGPT
description: Use gpt and executors to autonomously achieve whatever goal you set.
gptRound: multiple
failedRetries: 2
autoRun: true
sysTask:
- executor: gpt
prompt: |
Constraints:
1. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.
2. No user assistance
3. Exclusively use the commands listed in double quotes e.g. "command name"
Commands:
1. Webpage Search: "doSearchWeb", args: "query": "<keywords_to_search>"
2. Image Search: "doSearchImage", args: "query": "<keywords_to_search>"
3. Task Complete: "doCompleteTask", args: "output": "<task_output>"
Resources:
1. Internet access for searches and information gathering.
2. GPT-3.5 powered Agents for delegation of simple tasks.
Performance Evaluation:
1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.
2. Constructively self-criticize your big-picture behavior constantly.
3. Reflect on past decisions and strategies to refine your approach.
4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.
You should only respond in JSON format as described below
Response Format:
{
"thoughts": {
"text": "thought",
"reasoning": "reasoning",
"plan": "- short bulleted\n- list that conveys\n- long-term plan",
"criticism": "constructive self-criticism",
"speak": "thoughts summary to say to user"
},
"command": {
"name": "command name",
"args": {
"arg name": "value"
}
}
}
userTask:
- trigger: doSearchWeb
executor: bingWeb
prompt: |
query: $e{"query": "(.*)"}
limit: 2
outputer: $e{RawInput} doGptNext
- trigger: doSearchImage
executor: bingImage
prompt: |
query: $e{"query": "(.*)"}
limit: 2
outputer: $e{RawInput} doGptNext
- trigger: doGptNext
executor: gpt
prompt: Determine which next command to use, and respond using the format specified above.
- trigger: doCompleteTask
executor: log
prompt: |
$i{Task Complete:@textarea=$e{"output": "(.*)"}}
- executor: gpt
prompt: |
$i{My Objectives:@textarea=Objectives:
1. Recommend the best smartphone for business professionals in 2023.
2. Explain why the smartphone is recommended and show the smartphone's image.}
My AutoGPT运行过程
作者介绍
微信扫码关注该文公众号作者
戳这里提交新闻线索和高质量文章给我们。
来源: qq
点击查看作者最近其他文章