見出し画像

GPTScriptのサンプルフォルダ内の概要

以下にGPTScripのサンプルが置いてあります。

それぞれのサンプルの概要(readme.md)を翻訳しました。

#READMEの例

このREADMEには、examplesディレクトリにある各サンプル.gptファイルの概要がまとめられています。

##概要

  1. [add-go-mod-dep.gpt] (add-go-mod-dep.gpt) **:go.modファイル (具体的にはk8s.io/apiバージョンv 0.30.0) への依存関係の追加を自動化します。

  2. [bob-as-shell.gpt] (bob-as-shell.gpt) **:"Bob"という名前のツールと対話して、彼の健康状態を報告します。

  3. [bob.gpt] (bob.gpt) **: Bobという名前の仮想アシスタントとの簡単な対話を定義し、彼の状態を尋ねます。

  4. [car-notifier/car-notifier.gpt] (car-notifier/car-notifier.gpt) **: Craigslistの新しい4Runnerリストについて、データベースチェックと電子メール通知を含めてユーザーに通知します。

  5. [count-lines-of-code.gpt] (count-lines-of-code.gpt) **: Goファイル内のコード行をカウントし、結果を合計します。

  6. [describe-code.gpt] (describe-code.gpt) **:コード行数が最も多い上位10個のGoファイルを特定して要約します。

  7. [echo.gpt] (echo.gpt) **:任意の入力文字列をエコーバックする単純なスクリプト。

  8. [fac.gpt] (fac.gpt) **:減算ツールと乗算ツールを使用した再帰階乗関数を示します。

  9. [gcp-assistant.gpt] (gcp-assistant.gpt) **:ユーザーがGoogle Cloud Platformと対話するのを支援するGCPアシスタントエージェント。

  10. [git-commit.gpt] (git-commit.gpt) **:ステージングファイルに基づいて、整形式のgitコミットメッセージを作成します。

  11. [gptreview-ghaction/codereview.gpt] (gptreview-ghaction/codereview.gpt) **: GitHub CLIを使用して、開いているプル要求のコードレビューを自動化します。

  12. [gptreview-jenkins/codereview.gpt] (gptreview-jenkins/codereview.gpt) **:前のファイルと同様に、GitHub PRでコードレビューを実行するのに役立ちます。

  13. [gptreview.gpt] (gptreview.gpt) **: GitHub CLIコマンドの学習など、GitHub PRでコードレビューを実行するためのツール。

  14. [hacker-news-headlines.gpt] (hacker-news-headlines.gpt) **: Flaskを使用してHacker Newsのトップ10ヘッドラインの収集と表示を自動化します。

  15. [hamlet-summarizer/hamlet-summarizer.gpt] (hamlet-summarizer/hamlet-summarizer.gpt) **:テキストの一部を取得して要約することで、演劇「ハムレット」を要約します。

  16. [helloworld.gpt] (helloworld.gpt) **:"helloworld"と言う簡単なコマンドです。

  17. [recipegenerator/recipegenerator.gpt] (recipegenerator/recipegenerator.gpt) **:画像から識別された材料に基づいてレシピを生成します。

  18. [samples-readme.gpt] (samples-readme.gpt) **:他の.gptファイルを要約したToday I Learned for programmersファイルを生成する手順が含まれています。

  19. [search.gpt] (search.gpt) **:フロリダ州の休暇スポットをウェブで検索し、関連情報を取得します。

  20. [sentiments.gpt] (sentiments.gpt) **: AIオートメーションを使用してツイートのセンチメントを分析します。

  21. [sqlite-download.gpt] (sqlite-download.gpt) **: ZIPファイルをダウンロードし、SQLiteデータベースを検査して、クエリを実行します。

  22. [syntax-from-code.gpt] (syntax-from-code.gpt) **: BNF構文を使用してGoコードを分析し、特定のファイル形式を記述します。

  23. [testkube.gpt] (testkube.gpt) **: KubernetesクラスターでアプリケーションをテストするためのTestkubeを支援します。

  24. [time.gpt] (time.gpt) **:異なるタイムゾーンでの現在時刻を取得します。

  25. [travel-agent.gpt] (travel-agent.gpt) **:フランスでの休暇を計画し、詳細な旅程を作成します。

  26. [treasure-hunt/treasure-hunt.gpt] (treasure-hunt/treasure-hunt.gpt) **:参加者の手がかりとヒントを含む宝探しゲームを作成します。

  27. このREADMEは、.gptファイルで説明されているさまざまな自動化およびスクリプト作成手法のガイドとして機能します。


驚いたことにこのreadme.md自体がサンプルに含まれている以下の「samples-readme.gpt」で自動生成されます。
つまり拡張子「*.gpt」のファイルを探し、内容を読み、概要をまとめて出力するわけです。

