SDK v2 Tutorials
Step-by-step tutorials to learn the PromptKit SDK v2 pack-first architecture.
Learning Path
Follow these tutorials in order for a structured learning experience:
Getting Started
-
Your First Conversation
Build a chatbot in 5 lines of code. Learnsdk.Open()and basic message sending. -
Streaming Responses
Implement real-time streaming withconv.Stream(). Display incremental results.
Building Features
-
Tool Integration
Add function calling withOnTool(). Register handlers and build a weather assistant. -
Variables and Templates
UseSetVar()/GetVar()for template variables. Manage conversation context.
Advanced Topics
-
Human-in-the-Loop Implement approval workflows with
OnToolAsync(). Build safe AI agents. -
Working with Media Handle images and multimodal content. Optimize memory with storage.
Voice & Audio
-
Audio Sessions Build voice-enabled conversations with VAD and ASM modes. Real-time audio streaming.
-
TTS Integration Add text-to-speech to responses. Configure voices, formats, and providers.
-
Variable Providers Inject dynamic context with RAG, database lookups, and session state.
Prerequisites
- Go 1.21 or higher
- Basic Go programming knowledge
- API key for OpenAI, Anthropic, or Google
What You’ll Build
By completing these tutorials, you’ll:
- Create conversational AI applications with minimal code
- Implement streaming and tool calling
- Build approval workflows for sensitive operations
- Understand SDK v2 architecture and patterns
Getting Help
- Check the How-To Guides for specific tasks
- See the Reference Documentation for API details
- Review SDK Examples for complete applications
Start with Your First Conversation →