From 67e74612794995bf05acce426224752d03466455 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 04:42:12 +0000 Subject: [PATCH] chore(internal): add some missing newlines between methods (#48) --- .../src/main/kotlin/com/anthropic/models/BetaToolChoice.kt | 4 ++++ .../src/main/kotlin/com/anthropic/models/ToolChoice.kt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaToolChoice.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaToolChoice.kt index 6706ad4..af927f7 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaToolChoice.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/BetaToolChoice.kt @@ -36,8 +36,10 @@ private constructor( /** The model will automatically decide whether to use tools. */ fun betaToolChoiceAuto(): Optional = Optional.ofNullable(betaToolChoiceAuto) + /** The model will use any available tools. */ fun betaToolChoiceAny(): Optional = Optional.ofNullable(betaToolChoiceAny) + /** The model will use the specified tool with `tool_choice.name`. */ fun betaToolChoiceTool(): Optional = Optional.ofNullable(betaToolChoiceTool) @@ -50,8 +52,10 @@ private constructor( /** The model will automatically decide whether to use tools. */ fun asBetaToolChoiceAuto(): BetaToolChoiceAuto = betaToolChoiceAuto.getOrThrow("betaToolChoiceAuto") + /** The model will use any available tools. */ fun asBetaToolChoiceAny(): BetaToolChoiceAny = betaToolChoiceAny.getOrThrow("betaToolChoiceAny") + /** The model will use the specified tool with `tool_choice.name`. */ fun asBetaToolChoiceTool(): BetaToolChoiceTool = betaToolChoiceTool.getOrThrow("betaToolChoiceTool") diff --git a/anthropic-java-core/src/main/kotlin/com/anthropic/models/ToolChoice.kt b/anthropic-java-core/src/main/kotlin/com/anthropic/models/ToolChoice.kt index 2ee47f1..15f96b7 100644 --- a/anthropic-java-core/src/main/kotlin/com/anthropic/models/ToolChoice.kt +++ b/anthropic-java-core/src/main/kotlin/com/anthropic/models/ToolChoice.kt @@ -36,8 +36,10 @@ private constructor( /** The model will automatically decide whether to use tools. */ fun toolChoiceAuto(): Optional = Optional.ofNullable(toolChoiceAuto) + /** The model will use any available tools. */ fun toolChoiceAny(): Optional = Optional.ofNullable(toolChoiceAny) + /** The model will use the specified tool with `tool_choice.name`. */ fun toolChoiceTool(): Optional = Optional.ofNullable(toolChoiceTool) @@ -49,8 +51,10 @@ private constructor( /** The model will automatically decide whether to use tools. */ fun asToolChoiceAuto(): ToolChoiceAuto = toolChoiceAuto.getOrThrow("toolChoiceAuto") + /** The model will use any available tools. */ fun asToolChoiceAny(): ToolChoiceAny = toolChoiceAny.getOrThrow("toolChoiceAny") + /** The model will use the specified tool with `tool_choice.name`. */ fun asToolChoiceTool(): ToolChoiceTool = toolChoiceTool.getOrThrow("toolChoiceTool")