Skip to content

feat(js/ai): allow disabling native constrained generation and enabling custom instruction #1099

feat(js/ai): allow disabling native constrained generation and enabling custom instruction

feat(js/ai): allow disabling native constrained generation and enabling custom instruction #1099

Triggered via pull request February 13, 2025 13:01
Status Failure
Total duration 1m 16s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests
not enough arguments in call to ai.DefineRetriever
tests
undefined: genai.WithClientInfo
tests
iter.MergedResponse undefined (type *genai.GenerateContentResponseIterator has no field or method MergedResponse)
tests
resp.UsageMetadata undefined (type *genai.GenerateContentResponse has no field or method UsageMetadata)
tests
cannot use (*meter)(nil) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in variable declaration: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
tests
cannot use mp.meters.Lookup(s, func() *meter {…}) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in return statement: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
tests
undefined: genai.WithClientInfo
tests
iter.MergedResponse undefined (type *genai.GenerateContentResponseIterator has no field or method MergedResponse)
tests
cannot use int32(c.TopK) (value of type int32) as float32 value in argument to gm.SetTopK
tests
gm.SystemInstruction undefined (type *genai.GenerativeModel has no field or method SystemInstruction)
tests
Restore cache failed: Dependencies file is not found in /home/runner/work/genkit/genkit. Supported file pattern: go.sum