Documentation
¶
Index ¶
- func Decode(t *testing.T, r api.ContentToolResult, v any)
- func Golden(t *testing.T, got []byte)
- func IsCompaction(req api.Request) bool
- func MessageStorage(t *testing.T, open func(t *testing.T) api.MessageStorage)
- func MessageStorageUsers(t *testing.T, open func(t *testing.T) func(user string) api.MessageStorage)
- func Results(req api.Request) []api.ContentToolResult
- type Controller
- func (c *Controller) Ask(api.ChatAsk) (func(context.Context), error)
- func (c *Controller) Config() api.ThreadConfig
- func (c *Controller) Context() context.Context
- func (c *Controller) Ctx() context.Context
- func (c *Controller) FS() api.FS
- func (c *Controller) FilesConfig() api.FilesConfig
- func (c *Controller) ID() api.ThreadID
- func (c *Controller) Model() api.Model
- func (c *Controller) Modules() iter.Seq[common.Module]
- func (c *Controller) PageContext() context.Context
- func (c *Controller) Rename(context.Context, string) error
- func (c *Controller) Store() *local.FileStorage
- func (c *Controller) Task(string, map[string]any, context.CancelCauseFunc) (common.Task, error)
- func (c *Controller) Tasks() []*Task
- type Note
- type Provider
- func (p *Provider) Model() api.Model
- func (p *Provider) Name() string
- func (p *Provider) OnCompaction(turns ...Turn)
- func (p *Provider) Push(turns ...Turn)
- func (p *Provider) Request(t *testing.T, i int) api.Request
- func (p *Provider) Requests() []api.Request
- func (p *Provider) Stream(ctx context.Context, req api.Request) <-chan api.Event
- type Setup
- type Task
- type Turn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCompaction ¶
func MessageStorage ¶
func MessageStorageUsers ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(t *testing.T, s Setup) *Controller
func (*Controller) Config ¶
func (c *Controller) Config() api.ThreadConfig
func (*Controller) Context ¶
func (c *Controller) Context() context.Context
func (*Controller) Ctx ¶
func (c *Controller) Ctx() context.Context
func (*Controller) FS ¶
func (c *Controller) FS() api.FS
func (*Controller) FilesConfig ¶
func (c *Controller) FilesConfig() api.FilesConfig
func (*Controller) ID ¶
func (c *Controller) ID() api.ThreadID
func (*Controller) Model ¶
func (c *Controller) Model() api.Model
func (*Controller) PageContext ¶
func (c *Controller) PageContext() context.Context
func (*Controller) Store ¶
func (c *Controller) Store() *local.FileStorage
func (*Controller) Task ¶
func (c *Controller) Task(string, map[string]any, context.CancelCauseFunc) (common.Task, error)
func (*Controller) Tasks ¶
func (c *Controller) Tasks() []*Task
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) OnCompaction ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Ok ¶
func (t *Task) Ok(json.RawMessage)
Click to show internal directories.
Click to hide internal directories.