structures

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StructureBoolean

func StructureBoolean() (Structure, *Boolean)

func StructureGaps

func StructureGaps() (Structure, *Gaps)

func StructureGoal

func StructureGoal() (Structure, *Goal)

func StructureGuidelines

func StructureGuidelines() (Structure, *Guidelines)

func StructurePlan

func StructurePlan() (Structure, *Plan)

func StructureTODO added in v0.8.0

func StructureTODO() (Structure, *TODOList)

Types

type Boolean

type Boolean struct {
	Boolean bool `json:"extract_boolean"`
}

type Gaps

type Gaps struct {
	Gaps []string `json:"gaps"`
}

type Goal

type Goal struct {
	Goal string `json:"goal"`
}

type Guidelines

type Guidelines struct {
	Guidelines []int `json:"guidelines"`
}

type Plan

type Plan struct {
	Subtasks    []string `json:"subtasks"`
	Description string   `json:"description"`
}

type Structure

type Structure struct {
	Schema jsonschema.Definition
	Object any
}

type TODO added in v0.8.0

type TODO struct {
	ID          string         `json:"id"`
	Description string         `json:"description"`
	Completed   bool           `json:"completed"`
	Feedback    string         `json:"feedback,omitempty"`
	Metadata    map[string]any `json:"metadata,omitempty"`
}

type TODOList added in v0.8.0

type TODOList struct {
	TODOs       []TODO    `json:"todos"`
	Markdown    string    `json:"markdown"`
	LastUpdated time.Time `json:"last_updated"`
}

func (*TODOList) AddFeedback added in v0.8.0

func (tl *TODOList) AddFeedback(id, feedback string)

AddFeedback adds feedback to a TODO by ID

func (*TODOList) FromJSON added in v0.8.0

func (tl *TODOList) FromJSON(data []byte) error

FromJSON deserializes JSON to TODOList

func (*TODOList) FromMarkdown added in v0.8.0

func (tl *TODOList) FromMarkdown(markdown string) error

FromMarkdown parses markdown checkboxes into TODO list

func (*TODOList) GetCompletedTODOs added in v0.8.0

func (tl *TODOList) GetCompletedTODOs() []TODO

GetCompletedTODOs returns all completed TODOs

func (*TODOList) GetIncompleteTODOs added in v0.8.0

func (tl *TODOList) GetIncompleteTODOs() []TODO

GetIncompleteTODOs returns all incomplete TODOs

func (*TODOList) MarkComplete added in v0.8.0

func (tl *TODOList) MarkComplete(id string)

MarkComplete marks a TODO as completed by ID

func (*TODOList) ToJSON added in v0.8.0

func (tl *TODOList) ToJSON() ([]byte, error)

ToJSON serializes TODOList to JSON

func (*TODOList) ToMarkdown added in v0.8.0

func (tl *TODOList) ToMarkdown() string

ToMarkdown generates markdown representation with checkboxes

Jump to

Keyboard shortcuts

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