abacusai.api_class.abstract
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- abacusai.api_class.abstract.FIRST_CAP_RE
- abacusai.api_class.abstract.ALL_CAP_RE
- abacusai.api_class.abstract._validate_instance(value, expected_type)
- abacusai.api_class.abstract._get_user_friendly_type_name(typename)
- abacusai.api_class.abstract.validate_class_method_annotations(classname=None, friendly_class_name=None)
- abacusai.api_class.abstract.validate_constructor_arg_types(friendly_class_name=None)
- abacusai.api_class.abstract.camel_case(value)
- abacusai.api_class.abstract.upper_snake_case(value)
- abacusai.api_class.abstract.snake_case(value)
- abacusai.api_class.abstract.get_clean_function_source_code(func)
- Parameters:
func (Callable)
- abacusai.api_class.abstract.get_clean_function_source_code_for_agent(func)
- Parameters:
func (Callable)
- abacusai.api_class.abstract.get_source_code(func)
- Parameters:
func (Callable)
- class abacusai.api_class.abstract.ApiClass
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- __post_init__()
- classmethod _get_builder()
- __str__()
- _repr_html_()
- to_dict()
Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.