File size: 779 Bytes
4a6af9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
"""State management for the MCP graph."""
from typing_extensions import TypedDict

from langgraph.prebuilt.chat_agent_executor import AgentState

class InputState(TypedDict):
    """Represents the input state for the graph.

    This class is used to pass the user question to the graph.
    It contains a single field, `question`
    """

    pass

# The index state defines the simple IO for the single-node index graph
class OutputState(TypedDict):
    """Represents the output schema for the graph.
    """

    pass

class OverallState(AgentState, InputState, OutputState):
    """Represents the overall state of the graph.

    This class combines the input and output states, allowing for
    both input and output to be managed within
    the same state.
    """
    pass