Refactor.
This commit is contained in:
		
							parent
							
								
									f57a174d0a
								
							
						
					
					
						commit
						2f8701fef3
					
				
							
								
								
									
										2
									
								
								openai.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								openai.h
									
									
									
									
									
								
							| @ -76,4 +76,4 @@ char* openai_chat(char* user_role, char* message_content) { | ||||
|     return strdup(content_str); | ||||
| } | ||||
| 
 | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
							
								
								
									
										4
									
								
								tools.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tools.h
									
									
									
									
									
								
							| @ -297,7 +297,7 @@ struct json_object *tool_description_directory_glob() { | ||||
| 
 | ||||
|     struct json_object *function = json_object_new_object(); | ||||
|     json_object_object_add(function, "name", json_object_new_string("directory_glob")); | ||||
|     json_object_object_add(function, "description", json_object_new_string("List the contents of a specified directory. "  | ||||
|     json_object_object_add(function, "description", json_object_new_string("List the contents of a specified directory in glob format. "  | ||||
|                 "Result is a json array containing objects with keys: name, modification_date(iso), creation_date(iso), type and size_bytes.")); | ||||
| 
 | ||||
|     struct json_object *parameters = json_object_new_object(); | ||||
| @ -306,7 +306,7 @@ struct json_object *tool_description_directory_glob() { | ||||
|     struct json_object *properties = json_object_new_object(); | ||||
|     struct json_object *directory = json_object_new_object(); | ||||
|     json_object_object_add(directory, "type", json_object_new_string("string")); | ||||
|     json_object_object_add(directory, "description", json_object_new_string("Path to the directory to list.")); | ||||
|     json_object_object_add(directory, "description", json_object_new_string("Path to the directory to list in glob format.")); | ||||
|     json_object_object_add(properties, "path", directory); | ||||
| 
 | ||||
|     json_object_object_add(parameters, "properties", properties); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user