Documentation
¶
Overview ¶
Package compliance provides a test suite to verify provider implementations.
The compliance suite tests that LLM providers correctly implement the standard interfaces and behave consistently across different implementations.
Usage:
func TestProviderCompliance(t *testing.T) {
model, err := provider.New()
if err != nil {
t.Fatal(err)
}
suite := compliance.NewSuite("provider", model)
suite.Run(t)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct {
// Provider is the provider name.
Provider string
// Model is the model to test.
Model llms.Model
// SkipTests contains test names to skip.
SkipTests map[string]bool
// Timeout for individual tests.
Timeout time.Duration
}
Suite tests provider compliance with the LLM interface.
Click to show internal directories.
Click to hide internal directories.