services/titler/titler

Auto-titling — generates session titles after the first exchange. Fire-and-forget via Erlang spawn — never blocks the REPL.

Values

pub fn maybe_auto_title(
  conn: sqlight.Connection,
  session_id: String,
  client: completions.Client,
  user_message: String,
  assistant_response: String,
  message_count: Int,
) -> Nil

Fire-and-forget: spawn a process that generates and sets a title. Called after the first user-assistant exchange completes.

pub fn service() -> shapes.Service
Search Document