Now that our LLM is able to specify a function call to the get_files_info function, let's give it the ability to call the other functions as well.
schema_get_file_contentschema_run_python_fileschema_write_file- List files and directories
Update it to have all four operations:
- List files and directories
- Read file contents
- Execute Python files with optional arguments
- Write or overwrite files
get_file_content({'file_path': 'main.py'})write_file({'file_path': 'main.txt', 'content': 'hello'})run_python_file({'file_path': 'main.py'})get_files_info({'directory': 'pkg'})All the LLM is expected to do here is to choose which function to call based on the user's request. We'll have it actually call the function later.
Run and submit the CLI tests.