MCPcopy Create free account

hub / github.com/MarketSquare/robotframework-ai / functions

Functions147 in github.com/MarketSquare/robotframework-ai

↓ 13 callersMethodvalidate_input_arguments
(self, **kwargs)
src/RobotFrameworkAI/modules/Module.py:128
↓ 11 callersMethodget_default_values_for_arguments
Gets default values for arguments Returns a list with the new argument values in the same order as the arguments. Example u
src/RobotFrameworkAI/modules/Module.py:94
↓ 9 callersMethodmake_assistant_call
This method functions as base method for the keywords, containing common logic shared between all keywords (besides setters) This me
src/RobotFrameworkAI/modules/assistant/Assistant.py:38
↓ 4 callersFunctionsetup_logging
Sets up the necessary evironment to allow logging. This will create a logs folder and a log file with the date of creation as its name.
src/RobotFrameworkAI/logger/logger.py:89
↓ 3 callersMethodcall_ai_tool
Sends the prompt to the right AI model service class Depending on the AI model assigned to the Prompt sends the Prompt to the right
src/RobotFrameworkAI/ai_interface/AI_Interface.py:94
↓ 3 callersMethodcreate_new_thread
(self, _ = None)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:137
↓ 3 callersMethodcreate_prompt
( self, ai_tool:str, ai_model:str, system_message:str,
src/RobotFrameworkAI/modules/Module.py:59
↓ 3 callersMethodformat_prompt_message
Formats and returns a singular message in the way the OpenAI API expects it to
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAITool.py:16
↓ 3 callersMethodset_ai_model
Setter for the AI Model argument. ai_model: str: The AI model to be used, e.g. "openai", "gemini", "copilot", etc. Currently supporti
src/RobotFrameworkAI/modules/Module.py:181
↓ 3 callersMethodset_message
Setter for the Message argument. message: str: The message you want to send to the AI model, e.g., "What is the weather today?".
src/RobotFrameworkAI/modules/Module.py:275
↓ 2 callersMethodgenerate_response
Chatbot ======= Chatbot_ is a simple response generating module for `Robot Framework`_ similar to ChatGPT on the we
src/RobotFrameworkAI/modules/chatbot/Chatbot.py:34
↓ 2 callersMethodget_assistant
(self, id)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:155
↓ 2 callersMethodhas_allowed_extension
Check if the file has one of the allowed extensions. Parameters: - file_path (str): The name of the file. Returns:
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:92
↓ 2 callersMethodprepare_files
f""" Given a list of paths to folders and files. Returns a list of tuples with the path to each file and its content.
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:58
↓ 2 callersFunctionstring_to_ascii
(str, empty_cols=0)
src/RobotFrameworkAI/logger/ascii/ascii.py:12
↓ 1 callersMethod__init__
(self)
src/RobotFrameworkAI/modules/Module.py:45
↓ 1 callersMethod_discover_ai_models
Dynamically collects all AIModelStrategy implementations in the ai_model_service folder. A dictionary will be created with the name
src/RobotFrameworkAI/ai_interface/AI_Interface.py:57
↓ 1 callersMethod_discover_test_data_generators
Dynamically collects all TestDataGenerator implementations in the test_data_generators folder. A dictionary will be created with the
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:40
↓ 1 callersMethod_discover_tools
Dynamically collects all tool implementations in the specified package A dictionary will be created with the tool attribute as the k
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelStrategy.py:25
↓ 1 callersMethodadd_message_to_thread
(self, message, file_paths=None)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:165
↓ 1 callersFunctionassistant
()
src/main.py:32
↓ 1 callersMethodattach_files
Attaches files to the active assistant These files can be used by the assistant in any thread as opposed to sending files with a pro
src/RobotFrameworkAI/modules/assistant/Assistant.py:206
↓ 1 callersFunctionchatbot
()
src/main.py:19
↓ 1 callersMethodcollect_files_from_folder
Given a path to a folder, will look for all files within that folder and all its subfolders. Returns a list with the path to every fi
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:77
↓ 1 callersMethodcreate_assistant
Creates a new assistant and returns its Id This new assistant will become the active assistant and a new thread will be created.
src/RobotFrameworkAI/modules/assistant/Assistant.py:78
↓ 1 callersFunctioncreate_handlers
Creates the handlers for logging to the console and a file. Will log to the logs folder where it creates a log file with the date of creatio
src/RobotFrameworkAI/logger/logger.py:61
↓ 1 callersMethodcreate_prompt_messages
(self, amount:int, format:str, address_kwargs:dict)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/AddressGenerator.py:20
↓ 1 callersMethoddelete_assistant
Deletes the active assistant After deleting the active assistant, there will be no active assistant. Either create a new ass
src/RobotFrameworkAI/modules/assistant/Assistant.py:159
↓ 1 callersMethodformat
(self, record)
src/RobotFrameworkAI/logger/logger.py:19
↓ 1 callersMethodformat_prompt_messages
Formats and returns messages the way the OpenAI API expects it to Returns a list of singular messages which always includes a user m
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAITool.py:22
↓ 1 callersMethodformat_response
(self, response)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/AddressGenerator.py:31
↓ 1 callersMethodgenerate_test_data
RealTestDataGenerator ===================== RealTestDataGenerator can generate test data for the Robot Framework similar to
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:78
↓ 1 callersFunctionget_ascii_art
(char)
src/RobotFrameworkAI/logger/ascii/ascii.py:4
↓ 1 callersFunctionget_long_description
()
setup.py:16
↓ 1 callersFunctionpytests
()
src/main.py:48
↓ 1 callersMethodread_file_with_placeholder_content_if_empty
Read a file and return its content. If the file is empty, return placeholder content. Parameters: - file_path (str): The pat
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:105
↓ 1 callersFunctionreal_test_data_generator
()
src/main.py:10
↓ 1 callersFunctionrobot_tests
(s='')
src/main.py:45
↓ 1 callersMethodsend_message
Sends a prompt to the active assistant and returns its response By supplying file_paths as an argument in the method call, files can
src/RobotFrameworkAI/modules/assistant/Assistant.py:130
↓ 1 callersMethodset_amount
Setter for the Amount argument. amount: int: The amount of rows of test data to generate. Default = 3. See the RobotF
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:234
↓ 1 callersMethodset_history
(self, prompt:object, response:object, keep_history:bool)
src/RobotFrameworkAI/modules/chatbot/Chatbot.py:162
↓ 1 callersMethodset_instructions
Setter for the Instructions argument. instructions: str: The instructions to be assigned. See the RobotFrameworkAI docs for m
src/RobotFrameworkAI/modules/assistant/Assistant.py:395
↓ 1 callersMethodset_keep_history
Setter for the Keep History argument. keep_history: bool: A flag to keep the chat history of previous messages. When setting this to
src/RobotFrameworkAI/modules/chatbot/Chatbot.py:180
↓ 1 callersMethodset_kwarg
Setter for Kwarg arguments. Give the name of the kwarg argument and the value you want to set it to. E.g., Set Kwarg cou
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:256
↓ 1 callersMethodset_name
Setter for the Name argument. name: str: The name to be assigned. See the RobotFrameworkAI docs for more information about se
src/RobotFrameworkAI/modules/assistant/Assistant.py:385
↓ 1 callersMethodset_type
Setter for the Type argument. type: str: The type of test data to create, e.g., "address", "user_data", etc. Currently supporting: "a
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:224
↓ 1 callersMethodupdate_assistant
Updates the parameters of the active assistant Accepts the same arguments as the Create Assistant keyword The follo
src/RobotFrameworkAI/modules/assistant/Assistant.py:295
↓ 1 callersMethodupload_file
(self, file)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:158
↓ 1 callersMethodvalidate_model
Validates whether the model of the AI model is valid. A list of all valid models can be found in the respective tool class of the AI
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelStrategy.py:95
↓ 1 callersMethodvalidate_tool
Validates whether the tool of the AI model is valid A list of all valid models can be found in the respective tool folder of the AI
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelStrategy.py:77
↓ 1 callersFunctionwrite_ascii_to_file
Create ascii art on top of the file showing the word --LOGS-- followed by the current date.
src/RobotFrameworkAI/logger/logger.py:120
Method__init__
Initializes the RobotFrameworkAI library with necessary components like RealTestDataGenerator, Chatbot, and Assistant, which are inte
src/RobotFrameworkAI/__init__.py:19
Method__init__
(self, error_message)
src/RobotFrameworkAI/modules/Module.py:288
Method__init__
(self)
src/RobotFrameworkAI/modules/chatbot/Chatbot.py:22
Method__init__
(self)
src/RobotFrameworkAI/modules/real_test_data_generator/RealTestDataGenerator.py:29
Method__init__
(self)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/UserDataGenerator.py:10
Method__init__
(self)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/TestDataGenerator.py:24
Method__init__
(self)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/AddressGenerator.py:16
Method__init__
(self)
src/RobotFrameworkAI/modules/assistant/Assistant.py:28
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/AI_Interface.py:54
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_services/GeminiService.py:15
Method__init__
(self, openai_key: Optional[str] = None)
src/RobotFrameworkAI/ai_interface/ai_model_services/OpenAIService.py:30
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelTool.py:22
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelStrategy.py:21
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAITool.py:10
Method__init__
(self, client)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:16
Method__init__
(self, client)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAITextGenerator.py:18
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_tools/TextGeneratorTool.py:10
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:29
Method__init__
(self)
src/RobotFrameworkAI/ai_interface/ai_model_tools/AIToolType.py:22
Method__init__
(self)
atest/listeners/LoggerListener.py:10
Method__post_init__
(self)
src/RobotFrameworkAI/objects/prompt/ai_tool_data/AssistantData.py:23
Methodadd_message_to_thread
Adds a message to a thread Optionally adds files to that same thread.
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:207
Methodattach_files
(self, prompt)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:104
Methodattach_files
Attaches files to the active assistant These files can be used by the assistant in any thread as opposed to sending files with a pro
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:156
Methodcall_ai_tool
Sends the prompt to the right AI tool class Depending on the AI tool assigned to the Prompt sends the Prompt to the right AI tool cl
src/RobotFrameworkAI/ai_interface/ai_model_services/AIModelStrategy.py:62
Methodcall_ai_tool
(self, prompt)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAITextGenerator.py:23
Methodcall_ai_tool
Sends a Prompt to the AI model and creates and returns a Response
src/RobotFrameworkAI/ai_interface/ai_model_tools/TextGeneratorTool.py:14
Methodcall_ai_tool
Calls the method that handles the handles the right action as per the Prompt The action attribute from the Prompt can have several d
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:35
Methodcall_ai_tool
Makes a call to the AI tool
src/RobotFrameworkAI/ai_interface/ai_model_tools/AIToolType.py:25
Functionconfigure_logging
()
utest/conftest.py:9
Methodcreate_assistant
(self, prompt)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:23
Methodcreate_assistant
Creates a new assistant and returns its Id This new assistant will become the active assistant and a new thread will be created.
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:121
Methodcreate_new_thread
Create a new thread Creating a new thread effectively restarts the conversation. The following arguments can be used (argum
src/RobotFrameworkAI/modules/assistant/Assistant.py:252
Methodcreate_new_thread
Create a new thread Creating a new thread effectively restarts the conversation.
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:170
Methodcreate_prompt_messages
(self, amount, format)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/UserDataGenerator.py:14
Methodcreate_prompt_messages
(self, amount, format)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/TestDataGenerator.py:27
Methoddelete_assistant
(self, _ = None)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:80
Methoddelete_assistant
Deletes the active assistant After deleting the active assistant, there will be no active assistant. Either create a new ass
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:138
Methoddelete_assistant_by_id
Deletes the assistant with the specified Id If that assistant is also the active assistant, there will be no active assistant.
src/RobotFrameworkAI/modules/assistant/Assistant.py:181
Methoddelete_assistant_by_id
(self, prompt)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:86
Methoddelete_assistant_by_id
Deletes the assistant with the specified Id If that assistant is also the active assistant, there will be no active assistant.
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:147
Methodemit
(self, record)
src/RobotFrameworkAI/logger/logger.py:50
Methodend_suite
(self, name, attributes)
atest/listeners/LoggerListener.py:25
Methodformat_response
(self)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/UserDataGenerator.py:17
Methodformat_response
(self, response)
src/RobotFrameworkAI/modules/real_test_data_generator/test_data_generators/TestDataGenerator.py:30
Methodget_active_assistant_id
Returns the Id of the active assistant The following arguments can be used (arguments with a * are required): - *ai_model: s
src/RobotFrameworkAI/modules/assistant/Assistant.py:233
Methodget_active_assistant_id
(self, _ = None)
src/RobotFrameworkAI/ai_interface/ai_model_services/openai_tools/OpenAIAssistant.py:75
Methodget_active_assistant_id
Returns the Id of the active assistant
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:164
Methodget_assistant
Returns the assistant with the specified Id
src/RobotFrameworkAI/ai_interface/ai_model_tools/AssistantTool.py:195
next →1–100 of 147, ranked by callers