Spaces:
Sleeping
Sleeping
File size: 449 Bytes
11c21e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from typing_extensions import TypedDict, List, Dict, Any
from langgraph.graph.message import add_messages
# Make your state comprehensive enough to track all the important information, but avoid bloating it with unnecessary details.
class AgentState(TypedDict):
messages: List[Dict[str, Any]]
question: str
thought: str
action: str
action_input: str
observation: str
final_answer: str
tools: str
tool_names: str |