Skip to main content
Community Maintained - This SDK is functional but receives limited maintenance. For production use, we recommend the TypeScript SDK or Python SDK.
Contributions welcome! See the GitHub repository to contribute.

Client

The main client for interacting with Chucky in Go.

Installation

Import

Creating a Client

ClientOptions

Methods

CreateSession()

Create a new conversation session.

SessionOptions

Example


On()

Register event handlers.

ClientEventHandlers

Example


Close()

Close the client and all active sessions.

Token Management

CreateToken()

Create a JWT token for authentication.

CreateTokenOptions

Example


CreateBudget()

Create a budget from human-readable values.

CreateBudgetOptions

Complete Example