Box Developerドキュメント

AIエージェントの更新

AIエージェントの更新

PUT /2.0/ai_agents/{id}エンドポイントを使用すると、IDに基づいてカスタムAIエージェントを更新できます。

リクエストの送信

リクエストを送信するには、PUT /2.0/ai_agents/{id}エンドポイントを使用します。

cURL
curl -i -X PUT "https://api.box.com/2.0/ai_agents/1234567890" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.aiStudio.updateAiAgentById(createdAgent.id, {
  name: agentName,
  accessState: 'enabled',
  ask: new AiStudioAgentAsk({ accessState: 'disabled', description: 'desc2' }),
} satisfies CreateAiAgentInput);
Python Gen
client.ai_studio.update_ai_agent_by_id(
    created_agent.id,
    agent_name,
    "enabled",
    ask=AiStudioAgentAsk(access_state="disabled", description="desc2"),
)
.NET Gen
await client.AiStudio.UpdateAiAgentByIdAsync(agentId: createdAgent.Id, requestBody: new CreateAiAgent(name: agentName, accessState: "enabled") { Ask = new AiStudioAgentAsk(accessState: "disabled", description: "desc2") });

パラメータ

コールを実行するには、以下のパラメータを渡す必要があります。必須のパラメータは太字で示されています。

パラメータ説明
typeクエリの処理に使用されるエージェントのタイプ。````
nameAIエージェントの名前。マイAIエージェント
access_stateAIエージェントの状態。値はenableddisabledのいずれかです。enabled
icon_referenceAIエージェントのアイコン参照。これは、URL https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>の形式で指定する必要があります。この場合、file_nameに使用可能な値はlogo_boxAi.pnglogo_stamp.pnglogo_legal.pnglogo_finance.pnglogo_config.pnglogo_handshake.pnglogo_analytics.pnglogo_classification.pngです。https://cdn01.boxcdn.net/app-assets/aistudio/avatars/logo_analytics.svg
allowed_entities許可するユーザーまたはグループのリスト。
ask質問に使用されるAIエージェント。ask
extract抽出に使用されるAIエージェント。
text_genテキストの生成に使用されるAIエージェント。