File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
guides/box-ai/ai-tutorials Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -191,20 +191,24 @@ curl --location 'https://api.box.com/2.0/ai/extract_structured' \
191191
192192### 抽出エージェント (強化)
193193
194- エージェントの使用を開始するには、以下が必要です。
194+ To use the Enhanced Extract Agent, specify the `ai_agent` object as follows:
195195
196- * `Manage AI`スコープが有効になっているBox Platformアプリ。
197- * そのアプリがBoxインスタンスにインストールされ、有効になっていること。
198- * テストに使用するファイル。
196+ ```bash
197+ {
198+ "ai_agent": {
199+ "type": "ai_agent_id",
200+ "id": "enhanced_extract_agent"
201+ }
202+ }
199203
200- 抽出エージェント (強化) の呼び出しは、AI APIの呼び出しのように動作します。`type`を`AI Agent ID`に設定した後、文字列をAI抽出エージェント (強化) に設定します。
204+ ```
201205
202- 抽出エージェント (強化) を使用してデータを抽出するには、以下のいずれかが必要です。
206+ To extract data using the Enhanced Extract Agent you need one of the following:
203207
204- * `agentCreateAiExtractStructuredMetadataTemplate`を使用して作成されたインラインフィールドの定義 (フィールドが頻繁に変更される場合)。
205- * 抽出するフィールドに関するデータを含むメタデータテンプレート (抽出される複数のフィールドが一定の場合)。
208+ * [Inline field definitions][inline-field] (best when fields change frequently)
209+ * [Metadata template][metadata-template] (best when fields stay consistent)
206210
207- Box AI SDKを使用してファイルに対して抽出エージェント (強化) を呼び出す方法を示すPythonサンプルスクリプト全体を参照してください。
211+ See the sample code snippet using Box Python SDK:
208212
209213```Python
210214from box_sdk_gen import (
@@ -270,3 +274,7 @@ print(f"box_ai_response: {box_ai_response.answer}")
270274[changelog]: page://changelog
271275
272276[blog]: https://medium.com/box-developer-blog
277+
278+ [inline-field]: #use-fields-parameter
279+
280+ [metadata-template]: #use-metadata-template
You can’t perform that action at this time.
0 commit comments