Skip to content

register_llm_config

autogen.llm_config.register_llm_config #

register_llm_config(cls)
Source code in autogen/llm_config.py
def register_llm_config(cls: Type[LLMConfigEntry]) -> Type[LLMConfigEntry]:
    if isinstance(cls, type) and issubclass(cls, LLMConfigEntry):
        _llm_config_classes.append(cls)
    else:
        raise TypeError(f"Expected a subclass of LLMConfigEntry, got {cls}")
    return cls