controller

package
v0.1.4 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Active     bool
	Settled    int
	Unsettled  int
	Compaction bool
}

type Context

type Context struct {
	Usage      api.EventUsage
	Compaction bool
	CanCompact bool
}

type Controller

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

func New

func New(thread api.ChatThread, input api.ChatInput, active bool, settled api.EventUsage, tasks []api.Task, compaction bool, canCompact bool, ask *api.ChatAsk) Controller

func (Controller) Active

func (s Controller) Active() doors.Beam[bool]

func (Controller) Ask

func (s Controller) Ask(ctx context.Context, ask api.ChatAsk)

func (Controller) AskDone

func (s Controller) AskDone(ctx context.Context)

func (Controller) Bar

func (s Controller) Bar() doors.Beam[Bar]

func (Controller) BindSend

func (s Controller) BindSend(el func(enabled bool) gox.Elem) gox.Elem

func (Controller) CancelRewind

func (s Controller) CancelRewind(ctx context.Context)

func (Controller) CancelTask

func (s Controller) CancelTask(id uint)

func (Controller) CancelTasks

func (s Controller) CancelTasks()

func (Controller) Compact

func (s Controller) Compact(ctx context.Context)

func (Controller) Config

func (s Controller) Config() api.ThreadConfig

func (Controller) Context

func (s Controller) Context() doors.Beam[Context]

func (Controller) Escape

func (s Controller) Escape(ctx context.Context, fromComposer bool)

func (Controller) ExcessBytes

func (s Controller) ExcessBytes() doors.Beam[int]

func (Controller) FS

func (s Controller) FS() api.FS

func (Controller) FlushInput

func (s Controller) FlushInput(ctx context.Context)

func (Controller) HasContext

func (s Controller) HasContext() doors.Beam[bool]

func (Controller) HasTasks

func (s Controller) HasTasks() doors.Beam[bool]

func (Controller) InitRewind

func (s Controller) InitRewind(ctx context.Context, round api.RoundID, input api.Input)

func (Controller) Input

func (s Controller) Input() doors.Beam[InputState]

func (Controller) Model

func (s Controller) Model() api.Model

func (Controller) Pending

func (s Controller) Pending() doors.Beam[bool]

func (Controller) Rewind

func (s Controller) Rewind() doors.Beam[api.RoundID]

func (Controller) RoundDone

func (s Controller) RoundDone(ctx context.Context, roundState api.RoundState, usage api.EventUsage, canCompact bool)

func (Controller) RoundStart

func (s Controller) RoundStart(ctx context.Context, usage api.EventUsage, canCompact bool)

func (Controller) Send

func (s Controller) Send(ctx context.Context)

func (Controller) Stop

func (s Controller) Stop(ctx context.Context)

func (Controller) TaskCount

func (s Controller) TaskCount() doors.Beam[int]

func (Controller) Tasks

func (s Controller) Tasks() doors.Beam[[]api.Task]

func (Controller) Unsend

func (s Controller) Unsend(ctx context.Context)

func (Controller) UpdateActive

func (s Controller) UpdateActive(ctx context.Context, value bool)

func (Controller) UpdateAttachments

func (s Controller) UpdateAttachments(ctx context.Context, seq int, files []string)

func (Controller) UpdateCompaction

func (s Controller) UpdateCompaction(ctx context.Context, active bool, usage api.EventUsage, canCompact bool)

func (Controller) UpdateInputText

func (s Controller) UpdateInputText(ctx context.Context, text string)

func (Controller) UpdatePending

func (s Controller) UpdatePending(ctx context.Context, value bool)

func (Controller) UpdateTasks

func (s Controller) UpdateTasks(ctx context.Context, tasks []api.Task)

func (Controller) UpdateUsage

func (s Controller) UpdateUsage(ctx context.Context, usage api.EventUsage)

func (Controller) UploadFinished

func (s Controller) UploadFinished(ctx context.Context, seq int)

func (Controller) UploadStarted

func (s Controller) UploadStarted(ctx context.Context, seq int)

type InputState

type InputState struct {
	Seq     int
	Input   api.Input
	Pending bool
	Rewind  bool
	Ask     *api.ChatAsk
}

Jump to

Keyboard shortcuts

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