SAP AI SDK for JavaScript

website·Indexed 29 days ago

https://sap.github.io/cloud-sdk/

API documentation for the SAP AI SDK for JavaScript v2.15.0 and Java, featuring reference materials for model deployments, resource management, and AI-related API variables such as DeploymentApi, ExecutionApi, and ModelConfig.

Tokens
3.5M
Snippets
20.4K
Records
29.4K
Agent score
71%

What's inside SAP AI SDK

  1. Overview of SAP Cloud SDK for Java

    v4
    The SAP Cloud SDK for Java is designed to build connected, resilient, and multi-tenant SaaS applications on the SAP Business Technology Platform (SAP BTP). It abstracts the complexity of outbound requests, handling authorization and token flows automatically via the SAP BTP Destination and Connectivity services.
  2. Overview of SAP Cloud SDK for AI (SAP AI SDK)

    v1
    The SAP Cloud SDK for AI (SAP AI SDK) allows developers to integrate AI capabilities, such as chat completion, into JavaScript and TypeScript business applications using the SAP Generative AI Hub. It simplifies interaction with SAP AI Core and provides built-in support for templating, grounding, data masking, and content filtering.
  3. Overview of com.sap.ai.sdk.core.common package components

    v2

    The com.sap.ai.sdk.core.common package provides core common utilities for the SAP AI SDK, including response handling, request logging, and exception management. Key components include:

    Classes:

    • ClientResponseHandler<T,R,E>: Base handler for client responses (implements org.apache.hc.core5.http.io.HttpClientResponseHandler).
    • ClientStreamingHandler<D,R,E>: Extends ClientResponseHandler for streaming responses.
    • RequestLogContext: Manages context for request logging.
    • ClientException: A runtime exception used for client-side errors.

    Interfaces:

    • ClientError: Defines client error structures.
    • ClientExceptionFactory<E,R>: Factory for creating client exceptions.
    • StreamedDelta: Interface for handling streamed delta updates.

    Enums:

    • RequestLogContext.Mode: Defines logging modes for request contexts.
    • RequestLogContext.Service: Defines services associated with request logging contexts.
  4. Overview of SAP Cloud SDK for AI capabilities

    The SAP Cloud SDK for AI allows JavaScript and TypeScript developers to integrate AI capabilities (like chat completion) into business applications via the SAP Generative AI Hub. It simplifies interaction with SAP AI Core and provides built-in support for prompt templating, grounding, data masking, and content filtering.
  5. Overview of the SAP Cloud SDK

    v2
    The SAP Cloud SDK is a set of libraries designed to assist in the end-to-end development of applications on the SAP Business Technology Platform (BTP). It facilitates communication between these applications and SAP solutions and services, including SAP S/4HANA, SAP S/4HANA Cloud, and SAP SuccessFactors.
  6. Overview of SAP AI SDK Core Client API classes

    v2

    The com.sap.ai.sdk.core.client package provides a set of API client classes for interacting with SAP AI Core services. All these classes inherit from com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi. The available API clients include:

    • ApplicationApi: Manage applications
    • ArtifactApi: Manage artifacts
    • ConfigurationApi: Manage configurations
    • DeploymentApi: Manage deployments
    • DockerRegistrySecretApi: Manage Docker registry secrets
    • ExecutableApi: Manage executables
    • ExecutionApi: Manage executions
    • ExecutionScheduleApi: Manage execution schedules
    • FileApi: Manage files
    • KpiApi: Manage KPIs
    • MetaApi: Access metadata
    • MetricsApi: Access metrics
    • ObjectStoreSecretApi: Manage object store secrets
    • RepositoryApi: Manage repositories
    • ResourceApi: Manage resources
    • ResourceGroupApi: Manage resource groups
    • ResourceQuotaApi: Manage resource quotas
    • ScenarioApi: Manage scenarios
    • SecretApi: Manage secrets
    • ServiceApi: Manage services
    • TenantInfoApi: Access tenant information
  7. Overview of SAP Cloud SDK for JavaScript

    v3
    The SAP Cloud SDK for JavaScript is a set of libraries designed to reduce the effort of building applications on the SAP Business Technology Platform (SAP BTP). It abstracts common BTP tasks, such as connectivity and request execution, allowing developers to focus on business logic rather than boilerplate code.
  8. Overview of SAP Application Router

    The SAP Application Router (@sap/approuter) serves as the single entry point and reverse proxy for microservice-based applications. Its primary responsibilities include dispatching requests to backend microservices, authenticating users via JSON Web Tokens (JWT), and serving static content. If a request lacks a valid JWT, the router redirects the user to an Identity Provider (IdP) for authentication.
  9. Overview of AiCoreService

    v1
    The AiCoreService class in the com.sap.ai.sdk.core package provides connectivity convenience methods for SAP AI Core. It manages access to destinations targeting the AI Core service, loading base destinations from the environment or allowing the configuration of a custom base destination.