Skip to main content
Loading navigation
Back to prompt library

Design LangGraph Workflow Architecture

Linked challenge: LangChain-Powered Megaproject Procurement Risk Agent for Qiddiya Infrastructure

Prompt source

planning1 lines1 sectionsNo variables0 checklist items
Design a stateful LangGraph workflow for evaluating procurement risks in megaprojects like Qiddiya. Define the state object using Pydantic (`ProcurementState`), including fields for `po_data`, `risk_score`, `risk_factors`, and `messages`. Write Python code initializing `StateGraph` from `langgraph.graph` and configuring nodes for `document_parsing`, `compliance_check`, and `risk_scoring`.