Charles Grandjean
Update the retrieve doc
6d35100
raw
history blame contribute delete
655 Bytes
#!/usr/bin/env python3
"""
Agent state management for the LangGraph cyber-legal assistant
"""
from typing import TypedDict, List, Dict, Any, Optional
from datetime import datetime
class AgentState(TypedDict):
"""
State definition for the LangGraph agent workflow
"""
# User interaction
user_query: str
user_id: Optional[str]
conversation_history: List[Dict[str, str]]
intermediate_steps: List[Dict[str, Any]]
system_prompt: Optional[str]
# Context processing
relevant_documents: List[str]
# Metadata
query_timestamp: str
processing_time: Optional[float]
jurisdiction: Optional[str]