A programming framework for agentic AI
Add missing py.typed in autogen_ext, fix type issue in core (#4993)
Jack Gerrits115fefa13211
diff --git a/python/packages/autogen-core/src/autogen_core/_component_config.py b/python/packages/autogen-core/src/autogen_core/_component_config.pyindex f5426428c..104528292 100644--- a/python/packages/autogen-core/src/autogen_core/_component_config.py+++ b/python/packages/autogen-core/src/autogen_core/_component_config.py@@ -2,7 +2,7 @@ from __future__ import annotationsimport importlibimport warnings-from typing import Any, ClassVar, Dict, Generic, Literal, Protocol, Type, cast, overload, runtime_checkable+from typing import Any, ClassVar, Dict, Generic, List, Literal, Protocol, Type, cast, overload, runtime_checkablefrom pydantic import BaseModelfrom typing_extensions import Self, TypeVar@@ -243,9 +243,9 @@ class Component(ComponentConfigImpl[ConfigT], ComponentLoader, Generic[ConfigT])return cls(value=config.value)"""- required_class_vars = ["component_config_schema", "component_type"]+ required_class_vars: ClassVar[List[str]] = ["component_config_schema", "component_type"]- def __init_subclass__(cls, **kwargs: Any):+ def __init_subclass__(cls, **kwargs: Any) -> None:super().__init_subclass__(**kwargs)# TODO: validate provider is loadablediff --git a/python/packages/autogen-ext/src/autogen_ext/py.typed b/python/packages/autogen-ext/src/autogen_ext/py.typednew file mode 100644index 000000000..e69de29bb