🚩Quick Start
Cloud4.ai (C4AI) SDK Quick Start Guide
Last updated
Cloud4.ai (C4AI) SDK Quick Start Guide
Last updated
Welcome to the Cloud4.ai (C4AI) SDK Quick Start guide! This guide will walk you through the setup process and provide examples for using the C4AI SDK. The SDK provides a comprehensive set of functionality to communicate with C4AI managed Services using Object-Oriented Programming (OOP) style. Leveraging entities and the request structure, you can construct complex pipelines for parameter injection, service execution, and AI management with ease.
The SDK is built on the Command concept. To make requests to the system, you need to create a command object and pass it through the universal entry point under the EES service. This quickstart guide offers simple examples of execution and request structure. For more details, explore each service directly.
Note: For further details, explore each service directly.
To get started, you need to install the C4AI SDK package. You can install it via npm:
Before using the SDK, you need to authenticate your application.
To locate your credentials, visit the following link: API Credentials or learn more about setting up organization and credentials:
In a basic scenario, you can provide credentials via environment variables. To load them, you can utilize packages like dotenv (dotenv) or similar. Regardless of the approach used to provide credentials, the SDK will automatically authenticate during the execution of actual commands.
Note: For more information on SDK configurations and authentication approaches, refer to the section: Authentication
Here's a simple example of usage using Elastic Endpoint (EES) and AI API Connector (AAC):
That's it! You're now ready to start using the Cloud4.ai SDK in your applications.