Spaces:
Sleeping
Sleeping
File size: 409 Bytes
6cbca40 c0a7f25 6cbca40 c0a7f25 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from typing import TypedDict
from langgraph.prebuilt import create_react_agent
from typing import (
Annotated,
Sequence,
TypedDict,
)
from langchain_core.messages import AnyMessage
from langgraph.graph.message import add_messages
import json
from src.config.llm import model
class State(TypedDict):
"""The state of the agent."""
messages: Annotated[Sequence[AnyMessage], add_messages]
|