Rust AI Function Calling - Full Tutorial (with async-openai) @JeremyChone
Rust AI Function Calling - Full Tutorial (with async-openai)  @JeremyChone
Uploaded March 2024 | Updated November 2026, 1 day ago
Full tutorial on coding AI function calling in Rust programming. We will be using the OpenAI API, but similar approaches can be applied with Mistral, Mixtral, LLAMA, Gemini, and many other LLMs.

GitHub repo: github.com/jeremychone-channel/rust-xp-ai-function

Rust10x extension: rust10x.com/vscode

This video includes 6 chapters coded as examples. See below for the chapter/section markers.

- 00:00:00 Overview
- 00:01:36 C00 - Setup - Cargo.toml / dependencies
- 00:03:50 C00 Setup - Error.rs
- 00:07:11 C01 - Simple Chat
- 00:23:09 C02 - Tool Calls
- 00:34:23 C03 - Tool Responses
- 00:52:11 C04 - Conv refactoring
- 01:03:36 C05.1 - Continue refactor for schema.rs
- 01:14:24 C05.2 - Schema.rs and Spec
- 01:31:09 C05.3 - into spec params
- 01:46:50 C06.1 - joinset - concurrent OpenAI Request
- 01:51:44 C06.2 - Bonus - rpc_router state (i.e. resources)

rust10x.com for more production coding in Rust.

Dev Note on Rust Analzyer - [16962 - Type inlays are not clickable anymore (since 2024-03-24 release)](github.com/rust-lang/rust-analyzer/issues/16962)

== Jeremy Chone:

- Patreon - patreon.com/jeremychone - Any help is a big help (for Rust educational content)
- Twitter - twitter.com/jeremychone
- Discord general-rust - discord.gg/W2besKCzjx
- Discord rust10x - discord.gg/XuKWrNGKpC
- Rust10x - rust10x.com - Rust resources for production coding.

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

== Rust10x AI / OpenAI / Ollama

- Rust OpenAI API Tutorial: youtube.com/watch?v=PHbCmIckV20&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q

- Rust Ollama Tutorial: youtu.be/OcH-zT5VNgM

== Rust10x Web App production coding:

Episode 01: youtube.com/watch?v=3cA_mk4vdWY&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 02: youtube.com/watch?v=-dMH9UiwKqg&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 03: youtube.com/watch?v=zUxF0kvydJs&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 04: youtube.com/watch?v=3E0zK5h9zEs&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 05.1: youtube.com/watch?v=Gc5Nj5LJe1U&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q


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

== Other

Other popular Rust Programming videos:

- Rust Web App Production Coding Blueprint - youtube.com/watch?v=3cA_mk4vdWY&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust Axum - Full Course - youtube.com/watch?v=XZtlD_m59sM&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust Type State Builder Pattern - youtube.com/watch?v=pwmIQzLuYl0&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Quick Start Code Layout - youtube.com/watch?v=oxx7MmN4Ib0&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- AWESOME-APP Full Overview - Rust template for building Awesome Desktop Application: youtube.com/watch?v=BY_ZjPGqJJk&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Tauri Quick Introduction (Desktop App wit Rust Programming): youtube.com/watch?v=kRoGYgAuZQE&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust Web App tutorials series: youtube.com/watch?v=VIig9IcQ-w8&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q&list=PL7r-PXl6ZPcCLvwpdD2Vj1O4CyoFTiHKd
- Rust Bevy Full Tutorial - Game Development with Rust: youtube.com/watch?v=j7qHwb7geIM&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust for Java Developers series: youtube.com/watch?v=iFdh4sPC5Tg&list=PL7r-PXl6ZPcD63DS2djSiz4SlXkaTfobc&index=2&t=654s

Playlists:

- Rust Web App Production Coding Series: youtube.com/playlist?list=PL7r-PXl6ZPcCTTxjmsb9bFZB9i01fAtI7
- Rust For Desktop App: youtube.com/playlist?list=PL7r-PXl6ZPcAQAi1lfVrtHCSbaJbwZ4O8
- Everything Rust Programming - Tutorials, Courses, Tips, Examples: youtube.com/playlist?list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust Programming for Web Development: youtube.com/playlist?list=PL7r-PXl6ZPcCLvwpdD2Vj1O4CyoFTiHKd
- Rust Courses: youtube.com/playlist?list=PL7r-PXl6ZPcB4jn1_VR3D8tSK9DxOaiQE
- Rust for Java Developers: youtube.com/playlist?list=PL7r-PXl6ZPcD63DS2djSiz4SlXkaTfobc


Rust10x - Coding Resources for Production Coding in Rust. ➜ 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)
Rust AI Function Calling - Full Tutorial (with async-openai)JC Rust Live Coding ➜ Redis / ValKey Stream - Part 2Full Stack Quickstart 2021 - Modern node.js / typescript & Native Web ComponentsFlattening The Software Complexity Curve - Top Down ViewRust Argon 2 Password Hashing with Multi-Scheme pattern (E04)Rust Axum Production Coding (E01 - Rust Web App Production Coding)How does Rust make me write GOOD CODE ?Bouncing Donut Chart with Native Web Components / Canvas / TypeScript / d3-shape (NO FRAMEWORK)Demystifying Serverless vs. Server/EKS/Fargate - When to Use EachRust Bevy Tutorial 3/3 - Enemy Formation & AttackRust genai - ModelMapper (Model Aliasing) - Code DemoRust IPC - Types, Crates, Patterns
Jeremy Chone |

Rust AI Function Calling - Full Tutorial (with async-openai)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER