LoginSignup
4
3

More than 1 year has passed since last update.

GPTエージェント化 : Auto-GPT を試行

Last updated at Posted at 2023-04-21

概要

  • autoGTP を動作させてみる
  • open api key のみを用いる
    • optional で色々なサービスを使用できる模様

autoGPT とは

  • babyagi では、自動で目的達成まで動作する形式であった
  • autoGTP では、エージェントとの対話形式がベース
    • 目的達成のためのプランを立て, 許可を求めてくる

環境

M1 mac

openai api key 取得

setup

install

git clone https://github.com/Significant-Gravitas/Auto-GPT.git
cd Auto-GPT
pip install -r requirements.txt

write api key

cp .env.template .env
vi .env
OPENAI_API_KEY='sk-DUMMY_KEY

run

./run.sh

使い方

以下を設定する

実行後, 以下を入力するよう求められる

  • AI の名前
  • 目的
  • 目的達成のためのタスクリスト
    • 5個設定するが, 不要な項は空欄

  • AI名

    • kura
  • 目的

    • 科学者のリチャード・ファインマンについて調べて貰う
  • タスクリスト

    • 指定の wikipedia page でリチャード・ファインマンの情報を取得する
    • 取得した text から、ファインマンの性格を考察し要約する
    • 結果を 'feynman.txt' へ出力する
    • 終了する
  • 命名
    1.png

  • 目的設定
    2.png

  • Task list
    3.png

  • 動作中のサンプル. 許可を求められるので y を入力しプラン実行を許可する
    5.png

結果

以下へ書き出される
auto_gpt_workspace/feynman.txt

要約内容 Richard Feynman was an American theoretical physicist known for his work in quantum mechanics, quantum electrodynamics, and particle physics. He made significant contributions to the development of quantum electrodynamics and was awarded the Nobel Prize in Physics in 1965. Feynman also worked on the Manhattan Project during World War II and later became a professor at the California Institute of Technology. He was known for his engaging teaching style and popular science books, including "Surely You're Joking, Mr. Feynman!" and "The Feynman Lectures on Physics." Feynman died in 1988 at the age of 69.Richard Feynman was an American theoretical physicist known for his work in quantum mechanics, quantum electrodynamics, and particle physics. He made significant contributions to the development of quantum electrodynamics and was awarded the Nobel Prize in Physics in 1965. Feynman also worked on the Manhattan Project during World War II and later became a professor at the California Institute of Technology. He was known for his engaging teaching style and popular science books, including "Surely You're Joking, Mr. Feynman!" and "The Feynman Lectures on Physics." Feynman died in 1988 at the age of 69.

所管

  • net 上から情報取得できるのが素晴らしい
    • 外に出れるので色々幅広く使えそう
  • 日本語化したいところ
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3