client-tools

command
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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 .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL