langgraph-decision-models
Skill by langchain-ai
Guides developers to route LangGraph agents with decision models instead of prompting an LLM and parsing its text. It is aimed at people building LangGraph agents or auditing existing ones for routing-only LLM calls.
Install langgraph-decision-models
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.claude/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-decision-models ~/.claude/skills/langgraph-decision-modelsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install langgraph-decision-models in Claude Code
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-decision-models ~/.gemini/antigravity-cli/skills/langgraph-decision-modelsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install langgraph-decision-models in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides developers who route LangGraph agents with a decision model rather than an LLM. It covers the langchain-typesafe classes Noul, Choice and Score, which answer typed questions about state and return probabilities. It explains how to connect the TypeSafe classifier to Jev, to SemIf, or to Jev through the LangSmith Gateway.
It also covers reading answers without silent misrouting, designing thresholds, writing question wording, and auditing an existing agent for LLM calls that only produce a routing decision. The skill notes that langchain-typesafe is alpha and that thresholds must be re-tuned when models change.
Written from the project's SKILL.md and checked against it.
What it can do
- NoulAnswers a binary question and returns a probability of yes.
- ChoicePicks one label and returns the full distribution plus confidence.
- ScoreGrades against an ordered rubric and returns an expected value plus confidence.
- Classify and routeShows how to classify state once and route with a plain Python function.
- Answer readingExplains comparing Score against bands and gating on confidence only in ambiguous cases.
- Question wordingAdvises using criteria to define each outcome, including what should not count.
- Agent auditingLists code signals that show where a decision model could replace an LLM call.
- Batch fan-outShows per-item classification with LangGraph Send.
What you need
- Python
- LangGraph
- langchain-typesafe package (alpha)
- TypeSafe API key for direct Jev access
- LangSmith API key for SemIf or Gateway access
Try asking
- Audit my LangGraph agent for LLM calls that only produce a routing decision.
- Convert this LLM triage node into a TypeSafe Noul or Score classifier.
- Set up a TypeSafeClassifier that routes through the LangSmith Gateway.
Good to know
- langchain-typesafe is alpha (0.0.1a3) and TypeSafeClassifier is marked beta.
- Thresholds do not transfer between models and must be re-tuned.
- Each request can hold up to 32 questions, answered independently.
- Performance figures come from one 24-item batch and are shape, not benchmarks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: config/skills/langgraph-decision-models/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to langgraph-decision-models
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
langgraph-decision-models: common questions
When should I use a decision model instead of an LLM?
Use one when a node generates text only so a decision can be parsed out of it, such as routing, triage, filtering or guardrails. The source says not to use one when the output is the product or the judgment needs multi-step reasoning.
Why does my Score threshold never fire at zero?
Score is a probability-weighted expected value over the rubric, so it is usually fractional. The source says a not responsive item may score 0.07, so compare against a band instead of zero.
Does confidence show whether an answer is correct?
No. On a Score, confidence reports how concentrated the rubric distribution is, not correctness. The source recommends gating on confidence only inside the ambiguous middle.
How do I install langgraph-decision-models?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is langgraph-decision-models free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is langgraph-decision-models safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to langgraph-decision-models?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
