Skip to content

Commit

Permalink
fix(client): make service impl constructors internal (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 20, 2025
1 parent 9853408 commit 77f8873
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.anthropic.services.async.beta.ModelServiceAsync
import com.anthropic.services.async.beta.ModelServiceAsyncImpl

class BetaServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BetaServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import java.time.Duration
import java.util.concurrent.CompletableFuture

class CompletionServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CompletionServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import java.time.Duration
import java.util.concurrent.CompletableFuture

class MessageServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.anthropic.models.ModelRetrieveParams
import java.util.concurrent.CompletableFuture

class ModelServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import java.time.Duration
import java.util.concurrent.CompletableFuture

class MessageServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.anthropic.models.BetaModelRetrieveParams
import java.util.concurrent.CompletableFuture

class ModelServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.anthropic.models.BetaMessageBatchRetrieveParams
import java.util.concurrent.CompletableFuture

class BatchServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.anthropic.models.MessageBatchRetrieveParams
import java.util.concurrent.CompletableFuture

class BatchServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.anthropic.services.blocking.beta.ModelService
import com.anthropic.services.blocking.beta.ModelServiceImpl

class BetaServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BetaService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.anthropic.models.CompletionCreateParams
import java.time.Duration

class CompletionServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CompletionService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.anthropic.services.blocking.messages.BatchServiceImpl
import java.time.Duration

class MessageServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.anthropic.models.ModelListParams
import com.anthropic.models.ModelRetrieveParams

class ModelServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.anthropic.services.blocking.beta.messages.BatchServiceImpl
import java.time.Duration

class MessageServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.anthropic.models.BetaModelListParams
import com.anthropic.models.BetaModelRetrieveParams

class ModelServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.anthropic.models.BetaMessageBatchListParams
import com.anthropic.models.BetaMessageBatchRetrieveParams

class BatchServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.anthropic.models.MessageBatchListParams
import com.anthropic.models.MessageBatchRetrieveParams

class BatchServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchService {

Expand Down

0 comments on commit 77f8873

Please sign in to comment.