File size: 305 Bytes
3002e1b
 
 
 
 
 
 
8ce97f0
872d043
 
 
1
2
3
4
5
6
7
8
9
10
11
from pydantic import BaseModel, ConfigDict , Field
from typing import  Annotated , TypedDict
from langgraph.graph.message import add_messages

class State(TypedDict):
    messages: Annotated[list, add_messages]
    endpoint: str
    method: str
    parameters: dict
    response:dict
    error_message:str