-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Problem: Only unit tests exist, no integration tests with mock LLM.
Required Changes:
- Create
testing/mock_llm.go:
// MockLLM provides a fake LLM for testing
type MockLLM struct {
responses []string
index int
}
func NewMockLLM(responses ...string) *MockLLM
func (m *MockLLM) Prompt(ctx context.Context, msgs []chatter.Message, opts ...chatter.Opt) (*chatter.Reply, error) {
// Return canned responses
}- Create
agent/integration_test.gowith full agent flow tests - Test all three agent types end-to-end
- Test error conditions
- Test multi-turn conversations
Estimated Effort: 3 hours
Skills Required: Testing, mock design