Templates
Document Reasoning
A screen template for document reasoning tasks and Q&A interactions
Installation
Install the screen template by running the following command:
The screen file will be added at screens/legacy-document-reasoning-screen.tsx
.
Usage
Required Props
Name | Type | Description |
---|---|---|
resultId | string | The async result ID returned from a document reasoning API call |
Example
workflow.py
Returns
The screen returns comprehensive information about the reasoning tasks and their answers:
Name | Type | Description |
---|---|---|
tasks | array | Array of task objects that were processed |
initial_answers | array | Array of initial answers generated by the AI for each task |
initial_answers[].answer | object | Rich text content of the initial AI-generated answer |
final_answers | array | Array of final answers after user review and editing |
final_answers[].answer | object | Rich text content of the final user-reviewed answer |