Skip to content

JavaScript SDK API ​

The current API reference is the SDK source code and TypeScript type definitions; documentation will be filled in gradually.

Core Objects ​

  • CroupierClient: connects to the Agent and maintains the session
  • ClientConfig: client connection and identity configuration
  • registerFunction(...): registers a function handler
  • registerFromOpenAPI(...): imports and registers functions locally from an OpenAPI 3 spec (Descriptor v2)

Suggested Reading Order ​

  1. Start with the JavaScript SDK landing page
  2. Then the Guide
  3. Finally, read the type definitions and implementation alongside sdks/js/src

Additional Pages ​