types/session

Session data types — used by SessionStore behaviour and session plugins.

Types

pub type CronJobRow {
  CronJobRow(
    alias: String,
    schedule: String,
    job_type: String,
    command: String,
    prompt: String,
    enabled: Bool,
    recurring: Bool,
    last_run_at: String,
  )
}

Constructors

  • CronJobRow(
      alias: String,
      schedule: String,
      job_type: String,
      command: String,
      prompt: String,
      enabled: Bool,
      recurring: Bool,
      last_run_at: String,
    )
pub type FtsSearchResult {
  FtsSearchResult(
    session_key: String,
    message_rowid: Int,
    role: String,
    snippet: String,
    timestamp: String,
  )
}

Constructors

  • FtsSearchResult(
      session_key: String,
      message_rowid: Int,
      role: String,
      snippet: String,
      timestamp: String,
    )
pub type RichSessionSummary {
  RichSessionSummary(
    session_key: String,
    source: String,
    persona: String,
    updated_at: String,
    message_count: Int,
    model: String,
    title: String,
    input_tokens: Int,
    output_tokens: Int,
    estimated_cost_usd: Float,
    api_call_count: Int,
    ended_at: String,
    end_reason: String,
  )
}

Constructors

  • RichSessionSummary(
      session_key: String,
      source: String,
      persona: String,
      updated_at: String,
      message_count: Int,
      model: String,
      title: String,
      input_tokens: Int,
      output_tokens: Int,
      estimated_cost_usd: Float,
      api_call_count: Int,
      ended_at: String,
      end_reason: String,
    )
pub type SessionRow {
  SessionRow(
    id: String,
    session_key: String,
    source: String,
    persona: String,
    created_at: String,
    updated_at: String,
    ended_at: String,
    end_reason: String,
    model: String,
    model_config: String,
    system_prompt: String,
    title: String,
    input_tokens: Int,
    output_tokens: Int,
    cache_read_tokens: Int,
    cache_write_tokens: Int,
    reasoning_tokens: Int,
    estimated_cost_usd: Float,
    api_call_count: Int,
    parent_session_id: String,
    resume_pending: Int,
  )
}

Constructors

  • SessionRow(
      id: String,
      session_key: String,
      source: String,
      persona: String,
      created_at: String,
      updated_at: String,
      ended_at: String,
      end_reason: String,
      model: String,
      model_config: String,
      system_prompt: String,
      title: String,
      input_tokens: Int,
      output_tokens: Int,
      cache_read_tokens: Int,
      cache_write_tokens: Int,
      reasoning_tokens: Int,
      estimated_cost_usd: Float,
      api_call_count: Int,
      parent_session_id: String,
      resume_pending: Int,
    )
pub type SessionSummary {
  SessionSummary(
    session_key: String,
    source: String,
    persona: String,
    updated_at: String,
    message_count: Int,
  )
}

Constructors

  • SessionSummary(
      session_key: String,
      source: String,
      persona: String,
      updated_at: String,
      message_count: Int,
    )
Search Document