steer

package
v0.3.29-beta Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package steer provides functionality for managing user steering messages for autonomous conversations in kodelet. It handles storing, loading and managing steering messages with file-based persistence.

Index

Constants

View Source
const MaxMessageLength = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Messages []Message `json:"messages"`
}

Data represents the structure of the steer JSON file containing a collection of steering messages.

type Message

type Message struct {
	Role      string    `json:"role"`
	Content   string    `json:"content"`
	Timestamp time.Time `json:"timestamp"`
}

Message represents a steering message

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store manages persistent storage of user steering messages for autonomous conversations. It provides thread-safe operations for writing, reading, and clearing steering data with file-based persistence.

func NewSteerStore

func NewSteerStore() (*Store, error)

NewSteerStore creates a new steer store

func (*Store) ClearPendingSteer

func (s *Store) ClearPendingSteer(conversationID string) error

ClearPendingSteer clears all pending steering messages

func (*Store) HasPendingSteer

func (s *Store) HasPendingSteer(conversationID string) bool

HasPendingSteer checks if there are pending steering messages

func (*Store) ListSteerFiles

func (s *Store) ListSteerFiles() ([]string, error)

ListSteerFiles returns all steer files for debugging

func (*Store) ReadPendingSteer

func (s *Store) ReadPendingSteer(conversationID string) ([]Message, error)

ReadPendingSteer reads and returns pending steering messages

func (*Store) WriteSteer

func (s *Store) WriteSteer(conversationID, message string) error

WriteSteer writes a steering message to the steer file

Jump to

Keyboard shortcuts

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