{"record":{"id":"3c8b3f7130d4639b","repo":"microsoft/autogen","slug":"all-parameters-of-the-function-f-name-with","errorCode":null,"errorMessage":"All parameters of the function '{f.__name__}' without default values must be annotated. The annotations are missing for the following parameters: {', '.join(missing_s)}","messagePattern":"All parameters of the function '(.+?)' without default values must be annotated\\. The annotations are missing for the following parameters: (.+?)","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"python/packages/autogen-core/src/autogen_core/_function_utils.py","lineNumber":280,"sourceCode":"    return_annotation = get_typed_return_annotation(f)\n    missing, unannotated_with_default = get_missing_annotations(typed_signature, required)\n\n    if return_annotation is None:\n        logger.warning(\n            f\"The return type of the function '{f.__name__}' is not annotated. Although annotating it is \"\n            + \"optional, the function should return either a string, a subclass of 'pydantic.BaseModel'.\"\n        )\n\n    if unannotated_with_default != set():\n        unannotated_with_default_s = [f\"'{k}'\" for k in sorted(unannotated_with_default)]\n        logger.warning(\n            f\"The following parameters of the function '{f.__name__}' with default values are not annotated: \"\n            + f\"{', '.join(unannotated_with_default_s)}.\"\n        )\n\n    if missing != set():\n        missing_s = [f\"'{k}'\" for k in sorted(missing)]\n        raise TypeError(\n            f\"All parameters of the function '{f.__name__}' without default values must be annotated. \"\n            + f\"The annotations are missing for the following parameters: {', '.join(missing_s)}\"\n        )\n\n    fname = name if name else f.__name__\n\n    parameters = get_parameters(required, param_annotations, default_values=default_values)\n\n    function = ToolFunction(\n        function=Function(\n            description=description,\n            name=fname,\n            parameters=parameters,\n        )\n    )\n\n    return function.model_dump()\n","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/microsoft/autogen/blob/027ecf0a379bcc1d09956d46d12d44a3ad9cee14/python/packages/autogen-core/src/autogen_core/_function_utils.py#L262-L298","documentation":"Error \"All parameters of the function '{f.__name__}' without default values must be annotated. The annotations are missing for the following parameters: {', '.join(missing_s)}\" thrown in microsoft/autogen.","triggerScenarios":"Thrown at python/packages/autogen-core/src/autogen_core/_function_utils.py:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Annotate every required parameter"],"exampleFix":"def f(x: int, y: str) -> ... for all params without defaults","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"027ecf0a379bcc1d09956d46d12d44a3ad9cee14","analyzedAt":"2026-08-15T03:38:00.719Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}