Skip to main content
Activate the harness globally. All subsequent LLM calls (OpenAI, Anthropic) are automatically tracked.

Signature

Parameters

Returns

HarnessInitReport — confirmation of harness activation with mode and configuration summary.

Usage

Minimal

With config

Environment-driven

Notes

  • Call init() once at application startup, before any LLM calls
  • Calling init() again replaces the previous configuration
  • Use cascadeflow.reset() to deactivate the harness
  • init(mode="off") is equivalent to not calling init() at all