{"record":{"id":"2b7b7b2e21a662ce","repo":"JuliusBrussee/caveman","slug":"functionresponse-w","errorCode":null,"errorMessage":"functionResponse: %w","messagePattern":"functionResponse: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/pixel/transform_gemini.go","lineNumber":365,"sourceCode":"\tp.Extra = raw\n\tif v, ok := raw[\"text\"]; ok {\n\t\tvar s string\n\t\tif err := json.Unmarshal(v, &s); err != nil {\n\t\t\treturn fmt.Errorf(\"text: %w\", err)\n\t\t}\n\t\tp.Text = &s\n\t}\n\tif v, ok := raw[\"inline_data\"]; ok {\n\t\tvar inline geminiInlineData\n\t\tif err := json.Unmarshal(v, &inline); err != nil {\n\t\t\treturn fmt.Errorf(\"inline_data: %w\", err)\n\t\t}\n\t\tp.InlineData = &inline\n\t}\n\tif v, ok := raw[\"functionResponse\"]; ok {\n\t\tvar fr geminiFunctionResponse\n\t\tif err := json.Unmarshal(v, &fr); err != nil {\n\t\t\treturn fmt.Errorf(\"functionResponse: %w\", err)\n\t\t}\n\t\tp.FunctionResponse = &fr\n\t}\n\tif v, ok := raw[\"functionCall\"]; ok {\n\t\tvar fc geminiFunctionCall\n\t\tif err := json.Unmarshal(v, &fc); err != nil {\n\t\t\treturn fmt.Errorf(\"functionCall: %w\", err)\n\t\t}\n\t\tp.FunctionCall = &fc\n\t}\n\treturn nil\n}\n\nfunc (p geminiPart) MarshalJSON() ([]byte, error) {\n\traw := make(map[string]json.RawMessage, len(p.Extra)+4)\n\tfor k, v := range p.Extra {\n\t\traw[k] = v\n\t}","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/27d5a3981a347890211bb1bf2439e5c821a63bc9/engine/pixel/transform_gemini.go#L347-L383","documentation":"Error \"functionResponse: %w\" thrown in JuliusBrussee/caveman.","triggerScenarios":"Thrown at engine/pixel/transform_gemini.go:365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the functionResponse field transform error."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"27d5a3981a347890211bb1bf2439e5c821a63bc9","analyzedAt":"2026-08-15T09:26:11.751Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}