Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita1127b1

Browse files
committed
docs: update README with tool calls and project generation process
1 parentfdf058b commita1127b1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,42 @@ After generating a project, you can add new features:
111111
-**GitHub Actions**: Set up CI/CD workflows
112112
-**Documentation**: Create documentation structure and templates
113113

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+
114150
##📦 Dependencies
115151

116152
-**rich**: Enhanced terminal output with colors and formatting

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp