File size: 325 Bytes
a0c836f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from typing import Annotated, Optional
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages


class State (TypedDict):

  query: str
  messages: Annotated[list, add_messages]
  content: Optional[list[str]]
  rewritten_query: Optional[str]
  response: Optional[str]
  image: Optional[bytes]