File size: 445 Bytes
5551822
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from pydantic import BaseModel
from typing import Optional, Literal, Any, List
from pydantic import Field

class State(BaseModel):
    thread_id: str = "default"
    plan_to_retrieve: str
    file_type: Literal['pdf', 'txt', 'docs', 'docx', 'png', 'url', 'search']
    file_path: str=Field(description="Exact file path or URL to retrieve, as specified by the orchestrator")
    worker_result: Optional[List[Any]] = None # output for parent graph