MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / reset

Method reset

optillm/deepconf/processor.py:83–89  ·  view source on GitHub ↗

Reset processor state for new query.

(self)

Source from the content-addressed store, hash-verified

81 logger.info(f"DeepConf processor initialized with variant: {self.config['variant']}")
82
83 def reset(self):
84 """Reset processor state for new query."""
85 self.warmup_traces = []
86 self.online_traces = []
87 self.confidence_threshold = None
88 self.total_tokens_used = 0
89 self.confidence_calculator.reset()
90
91 def generate_single_trace(self, messages: List[Dict[str, str]],
92 use_early_termination: bool = False) -> TraceResult:

Callers 2

process_onlineMethod · 0.95
generate_single_traceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected