Skip to content

Context agent: expand module library#10

Open
bokelley wants to merge 1 commit intomainfrom
bokelley/context-modules
Open

Context agent: expand module library#10
bokelley wants to merge 1 commit intomainfrom
bokelley/context-modules

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

Summary

  • Add 6 new evaluation modules: EmbeddingMatch (cosine similarity), KeywordMatch (set intersection), BrandSafety (category blocklist), GeoFilter (allow/block lists), DaypartFilter (day-of-week + hour ranges), CatalogMatch (product catalog to content topics)
  • Each module implements the Module interface, is independently configurable, and has thorough tests
  • Add SMembers to ValkeyClient interface and MockValkeyClient
  • Fix pre-existing lint issues in agent_test.go, main.go, and sync.go

Closes #4

Test plan

  • 24 new tests across 6 test files, all passing with -race
  • golangci-lint clean
  • Existing tests still pass

🤖 Generated with Claude Code

Add EmbeddingMatch, KeywordMatch, BrandSafety, GeoFilter, DaypartFilter,
and CatalogMatch modules. Each independently testable and configurable.
Also adds SMembers to ValkeyClient interface and fixes pre-existing lint.

Closes #4

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Context agent: expand module library

1 participant