MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / LoopDetector

Class LoopDetector

src-tauri/src/loop_detector.rs:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use std::collections::VecDeque;
2
3pub struct LoopDetector {
4 recent_steps: VecDeque<String>,
5 max_steps: usize,
6}
7
8impl LoopDetector {
9 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected