{"record":{"id":"a1aa97c6a1d4a2b4","repo":"BoundaryML/baml","slug":"failed-to-get-tags-w","errorCode":null,"errorMessage":"failed to get tags: %w","messagePattern":"failed to get tags: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/language_client_go/pkg/rawobjects_function_log.go","lineNumber":158,"sourceCode":"\nfunc (f *functionLog) SelectedCall() (LLMCall, error) {\n\tresult, err := raw_objects.CallMethod(f, \"selected_call\", nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to get selected call: %w\", err)\n\t}\n\n\tcall, ok := result.(LLMCall)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"unexpected type for selected call: %T\", result)\n\t}\n\n\treturn call, nil\n}\n\nfunc (f *functionLog) Tags() (map[string]any, error) {\n\tresult, err := raw_objects.CallMethod(f, \"tags\", nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to get tags: %w\", err)\n\t}\n\n\ttags, ok := result.(map[string]any)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"unexpected type for tags: %T\", result)\n\t}\n\n\treturn tags, nil\n}\n","sourceCodeStart":140,"sourceCodeEnd":168,"githubUrl":"https://github.com/BoundaryML/baml/blob/bd85ce9dee1463ff04d27efd20531013a4ff46c1/engine/language_client_go/pkg/rawobjects_function_log.go#L140-L168","documentation":"Tags() fetches the function log's tags map via the 'tags' bridge method. This error wraps any failure of the bridge call itself (disposed object, missing method, runtime exception), separate from the map type-assertion error raised immediately after.","triggerScenarios":"Calling FunctionLog.Tags() when the bridge fails to invoke 'tags' on the runtime object.","commonSituations":"Accessing tags after the function log's backing object was released; runtime version where 'tags' was renamed or removed; transport/IPC failure.","solutions":["Inspect the wrapped root error for the bridge failure","Verify the runtime still exposes 'tags'","Re-acquire a fresh function log handle"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"if flog == nil { return nil, errors.New(\"nil function log\") }","typeGuard":null,"tryCatchPattern":"tags, err := flog.Tags()\nif err != nil {\n    return nil, fmt.Errorf(\"tags unavailable: %w\", err)\n}","preventionTips":["Fetch tags while the log object is still valid in the runtime","Confirm the runtime exposes 'tags' in its current version","Avoid caching FunctionLog handles beyond the function's lifetime"],"tags":["go","rpc","error-wrapping","llm"],"backgroundTag":"type-mismatch","analyzedSha":"bd85ce9dee1463ff04d27efd20531013a4ff46c1","analyzedAt":"2026-09-12T03:38:25.718Z","contentChangedAt":"2026-09-12T03:38:25.718Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}