instance

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpace

func GetSpace(ctx context.Context) page.Space

Types

type Instance

type Instance = *instance

func GetInstance

func GetInstance(ctx context.Context) Instance
type Link = *link

func (Link) Ch

func (l Link) Ch() <-chan thread.Message

func (Link) Close

func (l Link) Close()

func (Link) Compact

func (l Link) Compact(ctx context.Context) error

func (Link) Config

func (l Link) Config() api.ThreadConfig

func (Link) Input

func (l Link) Input(ctx context.Context, input api.Input) error

func (Link) Model

func (l Link) Model() api.Model

func (Link) Retry

func (l Link) Retry(ctx context.Context) error

func (Link) Rewind

func (l Link) Rewind(ctx context.Context, round api.RoundID, input api.Input) error

func (Link) RoundAfter

func (l Link) RoundAfter(ctx context.Context, start api.RoundID, limit int) ([]api.Round, error)

func (Link) RoundBefore

func (l Link) RoundBefore(ctx context.Context, start api.RoundID, limit int) ([]api.Round, error)

func (Link) Send

func (l Link) Send(ctx context.Context, input api.Input) error

func (Link) Stop

func (l Link) Stop(ctx context.Context) error

func (Link) Unsend

func (l Link) Unsend(ctx context.Context) error

type Session

type Session = *session

func GetSession

func GetSession(ctx context.Context) Session

func (Session) Chats

func (s Session) Chats() doors.Beam[map[api.ThreadID]api.InstanceChat]

func (Session) Disable

func (s Session) Disable()

func (Session) Enable

func (s Session) Enable(opts []common.Option) error

func (Session) Location

func (s Session) Location() *time.Location

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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