We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f193256 commit 32809dbCopy full SHA for 32809db
‎agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/ToolDescriptors.kt
@@ -75,7 +75,22 @@ public sealed class ToolParameterType(public val name: kotlin.String) {
75
*/
76
public data class Enum(
77
val entries: Array<kotlin.String>,
78
- ) : ToolParameterType("ENUM")
+ ) : ToolParameterType("ENUM") {
79
+ override fun equals(other: Any?): Boolean {
80
+ if (this === other) return true
81
+ if (other == null || this::class != other::class) return false
82
+
83
+ other as Enum
84
85
+ if (!entries.contentEquals(other.entries)) return false
86
87
+ return true
88
+ }
89
90
+ override fun hashCode(): Int {
91
+ return entries.contentHashCode()
92
93
94
95
/**
96
* Represents an array type parameter.
0 commit comments