Orchestrate Dynamic Decision Cycle with LangGraph

implementationChallenge

Prompt Content

Implement the core LangGraph workflow. This should include states for 'Analyze_Demand', 'Assess_Inventory', 'Propose_Actions_Llama3.3', 'Execute_Order_Tool', 'Update_State', and a conditional edge to loop or conclude. Crucially, within 'Propose_Actions_Llama3.3', craft a detailed prompt for Llama 3.3 that provides the agent's current internal model (e.g., inventory, costs) and asks it to reason about the optimal next steps based on minimizing total cost and avoiding stockouts, explicitly requesting its reasoning trace.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations