Enable correction-aware foundational D&D producers
This commit is contained in:
9
internal/modules/dnd/shared/model_candidate.go
Normal file
9
internal/modules/dnd/shared/model_candidate.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package shared
|
||||
|
||||
import "gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
|
||||
|
||||
// ModelCandidateFromResponse returns an owned candidate for the exact validated
|
||||
// structured response produced by the shared LLM boundary.
|
||||
func ModelCandidateFromResponse(response contracts.StructuredCompletionResponse) (*contracts.ModelCandidate, error) {
|
||||
return contracts.NewModelCandidate(response.Content, contracts.CorrectionProtocolSingleResponseV1)
|
||||
}
|
||||
Reference in New Issue
Block a user