File size: 781 Bytes
8b1e853
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from typing_extensions import TypedDict
from typing import Annotated
from langgraph.graph import add_messages

class IdentificationState(TypedDict):
    messages: Annotated[list, add_messages]
    fields:str
    values:str
    counter:int
    
class IntakeRAGState(TypedDict):
    messages: Annotated[list, add_messages]
    question: str #current user input. It may or may not be a 'question'
    context: str
    
class SupervisorState(TypedDict):
    #messages: Annotated[list, add_messages]
    next: str #next step in the workflow
    
class GraphState(TypedDict):
    messages: Annotated[list, add_messages]
    fields:str
    values:str
    counter:int
    question: str #current user input. It may or may not be a 'question'
    context: str
    completed: str
    next:int