Versions in this module Expand all Collapse all v0 v0.1.15 Dec 18, 2025 v0.1.14 Nov 28, 2025 Changes in this version + func TestLLM(t *testing.T, model llms.Model) + func TestLLMWithOptions(t *testing.T, model llms.Model, opts TestOptions, expected ...string) + func ValidateLLM(model llms.Model) error + type MockLLM struct + CallCount int + CallError error + CallResponse string + GenerateCount int + GenerateError error + GenerateResponse *llms.ContentResponse + LastMessages []llms.MessageContent + LastPrompt string + func (m *MockLLM) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error) + func (m *MockLLM) GenerateContent(ctx context.Context, messages []llms.MessageContent, ...) (*llms.ContentResponse, error) + func (m *MockLLM) GenerateContentStream(ctx context.Context, messages []llms.MessageContent, ...) (<-chan llms.ContentResponse, error) + type TestOptions struct + CallOptions []llms.CallOption + SkipCall bool + SkipGenerateContent bool + SkipStreaming bool + TestMessages []llms.MessageContent + TestPrompt string + Timeout time.Duration