Go API Reference
Complete API reference for the Autohand SDK Go. The SDK spawns the Autohand CLI as a subprocess and communicates over JSON-RPC.
Installation
Config
All fields are optional.
Low-Level API
AutohandSDK
Prompting
Control Methods
Information Methods
High-Level API
Agent
Run
Events
StreamPrompt and Run.Stream return channels of typed events:
MessageUpdateEvent- Streaming assistant text deltaToolStartEvent- Tool execution startedToolEndEvent- Tool execution completedPermissionRequestEvent- Runtime pause for approvalErrorEvent- Transport, runtime, or execution failure
Error Handling
The SDK returns errors from the standard error interface.