summary

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Prompt string

Functions

This section is empty.

Types

type Complete

type Complete func(ctx context.Context, system, user string) (string, error)

type Summarizer

type Summarizer struct {
	Model string
	Read  map[string]func(sid, reply string) (string, error)
	// contains filtered or unexported fields
}

func Open

func Open(path, model string, complete Complete) (*Summarizer, error)

func (*Summarizer) Forget

func (s *Summarizer) Forget(sid string)

func (*Summarizer) Get

func (s *Summarizer) Get(t history.Transcript) *Summary

func (*Summarizer) Wait

func (*Summarizer) Want

func (s *Summarizer) Want(t history.Transcript) bool

type Summary

type Summary struct {
	Reply    string    `json:"reply"`
	Status   string    `json:"status"`
	Gist     []string  `json:"gist,omitempty"`
	Overview []string  `json:"overview,omitempty"`
	Replies  []string  `json:"replies,omitempty"`
	Model    string    `json:"model"`
	At       time.Time `json:"at"`
}

func Parse

func Parse(out string) (Summary, error)

Jump to

Keyboard shortcuts

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