serve

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderableTestOutput

type RenderableTestOutput struct {
	ConversationString string
	EntryID            string
	GoldenAnswer       []string
	Topic              string
	Age                string
	Moral              string
	LastMessage        string
}

RenderableTestOutput is a render-friendly version of TestOutput with all fields properly typed for templating

func ConvertOutputs

func ConvertOutputs(outputs []eval.TestOutput) []RenderableTestOutput

ConvertOutputs converts a slice of TestOutputs to RenderableTestOutputs

func NewRenderableTestOutput

func NewRenderableTestOutput(output eval.TestOutput) RenderableTestOutput

NewRenderableTestOutput converts a TestOutput to a RenderableTestOutput

type WebViewCommand

type WebViewCommand struct {
	*cmds.CommandDescription
}

func NewWebViewCommand

func NewWebViewCommand() (*WebViewCommand, error)

func (*WebViewCommand) Run

func (c *WebViewCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type WebViewSettings

type WebViewSettings struct {
	InputFile string `glazed.parameter:"input"`
	Port      string `glazed.parameter:"port"`
}

Jump to

Keyboard shortcuts

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