0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

無料でできる GraphAI 入門

Last updated at Posted at 2024-11-30

ここで得られること

APIキーを持っていないという方でも、GraphAIを触れます。
(Geminiの無料APIを利用しています。)

結論

以下の実行手順でHello Worldを試せます。

  1. npm i -g @receptron/graphai_cliで、GraphAIをインストール

  2. GeminiのAPIキーを発行する

  3. 以下のhello.yml.envファイルを作成

  4. graphai hello.ymlを実行

    hello.yml
    version: 0.5
    nodes:
      llm:
        agent: geminiAgent
        inputs:
          prompt: Say Hello World.
      output:
        agent: copyAgent
        params:
          namedKey: text
        console:
          after: true
        inputs:
          text: :llm.text
    
    .env
    GOOGLE_GENAI_API_KEY="ここにAPIキーを貼り付け"
    

解説

更新予定

応用するために

更新予定

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?