Enums
Enums for the different types of questions, language models, and inference services.
- class edsl.enums.EnumWithChecks(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
Base class for all enums with checks.
- class edsl.enums.InferenceServiceType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
EnumWithChecks
Enum for the inference service types.
- class edsl.enums.QuestionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
EnumWithChecks
Enum for the question types.
- class edsl.enums.TokenPricing(*, model_name, prompt_token_price_per_k: float, completion_token_price_per_k: float)[source]
Bases:
object
- __dict__ = mappingproxy({'__module__': 'edsl.enums', '__init__': <function TokenPricing.__init__>, '__eq__': <function TokenPricing.__eq__>, '__dict__': <attribute '__dict__' of 'TokenPricing' objects>, '__weakref__': <attribute '__weakref__' of 'TokenPricing' objects>, '__doc__': None, '__hash__': None, '__annotations__': {}})[source]