- Infinite Loop to
- Get a prompt from the user
- send it to the AI
- Process the response
- add it to context
- Print out the response
- Process the response
- Advertise random number generator tool
- Create tool
- Add the tool to the context
- Handle the tool call
- for each tool call
- run the tool call
- Add the tool call to the context
- Send result of tool calls to AI
- handle AI response
- Add the response message to context
- print response
- handle AI response
- for each tool call
- Allow AI to continue running tools until it's done
- Loop around the for each tool call
- If previous response from AI called a tool
- Continue
- Else break
- If previous response from AI called a tool
- Loop around the for each tool call
brooks-builds/ai_agent_with_rust
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|