Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchSuite ¶
type BatchSuite[C any, I any] struct { Engram engram.BatchEngram[C, I] Context context.Context Config C Inputs I Secrets map[string]string StoryInfo engram.StoryInfo CELContext map[string]any ExpectError bool RequireStructuredError bool ValidateError func(error) error ValidateResult func(*engram.Result) error }
BatchSuite defines conformance checks for a BatchEngram.
func (BatchSuite[C, I]) Run ¶
func (s BatchSuite[C, I]) Run(t testing.TB)
Run executes Init + Process and enforces the configured contract checks.
type StreamSuite ¶
type StreamSuite[C any] struct { Engram engram.StreamingEngram[C] Context context.Context Config C Inputs []engram.StreamMessage Secrets map[string]string StoryInfo engram.StoryInfo CELContext map[string]any RequireValidMessages bool RequireNonEmptyOutput bool MinOutputCount int RequireAllInputsDone bool ExpectError bool RequireStructuredError bool ValidateError func(error) error ValidateOutputMessage func(engram.StreamMessage) error }
StreamSuite defines conformance checks for a StreamingEngram.
func (StreamSuite[C]) Run ¶
func (s StreamSuite[C]) Run(t testing.TB)
Run executes Init + Stream and enforces the configured contract checks.
Click to show internal directories.
Click to hide internal directories.