Kronk AI: Building a Basic AI Chat Agent with Message History Pt. 2 @ardanlabs
Kronk AI: Building a Basic AI Chat Agent with Message History Pt. 2  @ardanlabs
Uploaded May 2026 | Updated September 2026, 2 weeks ago
In this clip from Bill's Ultimate AI Workshop, he dives into the core mechanics of implementing AI tool calling "step two" of building a custom AI chat agent. Using a simple weather-checking tool, we explore how to configure your model to request external tools.

Bill covers the exact steps needed to manually maintain your context window during chat completions, including how to capture the model's requested tool call and properly append the tool ID, function name, and arguments back into the conversation history. We also look at how to return structured JSON data to the model under the "tool" role so it can confidently answer the user's original prompt.

What you'll learn in this clip:
• Phase 2: Setting up tool calling mechanics and parameters
• Handling potential multi-tool calls using slices
• The critical role of Tool IDs and updating the conversation history
• Feeding structured data responses back into the context window
• Why simple tool parameters prevent models from hallucinating or failing

A crucial best practice for AI tool design Bill discusses: why you should build small, "Linux-like" tools with simple parameters to ensure that even lower-level models can reason effectively without making errors.

---

Explore more from Ardan Labs
Online Courses: ardanlabs.com/education
Live Training Events: ardanlabs.com/live-training-events
Technical Blog: ardanlabs.com/blog
Github: github.com/ardanlabs

---

Connect with Ardan Labs
Website: ardanlabs.com
X: https://x.com/ardanlabs
LinkedIn: linkedin.com/company/ardanlabs
Kronk AI: kronkai.com

#AIChatAgent #golang #llm #sse #machinelearning
Kronk AI: Building a Basic AI Chat Agent with Message History Pt. 2Planning Ahead to Avoid BurnoutKronk AI: Building a Basic AI Chat Agent with Message History Pt. 1Importance of Social Interaction with Remote WorkHow LLMs Actually Work: Randomness, Logic, & Context LimitsStop Panicking About AI (Everyone is Behind)The AI Model Roller CoasterIntegrity in Business MattersUltimate Go Software Design LIVE: Real Time Chat App Ep.43Writing, Technology, and a Nomadic Lifestyle with Mike ElganUltimate Go Software Design LIVE: Ep.51Match Your AI Models to Your Needs
Ardan Labs |

Kronk AI: Building a Basic AI Chat Agent with Message History Pt. 2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER