[KongchangAI]
Concept有限状态机 / Finite State Machine

FSM

A foundational mathematical model in computer science for describing system behavior, composed of finite states, an initial state, input events and state transition rules. A system can occupy only one definite state at any moment and migrates according to preset rules upon receiving input. In agent design, it converts reasoning processes into enumerable, testable state transition sequences.

Core Facts

Timeline (last 90 days)

Oct 15

A finite state machine (FSM) is a fundamental mathematical model in computer science for describing system behavior, consisting of a finite set of states, an initial state, a set of input events, and transition rules between states, and the system can only be in one definite state at any given moment.

Unverified50%
Sep 10

Constrained decoding allows only tokens conforming to grammar rules to be sampled by setting the logits of illegal tokens to negative infinity at each decoding step; FSM is applicable to regular languages, while CFG can handle nested structures such as JSON and XML.

Unverified50%
Sep 1

The finite state machine (FSM) approach makes tools invisible to the model directly—preventing it from seeing tools it is not allowed to call—serving as a hard constraint that is more effective than relying on model compliance.

Unverified50%

All Facts (7)

Source Articles