Functions
call_gpt @classmethod
Call gpt chat, and add the response to the chat object as an assistant message
chat_messages :
List
list of messages and context to send to the AI
Return type :
str
call_whisper @classmethod
Call whisper to transcribe an audio file
audio_file_path :
str
path to the audio file
prompt :
Optional
Return type :
str
describe_inputs_for_context @classmethod
inputs :
dict
Return type :
str
describe_inputs_text_for_context @classmethod
input_description :
str
Return type :
str
describe_outputs_for_context @classmethod
outputs_specs :
Dict
Return type :
str
describe_outputs_text_for_context @classmethod
output_description :
str
Return type :
str
get_code_context @classmethod
Define the context rules for the code generation, so the generated code is executable.
pip_package_names :
List
list of available package that can be used in the generated code. The version of the package will be automatically retrieved
Return type :
str
get_package_version_context @classmethod
Method to improve the context by giving the version of the provided pip packages installed in the lab.
pip_package_names :
List
Return type :
str