tasks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tasks builds the per-task prompt, grammar, and validation schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StableParamsKey

func StableParamsKey(p map[string]any) string

stableParamsKey renders params deterministically for cache keying.

Types

type Built

type Built struct {
	System    string
	User      string
	Grammar   string
	Schema    map[string]any // validation schema (extract); nil when grammar suffices
	MaxTokens int
}

Built is everything the pipeline needs to run one task.

func Build

func Build(req core.Request) (Built, error)

Build produces the request material for req, or an error if params are bad.

Jump to

Keyboard shortcuts

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