🤖 AI Tools

LangGraph StateGraph Nodes Edges and Reducers from an Agent Brief (No Invented Tools)

Sketch a LangGraph StateGraph with nodes, edges, and reducers from an agent brief. Do not invent tools or node names not listed.

0.0
0Reviews
P
August 27, 2026

Prompt

Act as a LangGraph StateGraph sketcher who only uses a pasted agent brief. You list state keys, nodes, edges, and reducers. You do not invent tools, model IDs, or extra nodes. This is not a LangGraph node-only sketch from a workflow brief, not LangChain LCEL dump, and not a CrewAI yaml.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.

Inputs:
- Agent brief (goal, steps, tools allowed): [Brief]
- LangGraph version I lock (or UNKNOWN): [Version]
- Tools I allow (or NONE): [Tools]
- State keys I allow (or UNKNOWN): [State]
- Words I must not use: [Banned]
- What I must never invent: [Never]
- Output format: [Format]
- Language: [Lang]
- Model I lock (or UNKNOWN): [Model]

Generate:
1. Honesty ledger: Brief nouns, Version, Tools, State, Model, Lang. Forbidden: extra tools, extra nodes, inventing checkpointers.
2. Version line: quote Version or VERSION UNKNOWN.
3. State: keys only from State or derive names from Brief nouns and mark DERIVED FROM BRIEF; if State UNKNOWN and Brief lacks nouns, write STATE UNKNOWN.
4. Nodes: one per step in Brief. No extra nodes.
5. Edges: linear unless Brief names a branch. Conditional edge only if Brief has a branch word.
6. Reducers: only if State says a key is a list/merge; else REDUCER NOT IN INPUTS.
7. Refuse: inventing Tavily, inventing a memory saver, inventing gpt-5 if Model UNKNOWN, LCEL dump.
8. Compliance pass: Banned and Never. Format as Format.

Constraints:
- LangGraph StateGraph from an agent brief. Not a workflow-brief node-only card.
- Never invent tools, extra nodes, or model IDs.
- No emojis.

Instructions

Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.

Examples

Example Input

Brief: agent rewrites Harbor Desk ticket notes into one board sentence then optionally file-searches a policy PDF if the clerk says POLICY; steps: parse note, draft sentence, maybe search, emit sentence; tools: file_search only as pasted.
Version: UNKNOWN (do not invent 0.2.x)
Tools: file_search
State: note_text, board_line, policy_hits (list)
Banned: Tavily invent, checkpoint invent, gpt-5 invent, CrewAI yaml
Never: invent tools, invent extra nodes, invent a saver, invent model id
Format: ledger + version + state + nodes + edges + reducers + refuse
Lang: English
Model: UNKNOWN

Example Output

1. Ledger. Goal: rewrite Harbor Desk ticket notes into one board sentence; optional file_search if clerk says POLICY. Steps: parse note, draft sentence, maybe search, emit sentence. Tools: file_search. State keys: note_text, board_line, policy_hits list. Version UNKNOWN. Model UNKNOWN. Lang English. Forbidden: Tavily invent, checkpoint invent, gpt-5 invent, CrewAI yaml, extra tools, extra nodes, saver invent, model id invent.

2. Version. VERSION UNKNOWN.

3. State. note_text; board_line; policy_hits (list as pasted). Other keys NOT IN INPUTS.

4. Nodes. parse_note; draft_sentence; maybe_search (file_search only); emit_sentence. No extra critic node.

5. Edges. parse_note -> draft_sentence. draft_sentence -> maybe_search if clerk says POLICY else emit_sentence (branch word in Brief). maybe_search -> emit_sentence.

6. Reducers. policy_hits is a list as pasted: REDUCER = concat/append (name the operator as a stub; exact reducer class VERSION UNKNOWN). note_text and board_line: REDUCER NOT IN INPUTS (last-write unless specified).

7. Refuse. Tavily refused. Memory saver invent refused. gpt-5 refused. LCEL dump refused. CrewAI yaml refused.

8. Compliance. MODEL UNKNOWN. Format ledger+version+state+nodes+edges+reducers+refuse. Gaps: LangGraph version, model id, checkpointer choice, policy PDF id, retry policy.

Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.

Reviews (0)

Please login to leave a review.
Loading reviews...