Learn Rust OpenAI API - Building AI Buddy from Scratch!!!

Опубликовано: 11 Февраль 2026
на канале: Jeremy Chone
10,107
322

Building a custom Rust AI Assistant from scratch using the OpenAI Assistant API, with lots of best practice tips and techniques.

GitHub Repo: https://github.com/rust10x/rust-ai-bu...

Note: Main branch was updated with multi-crates for future, so, the E01 tag link above maps to this video.

00:00:00 - Intro
00:01:10 - Dependencies
00:02:23 - Rust - Error Model "Trick"
00:05:52 - AI Service - Client
00:12:58 - Assistant - Create
00:24:27 - Assistant - Load or Create (find assistant by name)
00:39:46 - Assistant - Upload Instructions
00:41:43 - Assistant - Create Thread
00:43:39 - Assistant - Run Thread
01:02:17 - Assistant - First Run Thread / Message
01:03:38 - Buddy - Config & Data Dir
01:18:49 - Utils - Files (parsing, bundling)
01:46:44 - Utils - Term (prompts and icons)
01:53:05 - Buddy - Init from dir
01:55:30 - Buddy - Upload Instructions
01:58:44 - Buddy - Conversation & Chat
02:03:46 - Prompt - Command / Loop
02:13:12 - First Prompt Test
02:13:58 - Assistant/Buddy - Upload Bundle
02:49:21 - Assistant Delete
02:52:44 - Final Demo / Test

Patreon -   / jeremychone   - Any help is a big help (for Rust educational content for production coding)

Jeremy Chone:

Patreon -   / jeremychone   - Any help is a big help (for Rust educational content for production coding)
Twitter -   / jeremychone  
Discord general-rust -   / discord  
Discord rust10x -   / discord  
Rust10x - https://rust10x.com - Rust resources for production coding.

Rust10x production coding:

Episode 01:    • Rust Axum Production Coding (E01 - Rust We...  
Episode 02:    • Rust Sea-Query + SQLX + ModQL (E02 - Produ...  
Episode 03:    • Rust Workspace Production By Example (E03 ...  
Episode 04:    • Rust Argon 2 Password Hashing with Multi-S...  
Episode 05.1:    • Rust RPC Router - Axum/Tower/Bevy Style (E05)  


Web Site: https://rust10x.com/web-app
GitHub: https://github.com/rust10x/rust-web-app
Discord rust10x -   / discord  
Patreon -   / jeremychone   - Any help is a big help (for Rust Production Coding educational content)

Other

Big thanks to CrabNebula (https://crabnebula.dev/) for sponsoring this video.

Other popular Rust Programming videos:

Rust Web App Production Coding Blueprint -    • Rust Axum Production Coding (E01 - Rust We...  
Rust Axum - Full Course -    • Rust Axum Full Course - Web Development (G...  
Rust Type State Builder Pattern -    • Rust Programming: TypeState Builder Patter...  
Quick Start Code Layout -    • Rust - Simple Code Boilerplate & Structure...  
AWESOME-APP Full Overview - Rust template for building Awesome Desktop Application:    • Building Awesome Desktop App with Rust, Ta...  
Tauri Quick Introduction (Desktop App wit Rust Programming):    • Rust Tauri 1.0 - Quick Intro - Rust Deskto...  
Rust Web App tutorials series:    • Rust Web App - 1/3 - Data Access  
Rust Bevy Full Tutorial - Game Development with Rust:    • Rust Bevy Full Tutorial - Game Development...  
Rust for Java Developers series:    • Rust for Java Developers 1/3 - Introductio...  

Playlists:

Rust Web App Production Coding Series:    • JC - Rust Production Coding - Web App Series  
Rust For Desktop App:    • JC - Rust Programming for Desktop App  
Everything Rust Programming - Tutorials, Courses, Tips, Examples:    • JC - Rust - Everything Rust Programming - ...  
Rust Programming for Web Development:    • JC - Rust Programming for Web Development  
Rust Courses:    • Rust Course 2021 by the book | RustLang  
Rust for Java Developers:    • Rust for Java Developers  


Rust10x - Coding Resources for Production Coding in Rust. ➜ https://rust10x.com

Other notes:

ScreenBrush for the green lines. (Gromit seems to be the equivalent on Linux)
Sketchapp for some graphics.
Davinci Resolve and Fusion video editing.
VSCode with Google Material icon themes (with some customization)