ui

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.833

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPanel

func ConfigPanel(data PageData) templ.Component

ConfigPanel renders the left side (middleware list, context, query).

func ContextViewer

func ContextViewer(ctx_ middleware.Context) templ.Component

ContextViewer displays the context map.

func Layout

func Layout(data PageData) templ.Component

func MiddlewareItem

func MiddlewareItem(mw MiddlewareData) templ.Component

MiddlewareItem renders a single middleware control.

func MiddlewareList

func MiddlewareList(middlewares []MiddlewareData) templ.Component

MiddlewareList renders the list of middleware items.

func ResultsPanel

func ResultsPanel(data PageData) templ.Component

ResultsPanel renders the right side (final prompt, responses, final context).

func ResultsPanelOOB

func ResultsPanelOOB(data PageData) templ.Component

Types

type MiddlewareData

type MiddlewareData struct {
	ID          string
	Name        string
	Description string
	Enabled     bool
}

MiddlewareData holds the information needed to display a middleware in the UI.

type PageData

type PageData struct {
	Middlewares       []MiddlewareData // List of middlewares for configuration panel
	InitialContext    middleware.Context
	UserQuery         string
	FinalPrompt       string
	LLMResponse       string // Raw LLM response (before parsing)
	ProcessedResponse string // Response after middleware parsing
	FinalContext      middleware.Context
}

PageData aggregates all data needed to render the main UI page.

Jump to

Keyboard shortcuts

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