tools: sys.find, sys.read, sys.write, summary
Model Name:gpt-4o-mini
Generate a readme at examples/README.md that gives a consolidated summary of each sample *.gpt file in examples/
Each entry should be a include a link to the referenced file.
---
name: summary
description: Summarize a gpt file
args: file: filename to summarize
tools: sys.read
temperature: 0.7

Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.
Briefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.

ちなみに動作中はこんな感じになります。

C:\PROJECT\gptscript\examples>gptscript samples-readme.gpt
14:35:49 started  [main]
14:35:49 sent     [main]
14:35:49 started  [sys.find(2)] [input={"directory":"examples","pattern":"*.gpt"}]
14:35:49 sent     [sys.find(2)]
14:35:49 ended    [sys.find(2)] [output=Failed to traverse directory examples: CreateFile .: The system cannot find the file specified.]
14:35:49 continue [main]
14:35:49 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> find -> {"directory":".","pattern":"examples/*.gpt"}
14:35:49 started  [sys.find(3)] [input={"directory":".","pattern":"examples/*.gpt"}]
14:35:49 sent     [sys.find(3)]
14:35:49 ended    [sys.find(3)] [output=No files found]
14:35:49 continue [main]
14:35:49 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> find -> {"directory":"examples","pattern":"*.gpt"}
14:35:55 started  [sys.find(4)] [input={"directory":"examples","pattern":"*.gpt"}]
14:35:55 sent     [sys.find(4)]
14:35:55 ended    [sys.find(4)] [output=Failed to traverse directory examples: CreateFile .: The system cannot find the file specified.]
14:35:55 continue [main]
14:35:55 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> find -> {"directory":".","pattern":"*.gpt"}
14:35:56 started  [sys.find(5)] [input={"directory":".","pattern":"*.gpt"}]
14:35:56 sent     [sys.find(5)]
14:35:56 ended    [sys.find(5)] [output=add-go-mod-dep.gpt\nbob-as-shell.gpt\nbob.gpt\ncar-notifier\\car-notifier.gpt\ncount-lines-of-code.gpt\nde...]
14:35:56 continue [main]
14:35:56 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> summary -> {"file": "add-go-mod-dep.gpt"}
         content  [1] content | <tool call> summary -> {"file": "bob-as-shell.gpt"}
         content  [1] content | <tool call> summary -> {"file": "bob.gpt"}
         content  [1] content | <tool call> summary -> {"file": "car-notifier/car-notifier.gpt"}
         content  [1] content | <tool call> summary -> {"file": "count-lines-of-code.gpt"}
         content  [1] content | <tool call> summary -> {"file": "describe-code.gpt"}
         content  [1] content | <tool call> summary -> {"file": "echo.gpt"}
         content  [1] content | <tool call> summary -> {"file": "f.gpt"}
         content  [1] content | <tool call> summary -> {"file": "fac.gpt"}
         content  [1] content | <tool call> summary -> {"file": "gcp-assistant.gpt"}
         content  [1] content | <tool call> summary -> {"file": "git-commit.gpt"}
         content  [1] content | <tool call> summary -> {"file": "gptreview-ghaction/codereview.gpt"}
         content  [1] content | <tool call> summary -> {"file": "gptreview-jenkins/codereview.gpt"}
         content  [1] content | <tool call> summary -> {"file": "gptreview.gpt"}
         content  [1] content | <tool call> summary -> {"file": "hacker-news-headlines.gpt"}
         content  [1] content | <tool call> summary -> {"file": "hamlet-summarizer/hamlet-summarizer.gpt"}
         content  [1] content | <tool call> summary -> {"file": "helloworld.gpt"}
         content  [1] content | <tool call> summary -> {"file": "recipegenerator/recipegenerator.gpt"}
         content  [1] content | <tool call> summary -> {"file": "samples-readme.gpt"}
         content  [1] content | <tool call> summary -> {"file": "search.gpt"}
         content  [1] content | <tool call> summary -> {"file": "sentiments.gpt"}
         content  [1] content | <tool call> summary -> {"file": "sqlite-download.gpt"}
         content  [1] content | <tool call> summary -> {"file": "syntax-from-code.gpt"}
         content  [1] content | <tool call> summary -> {"file": "testkube.gpt"}
         content  [1] content | <tool call> summary -> {"file": "time.gpt"}
         content  [1] content | <tool call> summary -> {"file": "travel-agent.gpt"}
         content  [1] content | <tool call> summary -> {"file": "treasure-hunt/treasure-hunt.gpt"}
