From 7a6d445935d5f614b5dbb2755c0b339ad1879478 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:26:23 +0000 Subject: [PATCH] chore(internal): remove unused and expand used wildcard imports (#17) --- .../kotlin/com/anthropic/client/AnthropicClient.kt | 1 - .../com/anthropic/client/AnthropicClientAsync.kt | 1 - .../anthropic/client/AnthropicClientAsyncImpl.kt | 1 - .../com/anthropic/client/AnthropicClientImpl.kt | 1 - .../models/BetaMessageBatchCancelParams.kt | 1 - .../models/BetaMessageBatchCreateParams.kt | 1 - .../anthropic/models/BetaMessageBatchListParams.kt | 1 - .../models/BetaMessageBatchRetrieveParams.kt | 1 - .../models/BetaMessageCountTokensParams.kt | 1 - .../anthropic/models/BetaMessageCreateParams.kt | 1 - .../models/BetaPromptCachingMessageCreateParams.kt | 1 - .../com/anthropic/models/CompletionCreateParams.kt | 1 - .../com/anthropic/models/MessageCreateParams.kt | 1 - .../models/BetaMessageBatchCancelParamsTest.kt | 1 - .../models/BetaMessageBatchCreateParamsTest.kt | 1 - .../models/BetaMessageBatchListParamsTest.kt | 1 - .../models/BetaMessageBatchRetrieveParamsTest.kt | 1 - .../models/BetaMessageCountTokensParamsTest.kt | 1 - .../models/BetaMessageCreateParamsTest.kt | 1 - .../BetaPromptCachingMessageCreateParamsTest.kt | 1 - .../anthropic/models/CompletionCreateParamsTest.kt | 1 - .../anthropic/models/MessageCreateParamsTest.kt | 1 - .../com/anthropic/services/ErrorHandlingTest.kt | 13 ++++++++++++- .../com/anthropic/services/ServiceParamsTest.kt | 13 ++++++++++++- .../services/blocking/CompletionServiceTest.kt | 4 +++- .../services/blocking/MessageServiceTest.kt | 9 ++++++++- .../services/blocking/beta/MessageServiceTest.kt | 13 ++++++++++++- .../blocking/beta/messages/BatchServiceTest.kt | 14 +++++++++++++- .../beta/promptCaching/MessageServiceTest.kt | 11 ++++++++++- 29 files changed, 70 insertions(+), 29 deletions(-) diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClient.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClient.kt index 987ac0f..13ade4a 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClient.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClient.kt @@ -2,7 +2,6 @@ package com.anthropic.client -import com.anthropic.models.* import com.anthropic.services.blocking.* interface AnthropicClient { diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsync.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsync.kt index d980235..dfec98b 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsync.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsync.kt @@ -2,7 +2,6 @@ package com.anthropic.client -import com.anthropic.models.* import com.anthropic.services.async.* interface AnthropicClientAsync { diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsyncImpl.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsyncImpl.kt index 3d6661e..7243ba0 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsyncImpl.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientAsyncImpl.kt @@ -4,7 +4,6 @@ package com.anthropic.client import com.anthropic.core.ClientOptions import com.anthropic.core.getPackageVersion -import com.anthropic.models.* import com.anthropic.services.async.* class AnthropicClientAsyncImpl diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientImpl.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientImpl.kt index dc075d1..03f8461 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientImpl.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/client/AnthropicClientImpl.kt @@ -4,7 +4,6 @@ package com.anthropic.client import com.anthropic.core.ClientOptions import com.anthropic.core.getPackageVersion -import com.anthropic.models.* import com.anthropic.services.blocking.* class AnthropicClientImpl diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCancelParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCancelParams.kt index 42c53f5..445f983 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCancelParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCancelParams.kt @@ -7,7 +7,6 @@ import com.anthropic.core.NoAutoDetect import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable -import com.anthropic.models.* import java.util.Objects import java.util.Optional diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCreateParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCreateParams.kt index 46b36c8..e05f15f 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCreateParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchCreateParams.kt @@ -12,7 +12,6 @@ import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable import com.anthropic.errors.AnthropicInvalidDataException -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchListParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchListParams.kt index fcaeff5..e4d8f5f 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchListParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchListParams.kt @@ -6,7 +6,6 @@ import com.anthropic.core.NoAutoDetect import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable -import com.anthropic.models.* import java.util.Objects import java.util.Optional diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParams.kt index c4534b3..6e510df 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParams.kt @@ -6,7 +6,6 @@ import com.anthropic.core.NoAutoDetect import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable -import com.anthropic.models.* import java.util.Objects import java.util.Optional diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCountTokensParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCountTokensParams.kt index 2c75729..933342c 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCountTokensParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCountTokensParams.kt @@ -12,7 +12,6 @@ import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable import com.anthropic.errors.AnthropicInvalidDataException -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCreateParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCreateParams.kt index e512e1c..05fbde4 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCreateParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaMessageCreateParams.kt @@ -12,7 +12,6 @@ import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable import com.anthropic.errors.AnthropicInvalidDataException -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParams.kt index 291d5f8..9631f0f 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParams.kt @@ -12,7 +12,6 @@ import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable import com.anthropic.errors.AnthropicInvalidDataException -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/CompletionCreateParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/CompletionCreateParams.kt index b4a0b0f..0c8c481 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/CompletionCreateParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/CompletionCreateParams.kt @@ -8,7 +8,6 @@ import com.anthropic.core.NoAutoDetect import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/MessageCreateParams.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/MessageCreateParams.kt index 12164c9..a479b16 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/MessageCreateParams.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/MessageCreateParams.kt @@ -12,7 +12,6 @@ import com.anthropic.core.http.Headers import com.anthropic.core.http.QueryParams import com.anthropic.core.toImmutable import com.anthropic.errors.AnthropicInvalidDataException -import com.anthropic.models.* import com.fasterxml.jackson.annotation.JsonAnyGetter import com.fasterxml.jackson.annotation.JsonAnySetter import com.fasterxml.jackson.annotation.JsonProperty diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCancelParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCancelParamsTest.kt index d5397a4..98b3900 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCancelParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCancelParamsTest.kt @@ -2,7 +2,6 @@ package com.anthropic.models -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCreateParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCreateParamsTest.kt index 9a59639..b0e97d8 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCreateParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.JsonValue -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchListParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchListParamsTest.kt index abb009b..5b62a49 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchListParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchListParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.http.QueryParams -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParamsTest.kt index 1dbe7e6..f89451b 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageBatchRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.anthropic.models -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCountTokensParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCountTokensParamsTest.kt index 3b23d9f..d98fa85 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCountTokensParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCountTokensParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.JsonValue -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCreateParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCreateParamsTest.kt index 3b49114..968e2c5 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCreateParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaMessageCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.JsonValue -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParamsTest.kt index f1d69eb..b1e9239 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/BetaPromptCachingMessageCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.JsonValue -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/CompletionCreateParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/CompletionCreateParamsTest.kt index 616fec4..754deef 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/CompletionCreateParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/CompletionCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.anthropic.models -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/models/MessageCreateParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/models/MessageCreateParamsTest.kt index 729d81c..994bf02 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/models/MessageCreateParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/models/MessageCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.anthropic.models import com.anthropic.core.JsonValue -import com.anthropic.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/ErrorHandlingTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/ErrorHandlingTest.kt index d5aa333..8732b2c 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/ErrorHandlingTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/ErrorHandlingTest.kt @@ -17,7 +17,18 @@ import com.anthropic.errors.RateLimitException import com.anthropic.errors.UnauthorizedException import com.anthropic.errors.UnexpectedStatusCodeException import com.anthropic.errors.UnprocessableEntityException -import com.anthropic.models.* +import com.anthropic.models.ContentBlock +import com.anthropic.models.Message +import com.anthropic.models.MessageCreateParams +import com.anthropic.models.MessageParam +import com.anthropic.models.Metadata +import com.anthropic.models.Model +import com.anthropic.models.TextBlock +import com.anthropic.models.TextBlockParam +import com.anthropic.models.Tool +import com.anthropic.models.ToolChoice +import com.anthropic.models.ToolChoiceAuto +import com.anthropic.models.Usage import com.fasterxml.jackson.databind.json.JsonMapper import com.github.tomakehurst.wiremock.client.WireMock.anyUrl import com.github.tomakehurst.wiremock.client.WireMock.ok diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/ServiceParamsTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/ServiceParamsTest.kt index 32fd07d..1eb8388 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/ServiceParamsTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/ServiceParamsTest.kt @@ -6,7 +6,18 @@ import com.anthropic.client.AnthropicClient import com.anthropic.client.okhttp.AnthropicOkHttpClient import com.anthropic.core.JsonValue import com.anthropic.core.jsonMapper -import com.anthropic.models.* +import com.anthropic.models.ContentBlock +import com.anthropic.models.Message +import com.anthropic.models.MessageCreateParams +import com.anthropic.models.MessageParam +import com.anthropic.models.Metadata +import com.anthropic.models.Model +import com.anthropic.models.TextBlock +import com.anthropic.models.TextBlockParam +import com.anthropic.models.Tool +import com.anthropic.models.ToolChoice +import com.anthropic.models.ToolChoiceAuto +import com.anthropic.models.Usage import com.fasterxml.jackson.databind.json.JsonMapper import com.github.tomakehurst.wiremock.client.WireMock.anyUrl import com.github.tomakehurst.wiremock.client.WireMock.equalTo diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/CompletionServiceTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/CompletionServiceTest.kt index 5765cc7..62bb6f5 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/CompletionServiceTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/CompletionServiceTest.kt @@ -4,7 +4,9 @@ package com.anthropic.services.blocking import com.anthropic.TestServerExtension import com.anthropic.client.okhttp.AnthropicOkHttpClient -import com.anthropic.models.* +import com.anthropic.models.CompletionCreateParams +import com.anthropic.models.Metadata +import com.anthropic.models.Model import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/MessageServiceTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/MessageServiceTest.kt index 1752207..d6147d0 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/MessageServiceTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/MessageServiceTest.kt @@ -5,7 +5,14 @@ package com.anthropic.services.blocking import com.anthropic.TestServerExtension import com.anthropic.client.okhttp.AnthropicOkHttpClient import com.anthropic.core.JsonValue -import com.anthropic.models.* +import com.anthropic.models.MessageCreateParams +import com.anthropic.models.MessageParam +import com.anthropic.models.Metadata +import com.anthropic.models.Model +import com.anthropic.models.TextBlockParam +import com.anthropic.models.Tool +import com.anthropic.models.ToolChoice +import com.anthropic.models.ToolChoiceAuto import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/MessageServiceTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/MessageServiceTest.kt index 4836440..5ec9300 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/MessageServiceTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/MessageServiceTest.kt @@ -5,7 +5,18 @@ package com.anthropic.services.blocking.beta import com.anthropic.TestServerExtension import com.anthropic.client.okhttp.AnthropicOkHttpClient import com.anthropic.core.JsonValue -import com.anthropic.models.* +import com.anthropic.models.AnthropicBeta +import com.anthropic.models.BetaCacheControlEphemeral +import com.anthropic.models.BetaMessageCountTokensParams +import com.anthropic.models.BetaMessageCreateParams +import com.anthropic.models.BetaMessageParam +import com.anthropic.models.BetaMetadata +import com.anthropic.models.BetaTextBlockParam +import com.anthropic.models.BetaTool +import com.anthropic.models.BetaToolChoice +import com.anthropic.models.BetaToolChoiceAuto +import com.anthropic.models.BetaToolUnion +import com.anthropic.models.Model import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/messages/BatchServiceTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/messages/BatchServiceTest.kt index cfa784a..79e2514 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/messages/BatchServiceTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/messages/BatchServiceTest.kt @@ -5,8 +5,20 @@ package com.anthropic.services.blocking.beta.messages import com.anthropic.TestServerExtension import com.anthropic.client.okhttp.AnthropicOkHttpClient import com.anthropic.core.JsonValue -import com.anthropic.models.* +import com.anthropic.models.AnthropicBeta +import com.anthropic.models.BetaCacheControlEphemeral +import com.anthropic.models.BetaMessageBatchCancelParams +import com.anthropic.models.BetaMessageBatchCreateParams import com.anthropic.models.BetaMessageBatchListParams +import com.anthropic.models.BetaMessageBatchRetrieveParams +import com.anthropic.models.BetaMessageParam +import com.anthropic.models.BetaMetadata +import com.anthropic.models.BetaTextBlockParam +import com.anthropic.models.BetaTool +import com.anthropic.models.BetaToolChoice +import com.anthropic.models.BetaToolChoiceAuto +import com.anthropic.models.BetaToolUnion +import com.anthropic.models.Model import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/promptCaching/MessageServiceTest.kt b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/promptCaching/MessageServiceTest.kt index 6c25e0f..bc58d9b 100644 --- a/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/promptCaching/MessageServiceTest.kt +++ b/anthropic-java-core/src/test/kotlin/com/anthropic/services/blocking/beta/promptCaching/MessageServiceTest.kt @@ -5,7 +5,16 @@ package com.anthropic.services.blocking.beta.promptCaching import com.anthropic.TestServerExtension import com.anthropic.client.okhttp.AnthropicOkHttpClient import com.anthropic.core.JsonValue -import com.anthropic.models.* +import com.anthropic.models.AnthropicBeta +import com.anthropic.models.BetaPromptCachingMessageCreateParams +import com.anthropic.models.Metadata +import com.anthropic.models.Model +import com.anthropic.models.PromptCachingBetaCacheControlEphemeral +import com.anthropic.models.PromptCachingBetaMessageParam +import com.anthropic.models.PromptCachingBetaTextBlockParam +import com.anthropic.models.PromptCachingBetaTool +import com.anthropic.models.ToolChoice +import com.anthropic.models.ToolChoiceAuto import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith