Versions in this module Expand all Collapse all v0 v0.2.0 May 18, 2026 Changes in this version + type ComputerConfig struct + APIKey string + Height int + ProjectID string + Type string + URL string + Width int + type Config struct + APIKey string + AttachMCPs []string + AttachMCPsMainAccess []string + Computer *ComputerConfig + CreateInstance bool + Directive string + DisableAutoStart bool + IncludeAptevaServer bool + IncludeChannels bool + InstanceID int64 + InstanceName string + ProjectID string + ServerURL string + StartTimeout time.Duration + type Phase struct + func (p *Phase) Inject(text string) + func (p *Phase) Stats() PhaseStats + func (p *Phase) Verify(desc string, fn func()) + func (p *Phase) WaitUntil(timeout time.Duration, desc string, cond func() bool) + type PhaseStats struct + Cost float64 + Errors int + Iterations int + TokensIn int + TokensOut int + ToolCalls int + type Report struct + Cost float64 + DurationSec float64 + Errors int + Iterations int + TokensIn int + TokensOut int + ToolCalls int + type Session struct + func New(t *testing.T, cfg ...Config) *Session + func (s *Session) ContextUsage(since time.Time) []ThreadContextUsage + func (s *Session) Events(typeFilter string, limit int) []TelemetryEvent + func (s *Session) HasToolCall(toolName string) bool + func (s *Session) HasToolCallWithPrefix(prefix string) bool + func (s *Session) Inject(text string) + func (s *Session) LogContextUsage() + func (s *Session) Report() Report + func (s *Session) ResetContext() + func (s *Session) Run(name string, fn func(p *Phase)) + func (s *Session) SetDirective(directive string) + func (s *Session) SetProviderModels(provider string, large, medium, small string) + func (s *Session) SpawnedThreads() []string + func (s *Session) StatsSince(since time.Time) PhaseStats + func (s *Session) Status() StatusInfo + func (s *Session) ToolCallsByThread() map[string][]string + func (s *Session) Verify(desc string, fn func()) + func (s *Session) WaitIdle(timeout, quiet time.Duration) + func (s *Session) WaitUntil(timeout time.Duration, desc string, cond func() bool) + type StatusInfo struct + Iteration int + Mode string + Model string + Paused bool + Rate string + Threads int + type TelemetryEvent struct + Data map[string]interface{} + ID string + ThreadID string + Time string + Type string + type ThreadContextUsage struct + ContextMax int + Iters int + LastIn int + PeakChars int + PeakIn int + PeakMsgs int + ThreadID string