LlmCore.Memory.Hindsight.Supervisor (llm_core v0.3.0)

Copy Markdown View Source

Supervisor for Hindsight MCP integration components.

Starts and manages:

  • Cache GenServer
  • WriteBuffer GenServer
  • CircuitBreaker GenServer
  • Health monitor

Summary

Functions

Returns a specification to start this module under a supervisor.

Checks if Hindsight is currently connected.

Starts the Hindsight supervisor.

Returns the current Hindsight status for display.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

connected?()

@spec connected?() :: boolean()

Checks if Hindsight is currently connected.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()

Starts the Hindsight supervisor.

status()

@spec status() :: %{
  connected: boolean(),
  url: String.t() | nil,
  circuit_state: atom(),
  cache_stats: map(),
  buffer_size: non_neg_integer()
}

Returns the current Hindsight status for display.