ooai_llm.tui.app

Optional Textual explorer for ooai-llm model workflows.

Purpose:

Provide an interactive terminal surface over catalog, comparison, suite, profile, and benchmark workflows.

Design:

Textual imports remain lazy so the base package stays lightweight. Data loading, filtering, and refresh throttling live in ooai_llm.tui.data so behavior can be tested without launching a terminal app.

Functions

create_tui_app(→ Any)

Create the optional Textual app.

run_tui(→ None)

Run the optional Textual application.

Module Contents

ooai_llm.tui.app.create_tui_app(config: ooai_llm.tui.data.TUIConfig | None = None, *, clock: collections.abc.Callable[[], float] = monotonic) Any[source]

Create the optional Textual app.

Parameters:
  • config – Initial source, provider, token-shape, and budget options.

  • clock – Monotonic clock injection used by tests for refresh cooldowns.

Raises:

RuntimeError – If Textual is not installed.

ooai_llm.tui.app.run_tui(config: ooai_llm.tui.data.TUIConfig | None = None) None[source]

Run the optional Textual application.

Parameters:

config – Initial source, provider, token-shape, and budget options.

Raises:

RuntimeError – If Textual is not installed.