Skip to content

Commit a4f5c52

Browse files
committed
Fix JavaMethodToolsTest
1 parent f75ae3f commit a4f5c52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

agents/agents-tools/src/jvmTest/java/ai/koog/agents/tools/JavaToolbox.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
public class JavaToolbox {
88

99
// primitives
10-
public static int add(@LLMDescription(description = "a") int a, @LLMDescription(description = "b") int b) {
10+
public static int add(int a, int b) {
1111
return a + b;
1212
}
1313

1414
// boxed types and strings
15-
public static String concat(@LLMDescription(description = "a") String a, @LLMDescription(description = "b") String b) {
15+
public static String concat(String a, String b) {
1616
return (a == null ? "" : a) + (b == null ? "" : b);
1717
}
1818

@@ -22,12 +22,12 @@ public static String ping() {
2222
}
2323

2424
// serializable data class
25-
public static Payload echo(@LLMDescription(description = "p") Payload p) {
25+
public static Payload echo(Payload p) {
2626
return p;
2727
}
2828

2929
// instance method with primitive
30-
public int inc(@LLMDescription(description = "x") int x) {
30+
public int inc(int x) {
3131
return x + 1;
3232
}
3333
}

0 commit comments

Comments
 (0)