SDKs

Official Python and TypeScript SDKs for the Classic API with streaming, auth, and error handling.

These SDK pages cover the Classic API SDKs in Python and TypeScript. The SDKs take care of authentication, request formatting, response parsing, and error handling so you can focus on building AI-powered applications.

Available SDKs

Python SDK

The official Python SDK for the Amigo API, supporting both synchronous and asynchronous operations.

Property
Value

Package

amigo_sdk

Registry

Python Version

3.11+

TypeScript SDK

The official TypeScript/JavaScript SDK for the Amigo API, with full type safety and modern async/await patterns.

Property
Value

Package

@amigo-ai/sdk

Registry

Node.js Version

18+

Key Features

Both SDKs provide:

Auto-generated types. Types are generated from the latest Amigo OpenAPI schema, so they stay in sync with the API.

  • Streaming support. Real-time conversation events with built-in NDJSON parsing.

  • Error handling. Typed error handling for all API responses.

  • Authentication. Automated API key-based authentication and token management.

  • Configuration. Environment variable support with flexible configuration options.

  • Resource coverage. Complete access to Amigo API resources (conversations, users, services, organizations).

API Compatibility

Getting Started

  1. Installation. Set up the SDK in your project.

  2. Configuration. Configure authentication and client options.

  3. Hello World. Create your first conversation.

  4. Error Handling. Handle errors and edge cases.

Production Examples

The SDK repositories include working examples that demonstrate production-ready patterns.

Repository: github.com/amigo-ai/amigo-python-sdk/examples

  • Project structure best practices

  • Environment configuration

  • Error handling patterns

  • Async/await implementations

Support & Resources

Resource
Link

Python SDK Issues

TypeScript SDK Issues

Enterprise Support

Contact support through the Amigo dashboard

API Reference

License

Both SDKs are licensed under the MIT License.

Last updated

Was this helpful?