OpenAiChatParam
Special param for config that create a chat with open ai similar to ChatGPT.
The value of this param will be a OpenAiChat object.
:param ParamSpec: description :type ParamSpec: type
Attributes
PRIVATE_VISIBILITY: LiteralPROTECTED_VISIBILITY: LiteralPUBLIC_VISIBILITY: Literaladditional_info: Optionalcontext: Optionaldefault_value: Optionalhuman_name: Optionaloptional: boolshort_description: Optionalvisibility: LiteralFunctions
__init__
context :
Optional Context of the chat, can also be provided during run
optional :
bool - False See default value
visibility :
Literal - public Visibility of the param, see doc on type ParamSpecVisibilty for more info
human_name :
Optional - Enter your prompt/message Human readable name of the param, showed in the interface
short_description :
Optional Description of the param, showed in the interface
build
Method call before the value is used (in task or view) to apply some transformation if needed by the ParamSpec. This does not affect the value in the database.
value :
Any Return type :
Any get_default_value
Return type :
Any to_dto
Return type :
ParamSpecDTO to_simple_dto
Return type :
ParamSpecSimpleDTO validate
Validate the value of the param and return the modified value if needed. This method is called when the param is set in the config before saving it in the database. The returned value must be serializable in json.
value :
Any Return type :
Any empty @classmethod
Return type :
ParamSpec get_additional_infos @classmethod
Return type :
Dict get_default_value_param_spec @classmethod
Return type :
OpenAiChatParam get_str_type @classmethod
Return type :
ParamSpecTypeStr load_from_dto @classmethod
spec_dto :
ParamSpecDTO Return type :
ParamSpec to_param_spec_info_specs @classmethod
Return type :
ParamSpecInfoSpecs