Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
JavaScript
const options = { method: 'POST', headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'}, body: JSON.stringify({ app_name: '<string>', extract_fields: [ { field_name: '<string>', field_prompt: '<string>', sub_fields: [{field_name: '<string>', field_prompt: '<string>'}] } ], app_label: ['<string>'], enable_long_doc: false, long_doc_config: [{doc_type: '<string>', doc_desc: '<string>'}] }) }; fetch('https://adp.laiye.com/open/agentic_doc_processor/{tenant_name}/v1/app-manage/create', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "code": "<string>", "message": "<string>", "tips": "<string>", "data": { "app_id": "<string>", "app_name": "<string>", "app_label": [ "<string>" ], "config_version": "<string>", "extract_fields": [ { "field_name": "<string>", "field_prompt": "<string>", "sub_fields": [ { "field_name": "<string>", "field_prompt": "<string>" } ] } ], "parse_mode": "<string>", "enable_long_doc": true, "long_doc_config": [ { "doc_type": "<string>", "doc_desc": "<string>" } ] } }
创建抽取应用,并设置标签、字段配置和抽取配置。
用户接入 OpenAPI 的令牌,在应用 API 中查看。
租户名称,默认 laiye。
Show child attributes
standard
advance
agentic
5
抽取应用结果。
业务码。成功通常为 success 或 200。
返回信息。
详细信息,默认为空。