Versions in this module Expand all Collapse all v0 v0.1.1 Jul 27, 2026 v0.1.0 Jul 22, 2026 Changes in this version + type Action struct + func (a *Action) Click() *Chat + func (a *Action) ID(want string) *Action + func (a *Action) Label(want string) *Action + type BotMessage struct + func (m *BotMessage) ExpectAction(row, col int) *Action + func (m *BotMessage) ExpectEdited() *BotMessage + func (m *BotMessage) IsTextMessage() *BotMessage + func (m *BotMessage) Metrics() Metrics + func (m *BotMessage) Snapshot() platform.Message + func (m *BotMessage) Text(want string) *BotMessage + func (m *BotMessage) TextContains(substr string) *BotMessage + func (m *BotMessage) TextMatches(pattern string) *BotMessage + func (m *BotMessage) Within(d time.Duration) *BotMessage + type BranchEvidence struct + InvocationPath InvocationPath + Name string + Source SourceReference + type Chat struct + func (c *Chat) ExpectBotMessage() *BotMessage + func (c *Chat) ExpectNoMessage(within time.Duration) + func (c *Chat) SendText(text string) *Chat + type Chatwright struct + func New(t testing.TB, opts ...Option) *Chatwright + func (cw *Chatwright) BotAPIURL() string + func (cw *Chatwright) Platform() string + func (cw *Chatwright) PrivateChat(u User) *Chat + func (cw *Chatwright) ServeWebhook(h http.Handler) + func (cw *Chatwright) WebhookAt(url string) + type CheckpointEvidence struct + ID CheckpointID + InvocationPath InvocationPath + Lineage []CheckpointID + Name string + ParentID CheckpointID + Source SourceReference + type CheckpointID string + type Definition struct + Name string + Source SourceReference + type EffectiveInputs struct + Sources map[string]InputSource + Value T + type ExecutionContext struct + func NewExecutionContext(definition Definition, path ...string) (*ExecutionContext, error) + func (c *ExecutionContext) Checkpoint(name string, source SourceReference) (CheckpointEvidence, error) + func (c *ExecutionContext) Evidence() ExecutionEvidence + func (c *ExecutionContext) Path() InvocationPath + func (c *ExecutionContext) RecordBranch(name string, source SourceReference) BranchEvidence + func (c *ExecutionContext) RecordFailure(err error, source SourceReference) FailureEvidence + func (c *ExecutionContext) RecordStep(name string, source SourceReference) StepEvidence + type ExecutionEvidence struct + Branches []BranchEvidence + Checkpoints []CheckpointEvidence + Definition Definition + Failures []FailureEvidence + Path InvocationPath + Steps []StepEvidence + type FailureEvidence struct + InvocationPath InvocationPath + Message string + Source SourceReference + type Fragment struct + CloneInputs func(T) T + Definition Definition + Execute func(*ExecutionContext, T) error + type FragmentInvocation struct + Branches []BranchEvidence + Checkpoints []CheckpointEvidence + Definition Definition + Failures []FailureEvidence + Inputs EffectiveInputs[T] + ParentPath InvocationPath + Path InvocationPath + Steps []StepEvidence + func InvokeFragment[T any](parent *ExecutionContext, invocationName string, fragment Fragment[T], ...) (FragmentInvocation[T], error) + type InputSource struct + Kind string + Reference string + Source SourceReference + type InvocationPath string + func (p InvocationPath) String() string + type Metrics struct + Latency time.Duration + type Option func(*Chatwright) + func OnPlatform(p platform.Platform) Option + func WithHTTPClient(c *http.Client) Option + func WithSafetyTimeout(d time.Duration) Option + func WithWebhookHandler(h http.Handler) Option + type SourceReference struct + Revision string + URI string + type StepEvidence struct + InvocationPath InvocationPath + Name string + Source SourceReference + type User struct + FirstName string + ID string + LastName string + Username string