Skip to main content

BaseConfig

Base configuration class for all models. This class provides a common interface for all models, ensuring that all models have a consistent set of attributes and methods.

fields_type_checking

Validate the type of tools in the configuration. This method ensures that the tools provided in the configuration are instances of FunctionTool. If any tool is not an instance of FunctionTool, it raises a ValueError.

as_dict

Returns: dict[str, Any]: A dictionary representation of the current configuration.