{"record":{"id":"9bfc6ec5f37b57ed","repo":"tinyhumansai/openhuman","slug":"error","errorCode":null,"errorMessage":": {}","messagePattern":": \\{\\}","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/integrations/task_sources/tools.rs","lineNumber":61,"sourceCode":"        .map(str::to_string)\n}\n\nfn parse_provider(args: &serde_json::Value) -> anyhow::Result<ProviderSlug> {\n    let raw = read_required_str(args, \"provider\")?;\n    ProviderSlug::parse(&raw).map_err(|e| anyhow::anyhow!(\"invalid provider: {e}\"))\n}\n\nfn parse_filter(args: &serde_json::Value) -> anyhow::Result<FilterSpec> {\n    let val = args\n        .get(\"filter\")\n        .cloned()\n        .ok_or_else(|| anyhow::anyhow!(\"missing required object argument `filter`\"))?;\n    serde_json::from_value(val).map_err(|e| anyhow::anyhow!(\"invalid filter: {e}\"))\n}\n\nmacro_rules! emit {\n    ($outcome:expr, $name:literal) => {{\n        let outcome = $outcome.map_err(|e| anyhow::anyhow!(concat!($name, \": {}\"), e))?;\n        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))\n    }};\n}\n\n/// List configured external task sources.\npub struct TaskSourceListTool {\n    config: Arc<Config>,\n}\n\nimpl TaskSourceListTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}\n\n#[async_trait]\nimpl Tool for TaskSourceListTool {\n    fn name(&self) -> &str {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/integrations/task_sources/tools.rs#L43-L79","documentation":"Format fragment used by the emit! macro in task_sources tools to append the error detail after an outcome message — i.e. the '<something>: {error}' suffix on failure outcomes. It is not a standalone error; the meaningful part is the prefix the macro pairs it with.","triggerScenarios":"Thrown at src/openhuman/integrations/task_sources/tools.rs:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the prefix preceding the ': ' to identify which task-source operation failed","Fix the underlying provider/filter/target cause indicated by the appended detail","Retry the operation if the appended detail indicates a transient failure"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}