[KongchangAI]
Concept

StateGraph

A class in LangGraph for defining state graphs. Workflows are explicitly defined through nodes and edges, and execution order is controlled by code.

Core Facts

Timeline (last 90 days)

Oct 12

The workflow is orchestrated with LangGraph's StateGraph, the state is defined as RAGState, and three nodes form the main chain retrieve → generate → guardrail; the guardrail node's conditional routing returns to the generate node when it does not pass and the retry count is less than 2.

Unverified50%
Sep 28

Bounded retry maintains a retry counter in the StateGraph state object, and when the counter exceeds a preset threshold (e.g., 3), a conditional edge routes the process to a termination node that returns "I don't know," preventing infinite recursion.

Unverified50%
Sep 8

LongGuard embeds into StateGraph and evaluates four failure modes at sub-millisecond speed at every step of the agent: identical tool calls, semantic oscillation, dead-end drift, and token rate.

Unverified50%

All Facts (6)

Source Articles