Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 86
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-models

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install langgraph-decision-models in Claude Code

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

A

No 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 →

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.

langgraph-decision-models Install

Add to stack

Loading.