feat(api): add file_processor API skeleton (#4113)

This commit is contained in:
Alina Ryan 2025-12-24 08:53:24 -05:00 committed by GitHub
parent 325a0bd7b3
commit 55a1da5526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 365 additions and 0 deletions

View file

@ -13234,6 +13234,7 @@ components:
- benchmarks
- tool_groups
- files
- file_processors
- prompts
- conversations
- connectors
@ -14000,6 +14001,29 @@ components:
- items
title: ConversationItemCreateRequest
type: object
ProcessFileResponse:
description: |-
Response model for file processing operation.
Returns a list of chunks ready for storage in vector databases.
Each chunk contains the content and metadata.
properties:
chunks:
description: Processed chunks from the file. Always returns at least one chunk.
items:
$ref: '#/components/schemas/Chunk'
title: Chunks
type: array
metadata:
additionalProperties: true
description: Processing-run metadata such as processor name/version, processing_time_ms, page_count, extraction_method (e.g. docling/pypdf/ocr), confidence scores, plus provider-specific fields.
title: Metadata
type: object
required:
- chunks
- metadata
title: ProcessFileResponse
type: object
PostTrainingJobLogStream:
description: Stream of logs from a finetuning job.
properties: