Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created November 9, 2025 13:01
Show Gist options
  • Select an option

  • Save samirsaci/6654df2ad57b8a82ab0aa5a35ecf34b5 to your computer and use it in GitHub Desktop.

Select an option

Save samirsaci/6654df2ad57b8a82ab0aa5a35ecf34b5 to your computer and use it in GitHub Desktop.
AI Agent Budget Planning - Agent State
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
import logging
from app.utils.functions.budagent_parser import EmailParser
from app.utils.functions.budagent_functions import BudgetPlanInterpreter
from app.utils.config_loader import load_config
logger = logging.getLogger(__name__)
config = load_config()
class AgentState(TypedDict, total=False):
email_text: str
params: dict
budget_results: dict
html_summary: str
error: str
session_id: str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment