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.