Skip to content

brooks-builds/ai_agent_with_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building an AI Agent from Scratch in Rust

Plan

  • 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
  • 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
  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages