Auto-GPT程序流程图
Auto-GPT介绍
https://github.com/Significant-Gravitas/Auto-GPT
Auto-GPT是一个实验性的开源应用程序,展示了GPT-4语言模型的能力。这个程序由GPT-4驱动,将LLM“思想”链接在一起,以自主地实现您设置的任何目标。作为GPT-4完全自主运行的首个示例之一,Auto-GPT推动了人工智能可能性的边界。简单来说,Auto-GPT是一种前沿的AI技术,它可以自主完成任务,让计算机变得更加智能。
Auto-GPT程序入口从cli.py开始,执行agent的全流程图,其中红色部分未暂未完全实现的功能
从目前代码来看,很多功能都还在开发中,没有官方wiki解释运行逻辑,非研发同学几乎无法使用。不过command中的第三方扩展有很大的开发空间,之后肯定会从框架内暴露出来。
约定了chatGPT返回结果的格式
def generate_prompt_string(self) -> str:
"""
Generate a prompt string based on the constraints, commands, resources,
and performance evaluations.
Returns:
str: The generated prompt string.
"""
formatted_response_format = json.dumps(self.response_format, indent=4)
return (
f"Constraints:\n{
self._generate_numbered_list(self.constraints)}\n\n" # 约束性条件
"Commands:\n"
f"{
sel