Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A Go SDK caller cannot complete the evaluation workflow against the current server.
EvaluationRequesthas an embedding ID but no knowledge-base ID, while the handler requires the knowledge base to select its embedding configuration. Both evaluation endpoints returndata.taskanddata.metric; the SDK decodes a flat object instead, silently returning an empty task ID/status and no metrics.Add the knowledge-base request field and decode the server's nested detail into the existing SDK return types. Numeric task states become the documented status strings, progress comes from finished/total,
err_msgis retained, and retrieval/generation metrics are exposed through the existing metrics map. Existing flat response fixtures remain supported. The legacy embedding field is retained and marked deprecated; the server selects that model from the knowledge base.Type of Change
Testing
The regressions failed on main: the outgoing knowledge-base ID was empty, and start/poll returned empty task data. They now cover the knowledge-base request, pending/running/completed/failed responses, task ID, 50% progress, failure messages, retrieval/generation metrics, and the previous flat response format. Fixtures follow
internal/types/evaluation.goand the real handler's response envelope.go test -count=1 ./...inclient/passes in full.run --new-from-rev origin/main ./...inclient/reports 0 issues.git diff --checkpasses.Tests execute the actual client methods with an HTTP transport fixture; no paid-model evaluation run or backend service was started.