ui

package
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFuncMap

func GetFuncMap() template.FuncMap

Types

type ContextStats

type ContextStats struct {
	SystemPromptPct float64
	UserFactsPct    float64
	EnvFactsPct     float64
	RAGContextPct   float64
	HistoryPct      float64
	TotalSize       int
}

type PageData

type PageData struct {
	Users          []storage.User
	SelectedUserID int64
	Data           interface{}
}

PageData holds the common data required for rendering pages.

type RAGLogView

type RAGLogView struct {
	storage.RAGLog
	ParsedContext []openrouter.Message
	ParsedResults interface{}

	// New fields
	SystemPromptPart string
	UserFactsPart    string
	EnvFactsPart     string
	RAGContextPart   string
	LastMessages     []openrouter.Message
	ToolCalls        []openrouter.Message
	Stats            ContextStats
}

func ParseRAGLog

func ParseRAGLog(l storage.RAGLog) RAGLogView

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer() (*Renderer, error)

func (*Renderer) Render

func (r *Renderer) Render(w io.Writer, pageTemplateFile string, data interface{}, funcMap template.FuncMap) error

type TopicLogView

type TopicLogView struct {
	storage.RAGLog
	ParsedTopics  []rag.ExtractedTopic
	ParseError    string
	InputMsgCount int
	InputStartID  int64
	InputEndID    int64
	ChunkDate     time.Time
}

func ParseTopicLog

func ParseTopicLog(l storage.RAGLog) TopicLogView

type TopicView

type TopicView struct {
	storage.TopicExtended
	Messages []storage.Message
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL