Box Developerドキュメント
 

    AIエージェントの機能 (テキスト生成)

    このリソースは、バージョン2024.0のエンドポイントで使用されています。 詳細については、 **Box APIのバージョン管理**を参照してください。

    テキストの生成に使用されるAIエージェント。

    string
    ai_agent_text_gen

    テキストの生成に使用されるAIエージェントのタイプ。

    次の値に固定: ai_agent_text_gen

    enabled

    AIエージェントの機能の状態。使用可能な値はenableddisabledです。

    object

    テキストの生成に使用されるAIエージェントの基本ツール。

    ---{content}---

    LLMへのリクエストにコンテンツを含める方法。{content}の入力は、用途に応じて省略できます。

    azure__openai__text_embedding_ada_002

    埋め込みを計算するためのAIエージェントに使用されるモデル。

    basic

    埋め込みを計算するためのAIエージェントに使用される戦略。

    64
    1
    512

    チャンクごとのトークンの数。

    false

    システムメッセージにカスタム指示のプレースホルダが含まれる場合はtrue、それ以外の場合はfalse

    azure__openai__gpt_4o_mini

    基本テキストに対するAIエージェントで使用されるモデル。特定のモデル値については、利用可能なモデルのリストを参照してください。

    8400
    1

    完了に必要なトークンの数。

    \{user_question\}
    It is `{current_date}`, and I have $8000 and want to spend a week in the Azores. `{user_question}`
    10000

    プロンプトテンプレートには、リクエストのコンテキスト情報とユーザープロンプトが含まれます。

    prompt_templateパラメータを使用する場合、{user_question}の入力を含める必要があります{current_date}{content}の入力は、用途に応じて省略できます。

    You are a helpful travel assistant specialized in budget travel

    LLMが、その役割と実行するべき内容を理解するのを支援することを目的としたシステムメッセージ。{current_date}の入力は、用途に応じて省略できます。

    This is a custom instruction

    エージェントに対するカスタム指示。

    This is ASK Agent

    AIエージェントの説明。

    レスポンスの例

    {
      "type": "ai_agent_text_gen",
      "access_state": "enabled",
      "basic_gen": {
        "content_template": "---{content}---",
        "embeddings": {
          "model": "azure__openai__text_embedding_ada_002",
          "strategy": {
            "id": "basic",
            "num_tokens_per_chunk": 64
          }
        },
        "is_custom_instructions_included": false,
        "llm_endpoint_params": {
          "type": "openai_params",
          "frequency_penalty": 1.5,
          "presence_penalty": 1.5,
          "stop": "<|im_end|>",
          "temperature": 0,
          "top_p": 1
        },
        "model": "azure__openai__gpt_4o_mini",
        "num_tokens_for_completion": 8400,
        "prompt_template": "It is `{current_date}`, and I have $8000 and want to spend a week in the Azores. `{user_question}`",
        "system_message": "You are a helpful travel assistant specialized in budget travel"
      },
      "custom_instructions": "This is a custom instruction",
      "description": "This is ASK Agent"
    }