@@ -111,6 +111,42 @@ After generating a project, you can add new features:
111
111
- ** GitHub Actions** : Set up CI/CD workflows
112
112
- ** Documentation** : Create documentation structure and templates
113
113
114
+ ###Tool Calls
115
+
116
+ The ProjectGenerator class defines tools that AI Coder can call:
117
+
118
+ - ` read_file ` : Read the contents of a file
119
+ - ` get_file_metadata ` : Get metadata for a file
120
+ - ` list_directory_contents ` : List files and directories
121
+ - ` write_to_file ` : Write content to a file
122
+ - ` create_directory ` : Create a new directory
123
+ - ` run_command ` : Execute a shell command
124
+
125
+ ##How It Works
126
+
127
+ 1 . ** Initialization** :
128
+
129
+ - The tool loads the OpenAI API key from the` .env ` file
130
+ - It initializes the ProjectGenerator class with this key
131
+
132
+ 2 . ** User Input** :
133
+
134
+ - The CLI collects project specifications from the user
135
+ - Users select project type, name, description, and features
136
+
137
+ 3 . ** Project Generation** :
138
+
139
+ - The tool sends prompts to GPT-4o with project specifications
140
+ - GPT-4o responds with tool calls to create files and directories
141
+ - The tool executes these calls to build the project structure
142
+ - Progress is displayed in real-time
143
+
144
+ 4 . ** Feature Addition** :
145
+ - Users can describe features to add to the generated project
146
+ - The tool analyzes the project structure
147
+ - AI generates code to implement the feature
148
+ - The tool integrates the new code into the project
149
+
114
150
##📦 Dependencies
115
151
116
152
- ** rich** : Enhanced terminal output with colors and formatting