Skip to content

Commit fa0881b

Browse files
committed
Add Beta annotation to new public API
1 parent 5f42d9d commit fa0881b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

core/src/main/java/com/sap/ai/sdk/core/commons/ClientError.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
package com.sap.ai.sdk.core.commons;
22

3+
import com.google.common.annotations.Beta;
34
import javax.annotation.Nonnull;
45

56
/**
67
* Generic class that contains a JSON error response.
78
*
89
* @since 1.1.0
910
*/
11+
@Beta
12+
@FunctionalInterface
1013
public interface ClientError {
1114
/**
1215
* Get the error message.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package com.sap.ai.sdk.core.commons;
22

3+
import com.google.common.annotations.Beta;
34
import lombok.experimental.StandardException;
45

56
/**
67
* Generic exception for errors occurring when using AI SDK clients.
78
*
89
* @since 1.1.0
910
*/
11+
@Beta
1012
@StandardException
1113
public class ClientException extends RuntimeException {}

core/src/main/java/com/sap/ai/sdk/core/commons/ClientResponseHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import com.fasterxml.jackson.core.JsonProcessingException;
66
import com.fasterxml.jackson.databind.ObjectMapper;
7+
import com.google.common.annotations.Beta;
78
import io.vavr.control.Try;
89
import java.io.IOException;
910
import java.nio.charset.StandardCharsets;
@@ -26,6 +27,7 @@
2627
* @param <E> The type of the exception to throw
2728
* @since 1.1.0
2829
*/
30+
@Beta
2931
@Slf4j
3032
@RequiredArgsConstructor
3133
public class ClientResponseHandler<T, E extends ClientException>

0 commit comments

Comments
 (0)