Documentation
¶
Overview ¶
Package main demonstrates client-side tool execution with the PromptKit SDK.
This example shows two modes:
- Synchronous: OnClientTool handler runs immediately when the LLM invokes the tool
- Deferred: No handler registered; pipeline suspends, caller provides result, then resumes
Run with:
export OPENAI_API_KEY=your-key go run .
Click to show internal directories.
Click to hide internal directories.