session

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flusher

type Flusher interface {
	FlushPluginSession(MemorySession) error
}

Flusher persists a plugin memory session.

type FlusherFunc

type FlusherFunc func(MemorySession) error

FlusherFunc adapts a function into a Flusher.

func (FlusherFunc) FlushPluginSession

func (f FlusherFunc) FlushPluginSession(session MemorySession) error

type MemorySession

type MemorySession struct {
	Key             string
	UserPeerID      string
	AssistantPeerID string
	HonchoSessionID string
	Messages        []Message
}

MemorySession is the plugin-side session payload passed to write flushers.

type Message

type Message struct {
	Role    string
	Content string
	Synced  bool
}

Message is a plugin memory message awaiting persistence.

Jump to

Keyboard shortcuts

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