BaseConfig

class BaseConfig(ABC, BaseModel):

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

def fields_type_checking(cls, tools):

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

def as_dict(self):

Returns:

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