14:36:02 started  [summary(6)] [input={"file": "gcp-assistant.gpt"}]
14:36:02 started  [summary(7)] [input={"file": "bob-as-shell.gpt"}]
14:36:02 sent     [summary(7)]
14:36:02 started  [summary(8)] [input={"file": "fac.gpt"}]
14:36:02 sent     [summary(8)]
14:36:02 started  [summary(9)] [input={"file": "describe-code.gpt"}]
14:36:02 started  [summary(10)] [input={"file": "car-notifier/car-notifier.gpt"}]
14:36:02 started  [summary(11)] [input={"file": "echo.gpt"}]
14:36:02 started  [summary(12)] [input={"file": "gptreview.gpt"}]
14:36:02 started  [summary(13)] [input={"file": "testkube.gpt"}]
14:36:02 started  [summary(14)] [input={"file": "sqlite-download.gpt"}]
14:36:02 started  [summary(15)] [input={"file": "samples-readme.gpt"}]
14:36:02 started  [summary(16)] [input={"file": "f.gpt"}]
14:36:02 started  [summary(17)] [input={"file": "syntax-from-code.gpt"}]
14:36:02 started  [summary(18)] [input={"file": "time.gpt"}]
14:36:02 started  [summary(19)] [input={"file": "helloworld.gpt"}]
14:36:02 started  [summary(20)] [input={"file": "gptreview-ghaction/codereview.gpt"}]
14:36:02 started  [summary(21)] [input={"file": "hacker-news-headlines.gpt"}]
14:36:02 started  [summary(22)] [input={"file": "count-lines-of-code.gpt"}]
14:36:02 started  [summary(23)] [input={"file": "hamlet-summarizer/hamlet-summarizer.gpt"}]
14:36:02 started  [summary(24)] [input={"file": "add-go-mod-dep.gpt"}]
14:36:02 started  [summary(25)] [input={"file": "search.gpt"}]
14:36:02 started  [summary(26)] [input={"file": "travel-agent.gpt"}]
14:36:02 started  [summary(27)] [input={"file": "git-commit.gpt"}]
14:36:02 started  [summary(28)] [input={"file": "recipegenerator/recipegenerator.gpt"}]
14:36:02 started  [summary(29)] [input={"file": "sentiments.gpt"}]
14:36:02 started  [summary(30)] [input={"file": "bob.gpt"}]
14:36:02 started  [summary(31)] [input={"file": "gptreview-jenkins/codereview.gpt"}]
14:36:02 started  [summary(32)] [input={"file": "treasure-hunt/treasure-hunt.gpt"}]
14:36:02 sent     [summary(6)]
14:36:02 sent     [summary(9)]
14:36:02 sent     [summary(10)]
14:36:02 sent     [summary(11)]
14:36:02 sent     [summary(12)]
14:36:02 sent     [summary(13)]
14:36:02 sent     [summary(14)]
14:36:02 sent     [summary(15)]
14:36:02 sent     [summary(16)]
14:36:02 sent     [summary(17)]
14:36:02 sent     [summary(18)]
14:36:02 sent     [summary(19)]
14:36:02 sent     [summary(20)]
14:36:02 sent     [summary(21)]
14:36:02 sent     [summary(22)]
14:36:02 sent     [summary(23)]
14:36:02 sent     [summary(24)]
14:36:02 sent     [summary(25)]
14:36:02 sent     [summary(26)]
14:36:02 sent     [summary(27)]
14:36:02 sent     [summary(28)]
14:36:02 sent     [summary(29)]
14:36:02 sent     [summary(30)]
14:36:02 sent     [summary(31)]
14:36:02 sent     [summary(32)]
14:36:02 started  [summary(12)->sys.read(33)] [input={"filename":"gptreview.gpt"}]
14:36:02 started  [summary(9)->sys.read(34)] [input={"filename":"describe-code.gpt"}]
14:36:02 sent     [summary(12)->sys.read(33)]
14:36:02 ended    [summary(12)->sys.read(33)] [output=Name: Code Reviewer\n    Description: A tool to help you perform code review of open PRs\n    Context:...]
14:36:02 continue [summary(12)]
14:36:02 started  [summary(8)->sys.read(35)] [input={"filename":"fac.gpt"}]
14:36:02 started  [summary(7)->sys.read(36)] [input={"filename":"bob-as-shell.gpt"}]
14:36:02 sent     [summary(9)->sys.read(34)]
14:36:02 sent     [summary(12)]
14:36:02 started  [summary(6)->sys.read(37)] [input={"filename":"gcp-assistant.gpt"}]
14:36:02 sent     [summary(8)->sys.read(35)]
14:36:02 started  [summary(11)->sys.read(38)] [input={"filename":"echo.gpt"}]
14:36:02 started  [summary(13)->sys.read(39)] [input={"filename":"testkube.gpt"}]
14:36:02 sent     [summary(11)->sys.read(38)]
14:36:02 ended    [summary(11)->sys.read(38)] [output=description: Returns back the input of the script\nargs: input: Any string\nModel Name:gpt-4o-mini\nech...]
14:36:02 sent     [summary(7)->sys.read(36)]
14:36:02 started  [summary(15)->sys.read(40)] [input={"filename":"samples-readme.gpt"}]
14:36:02 started  [summary(24)->sys.read(41)] [input={"filename":"add-go-mod-dep.gpt"}]
14:36:02 started  [summary(18)->sys.read(42)] [input={"filename":"time.gpt"}]
14:36:02 started  [summary(17)->sys.read(43)] [input={"filename":"syntax-from-code.gpt"}]
14:36:02 started  [summary(16)->sys.read(44)] [input={"filename":"f.gpt"}]
14:36:02 started  [summary(28)->sys.read(45)] [input={"filename":"recipegenerator/recipegenerator.gpt"}]
14:36:02 started  [summary(25)->sys.read(46)] [input={"filename":"search.gpt"}]
14:36:02 started  [summary(26)->sys.read(47)] [input={"filename":"travel-agent.gpt"}]
14:36:02 started  [summary(19)->sys.read(48)] [input={"filename":"helloworld.gpt"}]
14:36:02 started  [summary(27)->sys.read(49)] [input={"filename":"git-commit.gpt"}]
14:36:02 started  [summary(20)->sys.read(50)] [input={"filename":"gptreview-ghaction/codereview.gpt"}]
14:36:02 started  [summary(30)->sys.read(51)] [input={"filename":"bob.gpt"}]
14:36:02 started  [summary(21)->sys.read(52)] [input={"filename":"hacker-news-headlines.gpt"}]
14:36:02 started  [summary(31)->sys.read(53)] [input={"filename":"gptreview-jenkins/codereview.gpt"}]
14:36:02 started  [summary(23)->sys.read(54)] [input={"filename":"hamlet-summarizer/hamlet-summarizer.gpt"}]
14:36:02 started  [summary(22)->sys.read(55)] [input={"filename":"count-lines-of-code.gpt"}]
14:36:02 started  [summary(29)->sys.read(56)] [input={"filename":"sentiments.gpt"}]
14:36:02 started  [summary(24)->sys.read(41)] [input={"filename":"treasure-hunt/treasure-hunt.gpt"}]
14:36:02 sent     [summary(6)->sys.read(37)]
14:36:02 ended    [summary(8)->sys.read(35)] [output=tools: myfunction\nWhat's the myfunction of 3\n\n----\nname: myfunction\ntools: sub, mul\ndescription: A f...]
14:36:02 started  [summary(10)->sys.read(57)] [input={"filename":"car-notifier/car-notifier.gpt"}]
14:36:02 sent     [summary(13)->sys.read(39)]
14:36:02 continue [summary(11)]
14:36:02 started  [summary(14)->sys.read(58)] [input={"filename":"sqlite-download.gpt"}]
14:36:02 ended    [summary(9)->sys.read(34)] [output=Tools: sys.find, count, summarize, compare\n\nFind the top 10 go files that have the most lines of cod...]
14:36:02 sent     [summary(15)->sys.read(40)]
14:36:02 sent     [summary(24)->sys.read(41)]
14:36:02 ended    [summary(12)] [output=The GPTScript file named \"gptreview.gpt\" describes a tool called \"Code Reviewer\". This tool is desig...]
14:36:02 sent     [summary(18)->sys.read(42)]
14:36:02 sent     [summary(17)->sys.read(43)]
14:36:02 sent     [summary(16)->sys.read(44)]
14:36:02 sent     [summary(28)->sys.read(45)]
14:36:02 sent     [summary(25)->sys.read(46)]
14:36:02 sent     [summary(26)->sys.read(47)]
14:36:02 sent     [summary(19)->sys.read(48)]
14:36:02 sent     [summary(27)->sys.read(49)]
14:36:02 sent     [summary(20)->sys.read(50)]
14:36:02 sent     [summary(30)->sys.read(51)]
14:36:02 sent     [summary(21)->sys.read(52)]
14:36:02 sent     [summary(31)->sys.read(53)]
14:36:02 sent     [summary(23)->sys.read(54)]
14:36:02 sent     [summary(22)->sys.read(55)]
14:36:02 sent     [summary(29)->sys.read(56)]
14:36:02 sent     [summary(24)->sys.read(41)]
14:36:02 continue [summary(8)]
14:36:02 sent     [summary(10)->sys.read(57)]
14:36:02 sent     [summary(11)]
14:36:02 sent     [summary(14)->sys.read(58)]
14:36:02 ended    [summary(7)->sys.read(36)] [output=tools: bob\nModel Name:gpt-4o-mini\n\nAsk Bob how he is doing and let me know exactly what he said.\n\n--...]
14:36:02 continue [summary(9)]
14:36:02 ended    [summary(22)->sys.read(55)] [output=tools: sys.find, count, add\nModel Name:gpt-4o-mini\n\nFind all *.go files and count the lines of code...]
14:36:02 ended    [summary(30)->sys.read(51)] [output=tools: bob\n\nAsk Bob how he is doing and let me know exactly what he said.\n\n---\nname: bob\ndescription...]
14:36:02 continue [summary(30)]
14:36:02 sent     [summary(30)]
14:36:02 ended    [summary(26)->sys.read(47)] [output=tools: travelagent\nPlan a vacation in France starting on March 1 for two weeks\n\n---\nname: travelagen...]
14:36:02 continue [summary(26)]
14:36:02 continue [summary(22)]
14:36:02 sent     [summary(22)]
14:36:02 ended    [summary(24)->sys.read(41)] [output=tools: sys.find, sys.read, sys.write, search\nargs: locations: List of locations\nargs: outputfile: Na...]
14:36:02 ended    [summary(6)->sys.read(37)] [output=Name: GCP Assistant\nDescription: Agent to help you interact with Google Cloud\nContext: learn-gcp, le...]
14:36:02 sent     [summary(8)]
14:36:02 ended    [summary(13)->sys.read(39)] [output=Name: Testkube\nDescription: A tool to help you perform testing of your application on your Kubernete...]
14:36:02 continue [summary(7)]
14:36:02 sent     [summary(9)]
14:36:02 ended    [summary(15)->sys.read(40)] [output=tools: sys.find, sys.read, sys.write, summary\nModel Name:gpt-4o-mini\nGenerate a readme at examples/R...]
14:36:02 ended    [summary(24)->sys.read(41)] [output=tools: sys.read, sys.write\nModel Name:gpt-4o-mini\nEdit the go.mod file and add k8s.io/api version v0...]
14:36:02 ended    [summary(18)->sys.read(42)] [output=tools: time\nModel Name:gpt-4o-mini\n\nAsk time to get you the time in different timezones.\n\n---\nname:...]
14:36:02 ended    [summary(17)->sys.read(43)] [output=tools: sys.read\nModel Name:GPT-4o mini\n\nThe file pkg/parser/parser.go defines a parser that reads GP...]
14:36:02 ended    [summary(16)->sys.read(44)] [output=tools:sys.find\r\nModel Name:gpt-4o-mini\r\n*.gptのファイルを探し て一覧を表示してくだ\ufffd...]
14:36:02 ended    [summary(28)->sys.read(45)] [output=tools: sys.find, sys.read, sys.write, recipegenerator, github.com/gptscript-ai/gpt4-v-vision\n\nPerfor...]
14:36:02 ended    [summary(25)->sys.read(46)] [output=tools: search\n\nSearch the web for vacation spots in Florida, for each\nvacation spot give the name an...]
14:36:02 ended    [summary(21)->sys.read(52)] [output=tools: sys.http.get, sys.http.html2text, sys.find, sys.write, mongo_run, mongo_command, init_flask_p...]
14:36:02 ended    [summary(31)->sys.read(53)] [output=Name: Code Reviewer\nDescription: A tool to help you perform code review of open PRs\nContext: learn-g...]
14:36:02 ended    [summary(23)->sys.read(54)] [output=tools: hamlet-summarizer, sys.read, sys.write\n\nFirst, create the file \"summary.txt\" if it does not a...]
14:36:02 ended    [summary(27)->sys.read(49)] [output=tools: gitstatus, sys.abort\nModel name:gpt-4o-mini\n\nCreate well formed git commit message based of o...]
14:36:02 ended    [summary(19)->sys.read(48)] [output=Say hello world]
14:36:02 ended    [summary(20)->sys.read(50)] [output=Name: Code Reviewer\nDescription: A tool to help you perform code review of open PRs\nContext: learn-g...]
14:36:02 sent     [summary(26)]
14:36:02 continue [summary(32)]
14:36:02 continue [summary(6)]
14:36:02 ended    [summary(10)->sys.read(57)] [output=tools: send_email, sys.http.html2text, sys.write, sys.exec?\n\nVisit https://phoenix.craigslist.org/se...]
14:36:02 ended    [summary(11)] [output=The contents of the GPTScript file \"echo.gpt\" describe a simple script that takes any string as inpu...]
14:36:02 continue [summary(13)]
14:36:02 ended    [summary(14)->sys.read(58)] [output=tools: sys.download, sys.exec, sys.remove\nModel Name:gpt-4o-mini\n\nDownload https://www.sqlitetutoria...]
14:36:02 sent     [summary(7)]
14:36:02 continue [summary(15)]
14:36:02 continue [summary(24)]
14:36:02 continue [summary(18)]
14:36:02 continue [summary(17)]
14:36:02 continue [summary(28)]
14:36:02 continue [summary(16)]
14:36:02 continue [summary(25)]
14:36:02 continue [summary(21)]
14:36:02 continue [summary(31)]
14:36:02 continue [summary(23)]
14:36:02 ended    [summary(29)->sys.read(56)] [output=tools: github.com/gptscript-ai/browser, sentiments\ndescription: get the sentiments expressed in a tw...]
14:36:02 continue [summary(27)]
14:36:02 continue [summary(19)]
14:36:02 continue [summary(20)]
14:36:02 sent     [summary(32)]
14:36:02 ended    [summary(8)] [output=The file \"fac.gpt\" contains a sample GPTScript file demonstrating a recursive factorial function nam...]
14:36:02 sent     [summary(6)]
14:36:02 continue [summary(10)]
14:36:02 ended    [summary(30)] [output=The `bob.gpt` file defines a simple interaction with a virtual assistant named Bob. It includes a sp...]
14:36:02 sent     [summary(13)]
14:36:02 ended    [summary(22)] [output=The GPTScript file \"count-lines-of-code.gpt\" is demonstrating a technique to find all Go files (`*.g...]
14:36:02 continue [summary(14)]
14:36:02 ended    [summary(9)] [output=The GPTScript file describes a process to identify, summarize, and describe the top 10 Go files with...]
14:36:02 sent     [summary(15)]
14:36:02 sent     [summary(24)]
14:36:02 sent     [summary(18)]
14:36:02 sent     [summary(17)]
14:36:02 sent     [summary(16)]
14:36:02 sent     [summary(25)]
14:36:02 sent     [summary(28)]
14:36:02 sent     [summary(21)]
14:36:02 sent     [summary(31)]
14:36:02 sent     [summary(20)]
14:36:02 sent     [summary(23)]
14:36:02 continue [summary(29)]
14:36:02 sent     [summary(27)]
14:36:02 ended    [summary(26)] [output=The \"travel-agent.gpt\" file is a GPTScript designed to plan a vacation in France starting on March 1...]
14:36:02 sent     [summary(19)]
14:36:02 sent     [summary(14)]
14:36:02 sent     [summary(10)]
14:36:02 ended    [summary(7)] [output=The GPTScript file \"bob-as-shell.gpt\" contains a script that uses a tool named \"bob.\" The script's p...]
14:36:02 ended    [summary(21)] [output=The GPTScript file \"hacker-news-headlines.gpt\" demonstrates how to automate the process of collectin...]
14:36:02 ended    [summary(32)] [output=The GPTScript file contains a script designed to create a treasure hunt or scavenger hunt game acros...]
14:36:02 ended    [summary(14)] [output=The GPTScript file demonstrates the following sequence of operations:\n\n1. Downloading a ZIP file fro...]
14:36:02 ended    [summary(20)] [output=The GPTScript file \"codereview.gpt\" contains a script named \"Code Reviewer\" that is designed to help...]
14:36:02 sent     [summary(29)]
14:36:02 ended    [summary(29)] [output=The GPTScript file \"sentiments.gpt\" is designed to analyze the sentiment of a tweet. It includes too...]
14:36:02 ended    [summary(27)] [output=The GPTScript file `git-commit.gpt` is designed to create a well-formed git commit message based on...]
14:36:02 ended    [summary(19)] [output=The contents of the GPTScript file \"helloworld.gpt\" is a simple command: \"Say hello world\". The file...]
14:36:02 ended    [summary(13)] [output=The GPTScript file \"testkube.gpt\" describes a tool for assisting with Testkube, which is used for te...]
14:36:02 ended    [summary(16)] [output=The GPTScript file \"f.gpt\" is a script that uses the \"sys.find\" tool with the model name \"gpt-4o-min...]
         content  [15] content | Waiting for model response...
14:36:02 ended    [summary(6)] [output=The GPTScript file \"gcp-assistant.gpt\" contains a definition for a \"GCP Assistant\" agent designed to...]
14:36:02 ended    [summary(17)] [output=The GPTScript file \"syntax-from-code.gpt\" contains instructions for reading and analyzing Go code fr...]
14:36:02 ended    [summary(28)] [output=The `recipegenerator.gpt` file is a GPTScript that demonstrates an AI automation technique for gener...]
14:36:02 ended    [summary(24)] [output=The GPTScript file \"add-go-mod-dep.gpt\" is designed to use the model \"gpt-4o-mini\" to automate the p...]
14:36:02 ended    [summary(18)] [output=The GPTScript file \"time.gpt\" demonstrates how to obtain the current time in different time zones us...]
14:36:02 ended    [summary(25)] [output=The GPTScript file \"search.gpt\" contains a script for searching the web for vacation spots in Florid...]
14:36:02 ended    [summary(23)] [output=The GPTScript file \"hamlet-summarizer.gpt\" demonstrates a process for summarizing the play \"Hamlet\"...]
14:36:02 ended    [summary(31)] [output=The `codereview.gpt` file defines a tool named \"Code Reviewer\" designed to help perform code reviews...]
14:36:02 ended    [summary(10)] [output=The GPTScript file \"car-notifier/car-notifier.gpt\" demonstrates an automation technique for notifyin...]
         content  [15] content | The GPTScript file "samples-readme.gpt" contains instructions to generate a README.md file in the "e ...
14:36:03 ended    [summary(15)] [output=The GPTScript file \"samples-readme.gpt\" contains instructions to generate a README.md file in the \"e...]
14:36:03 continue [main]
14:36:03 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> write -> {"content":"# Examples README\n\nThis README provides a consolidated summary of each sample `.gpt` file in the `examples` directory.\n\n## Summaries\n\n1. **[add-go-mod-dep.gpt](add-go-mod-dep.gpt)**: Automates adding a dependency to a `go.mod` file, specifically `k8s.io/api` version `v0.30.0`.\n\n2. **[bob-as-shell.gpt](bob-as-shell.gpt)**: Interacts with a tool named \"Bob\" to report his well-being.\n\n3. **[bob.gpt](bob.gpt)**: Defines a simple interaction with a virtual assistant named Bob, asking how he is doing.\n\n4. **[car-notifier/car-notifier.gpt](car-notifier/car-notifier.gpt)**: Notifies users about new 4Runner listings on Craigslist, involving database checks and email notifications.\n\n5. **[count-lines-of-code.gpt](count-lines-of-code.gpt)**: Counts lines of code in Go files and sums the results.\n\n6. **[describe-code.gpt](describe-code.gpt)**: Identifies and summarizes the top 10 Go files with the most lines of code.\n\n7. **[echo.gpt](echo.gpt)**: A simple script that echoes back any input string.\n\n8. **[f.gpt](f.gpt)**: Searches for and lists all files with the `.gpt` extension.\n\n9. **[fac.gpt](fac.gpt)**: Demonstrates a recursive factorial function using subtraction and multiplication tools.\n\n10. **[gcp-assistant.gpt](gcp-assistant.gpt)**: A GCP Assistant agent to help users interact with Google Cloud Platform.\n\n11. **[git-commit.gpt](git-commit.gpt)**: Creates well-formed git commit messages based on staged files.\n\n12. **[gptreview-ghaction/codereview.gpt](gptreview-ghaction/codereview.gpt)**: Automates code reviews on open pull requests using the GitHub CLI.\n\n13. **[gptreview-jenkins/codereview.gpt](gptreview-jenkins/codereview.gpt)**: Similar to the previous file, it helps perform code reviews on GitHub PRs.\n\n14. **[gptreview.gpt](gptreview.gpt)**: A tool for performing code reviews on GitHub PRs, including learning GitHub CLI commands.\n\n15. **[hacker-news-headlines.gpt](hacker-news-headlines.gpt)**: Automates collecting and displaying the top ten headlines from Hacker News using Flask.\n\n16. **[hamlet-summarizer/hamlet-summarizer.gpt](hamlet-summarizer/hamlet-summarizer.gpt)**: Summarizes the play \"Hamlet\" by retrieving and summarizing parts of the text.\n\n17. **[helloworld.gpt](helloworld.gpt)**: A simple command to say \"hello world\".\n\n18. **[recipegenerator/recipegenerator.gpt](recipegenerator/recipegenerator.gpt)**: Generates a recipe based on ingredients identified from images.\n\n19. **[samples-readme.gpt](samples-readme.gpt)**: Contains instructions to generate a README.md file summarizing other `.gpt` files.\n\n20. **[search.gpt](search.gpt)**: Searches the web for vacation spots in Florida and retrieves relevant information.\n\n21. **[sentiments.gpt](sentiments.gpt)**: Analyzes the sentiment of a tweet using AI automation.\n\n22. **[sqlite-download.gpt](sqlite-download.gpt)**: Downloads a ZIP file, inspects an SQLite database, and runs a query.\n\n23. **[syntax-from-code.gpt](syntax-from-code.gpt)**: Analyzes Go code to describe a specific file format using BNF syntax.\n\n24. **[testkube.gpt](testkube.gpt)**: Assists with Testkube for testing applications on Kubernetes clusters.\n\n25. **[time.gpt](time.gpt)**: Obtains the current time in different time zones.\n\n26. **[travel-agent.gpt](travel-agent.gpt)**: Plans a vacation in France, creating a detailed itinerary.\n\n27. **[treasure-hunt/treasure-hunt.gpt](treasure-hunt/treasure-hunt.gpt)**: Creates a treasure hunt game with clues and hints for participants.\n\n---\n\nThis README serves as a guide to the various automation and scripting techniques demonstrated in the `.gpt` files.","filename":"examples/README.md"}
14:36:15 started  [sys.write(59)] [input={"content":"# Examples README\n\nThis README provides a consolidated summary of each sample `.gpt` file in the `examples` directory.\n\n## Summaries\n\n1. **[add-go-mod-dep.gpt](add-go-mod-dep.gpt)**: Automates adding a dependency to a `go.mod` file, specifically `k8s.io/api` version `v0.30.0`.\n\n2. **[bob-as-shell.gpt](bob-as-shell.gpt)**: Interacts with a tool named \"Bob\" to report his well-being.\n\n3. **[bob.gpt](bob.gpt)**: Defines a simple interaction with a virtual assistant named Bob, asking how he is doing.\n\n4. **[car-notifier/car-notifier.gpt](car-notifier/car-notifier.gpt)**: Notifies users about new 4Runner listings on Craigslist, involving database checks and email notifications.\n\n5. **[count-lines-of-code.gpt](count-lines-of-code.gpt)**: Counts lines of code in Go files and sums the results.\n\n6. **[describe-code.gpt](describe-code.gpt)**: Identifies and summarizes the top 10 Go files with the most lines of code.\n\n7. **[echo.gpt](echo.gpt)**: A simple script that echoes back any input string.\n\n8. **[f.gpt](f.gpt)**: Searches for and lists all files with the `.gpt` extension.\n\n9. **[fac.gpt](fac.gpt)**: Demonstrates a recursive factorial function using subtraction and multiplication tools.\n\n10. **[gcp-assistant.gpt](gcp-assistant.gpt)**: A GCP Assistant agent to help users interact with Google Cloud Platform.\n\n11. **[git-commit.gpt](git-commit.gpt)**: Creates well-formed git commit messages based on staged files.\n\n12. **[gptreview-ghaction/codereview.gpt](gptreview-ghaction/codereview.gpt)**: Automates code reviews on open pull requests using the GitHub CLI.\n\n13. **[gptreview-jenkins/codereview.gpt](gptreview-jenkins/codereview.gpt)**: Similar to the previous file, it helps perform code reviews on GitHub PRs.\n\n14. **[gptreview.gpt](gptreview.gpt)**: A tool for performing code reviews on GitHub PRs, including learning GitHub CLI commands.\n\n15. **[hacker-news-headlines.gpt](hacker-news-headlines.gpt)**: Automates collecting and displaying the top ten headlines from Hacker News using Flask.\n\n16. **[hamlet-summarizer/hamlet-summarizer.gpt](hamlet-summarizer/hamlet-summarizer.gpt)**: Summarizes the play \"Hamlet\" by retrieving and summarizing parts of the text.\n\n17. **[helloworld.gpt](helloworld.gpt)**: A simple command to say \"hello world\".\n\n18. **[recipegenerator/recipegenerator.gpt](recipegenerator/recipegenerator.gpt)**: Generates a recipe based on ingredients identified from images.\n\n19. **[samples-readme.gpt](samples-readme.gpt)**: Contains instructions to generate a README.md file summarizing other `.gpt` files.\n\n20. **[search.gpt](search.gpt)**: Searches the web for vacation spots in Florida and retrieves relevant information.\n\n21. **[sentiments.gpt](sentiments.gpt)**: Analyzes the sentiment of a tweet using AI automation.\n\n22. **[sqlite-download.gpt](sqlite-download.gpt)**: Downloads a ZIP file, inspects an SQLite database, and runs a query.\n\n23. **[syntax-from-code.gpt](syntax-from-code.gpt)**: Analyzes Go code to describe a specific file format using BNF syntax.\n\n24. **[testkube.gpt](testkube.gpt)**: Assists with Testkube for testing applications on Kubernetes clusters.\n\n25. **[time.gpt](time.gpt)**: Obtains the current time in different time zones.\n\n26. **[travel-agent.gpt](travel-agent.gpt)**: Plans a vacation in France, creating a detailed itinerary.\n\n27. **[treasure-hunt/treasure-hunt.gpt](treasure-hunt/treasure-hunt.gpt)**: Creates a treasure hunt game with clues and hints for participants.\n\n---\n\nThis README serves as a guide to the various automation and scripting techniques demonstrated in the `.gpt` files.","filename":"examples/README.md"}]
14:36:15 sent     [sys.write(59)]
14:36:15 ended    [sys.write(59)] [output=Wrote (3575) bytes to file examples/README.md]
14:36:15 continue [main]
14:36:15 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | The README file has been successfully generated at `examples/README.md`, summarizing each sample `.gpt` file in the directory.
14:36:16 ended    [main] [output=The README file has been successfully generated at `examples/README.md`, summarizing each sample `.g...]
14:36:16 usage    [total=12602] [prompt=10910] [completion=1692]

OUTPUT:

The README file has been successfully generated at `examples/README.md`, summarizing each sample `.gpt` file in the directory.

この記事が気に入ったらサポートをしてみませんか?