From bbf1935f25bec7260490d23da29e0a06a63bd93a Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Sat, 2 Nov 2024 18:42:44 +0100 Subject: [PATCH] fixes --- src/commonMain/kotlin/message/Messages.kt | 4 ++-- src/commonTest/kotlin/message/MessageRequestTest.kt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/message/Messages.kt b/src/commonMain/kotlin/message/Messages.kt index 38391b4..f37343b 100644 --- a/src/commonMain/kotlin/message/Messages.kt +++ b/src/commonMain/kotlin/message/Messages.kt @@ -88,7 +88,7 @@ data class MessageRequest( /** * Sets both, the [tools] list and the [toolChoice] with - * just one tool to use, forcing the API to respond with the [com.xemantic.anthropic.tool.ToolUse]. + * just one tool to use, forcing the API to respond with the [com.xemantic.anthropic.content.ToolUse]. */ inline fun singleTool() { val name = toolName() @@ -103,7 +103,7 @@ data class MessageRequest( /** * Sets both, the [tools] list and the [toolChoice] with * just one tool to use, forcing the API to respond with the - * [com.xemantic.anthropic.tool.ToolUse] instance. + * [com.xemantic.anthropic.content.ToolUse] instance. */ fun chooseTool(name: String) { val tool = requireNotNull(toolMap[name]) { diff --git a/src/commonTest/kotlin/message/MessageRequestTest.kt b/src/commonTest/kotlin/message/MessageRequestTest.kt index 148a1e6..dafbff4 100644 --- a/src/commonTest/kotlin/message/MessageRequestTest.kt +++ b/src/commonTest/kotlin/message/MessageRequestTest.kt @@ -78,6 +78,7 @@ class MessageRequestTest { """.trimIndent() } + @Suppress("unused") // it is used by the serializer enum class TemperatureUnit { @SerialName("celsius") CELSIUS,