Skip to content

Go: Phase 11 — Evaluation Framework#8

Open
juliomenendez wants to merge 1 commit intoagent-framework-golang-phase9-10from
agent-framework-golang-phase11
Open

Go: Phase 11 — Evaluation Framework#8
juliomenendez wants to merge 1 commit intoagent-framework-golang-phase9-10from
agent-framework-golang-phase11

Conversation

@juliomenendez
Copy link
Copy Markdown
Owner

Summary

  • EvalItem — test case with input messages, expected output, expected tool calls
  • Evaluator function type — pluggable evaluation logic
  • Built-in checks: KeywordCheck (case-insensitive), TextContainsCheck, ToolCalledCheck
  • CombineEvaluators — composes multiple evaluators (all must pass, fail-fast)
  • EvaluateAgent — runs agent against eval items, returns EvalResults
  • EvalResults.RaiseForStatus() — returns error if any items failed

Test plan

  • go test ./... -count=1 — all tests pass across 10 packages
  • go vet ./... — no issues
  • go mod tidy — module is clean
  • EvaluateAgent tests (all pass, keyword fail, mixed results)
  • TextContainsCheck tests (found, not found)
  • ToolCalledCheck tests (called, not called)
  • CombineEvaluators tests (all pass, partial fail)

🤖 Generated with Claude Code

…t-in checks

Co-Authored-By: Claude Sonnet 4.6 <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.

1 participant