You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llm-agent/api/jvm/llm-agent.api
+148Lines changed: 148 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,17 @@ public final class sk/ainet/apps/kllama/chat/AgentLoop {
70
70
public final class sk/ainet/apps/kllama/chat/ChatMLTemplate : sk/ainet/apps/kllama/chat/ChatTemplate {
71
71
public fun <init> ()V
72
72
public fun apply (Ljava/util/List;Ljava/util/List;Z)Ljava/lang/String;
73
+
public fun containsToolCall (Ljava/lang/String;)Z
74
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
75
+
}
76
+
77
+
public final class sk/ainet/apps/kllama/chat/ChatMLToolCallingSupport : sk/ainet/apps/kllama/chat/ToolCallingSupport {
78
+
public fun <init> ()V
79
+
public fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
80
+
public fun getFamily ()Ljava/lang/String;
81
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
82
+
public fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
83
+
public fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
73
84
}
74
85
75
86
public final class sk/ainet/apps/kllama/chat/ChatMessage {
@@ -104,15 +115,114 @@ public final class sk/ainet/apps/kllama/chat/ChatRole : java/lang/Enum {
104
115
public abstract interface class sk/ainet/apps/kllama/chat/ChatTemplate {
105
116
public abstract fun apply (Ljava/util/List;Ljava/util/List;Z)Ljava/lang/String;
106
117
public static synthetic fun apply$default (Lsk/ainet/apps/kllama/chat/ChatTemplate;Ljava/util/List;Ljava/util/List;ZILjava/lang/Object;)Ljava/lang/String;
118
+
public fun containsToolCall (Ljava/lang/String;)Z
119
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
107
120
}
108
121
109
122
public final class sk/ainet/apps/kllama/chat/ChatTemplate$DefaultImpls {
110
123
public static synthetic fun apply$default (Lsk/ainet/apps/kllama/chat/ChatTemplate;Ljava/util/List;Ljava/util/List;ZILjava/lang/Object;)Ljava/lang/String;
124
+
public static fun containsToolCall (Lsk/ainet/apps/kllama/chat/ChatTemplate;Ljava/lang/String;)Z
125
+
public static fun parseToolCalls (Lsk/ainet/apps/kllama/chat/ChatTemplate;Ljava/lang/String;)Ljava/util/List;
126
+
}
127
+
128
+
public final class sk/ainet/apps/kllama/chat/GemmaChatTemplate : sk/ainet/apps/kllama/chat/ChatTemplate {
129
+
public fun <init> ()V
130
+
public fun apply (Ljava/util/List;Ljava/util/List;Z)Ljava/lang/String;
131
+
public fun containsToolCall (Ljava/lang/String;)Z
132
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
133
+
}
134
+
135
+
public final class sk/ainet/apps/kllama/chat/GemmaToolCallParserStrategy : sk/ainet/apps/kllama/chat/ToolCallParserStrategy {
136
+
public fun <init> ()V
137
+
public fun containsToolCall (Ljava/lang/String;)Z
138
+
public fun getFormatName ()Ljava/lang/String;
139
+
public fun parse (Ljava/lang/String;)Ljava/util/List;
140
+
}
141
+
142
+
public final class sk/ainet/apps/kllama/chat/GemmaToolCallingSupport : sk/ainet/apps/kllama/chat/ToolCallingSupport {
143
+
public fun <init> ()V
144
+
public fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
145
+
public fun getFamily ()Ljava/lang/String;
146
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
147
+
public fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
148
+
public fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
149
+
}
150
+
151
+
public final class sk/ainet/apps/kllama/chat/GenericToolCallingSupport : sk/ainet/apps/kllama/chat/ToolCallingSupport {
152
+
public fun <init> ()V
153
+
public fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
154
+
public fun getFamily ()Ljava/lang/String;
155
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
156
+
public fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
157
+
public fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
111
158
}
112
159
113
160
public final class sk/ainet/apps/kllama/chat/Llama3ChatTemplate : sk/ainet/apps/kllama/chat/ChatTemplate {
114
161
public fun <init> ()V
115
162
public fun apply (Ljava/util/List;Ljava/util/List;Z)Ljava/lang/String;
163
+
public fun containsToolCall (Ljava/lang/String;)Z
164
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
165
+
}
166
+
167
+
public final class sk/ainet/apps/kllama/chat/Llama3ToolCallingSupport : sk/ainet/apps/kllama/chat/ToolCallingSupport {
168
+
public fun <init> ()V
169
+
public fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
170
+
public fun getFamily ()Ljava/lang/String;
171
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
172
+
public fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
173
+
public fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
174
+
}
175
+
176
+
public final class sk/ainet/apps/kllama/chat/ModelMetadata {
177
+
public fun <init> ()V
178
+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V
179
+
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
180
+
public final fun component1 ()Ljava/lang/String;
181
+
public final fun component2 ()Ljava/lang/String;
182
+
public final fun component3 ()Ljava/lang/String;
183
+
public final fun component4 ()Ljava/util/List;
184
+
public final fun component5 ()Ljava/lang/String;
185
+
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ModelMetadata;
186
+
public static synthetic fun copy$default (Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;ILjava/lang/Object;)Lsk/ainet/apps/kllama/chat/ModelMetadata;
187
+
public fun equals (Ljava/lang/Object;)Z
188
+
public final fun getArchitecture ()Ljava/lang/String;
189
+
public final fun getChatTemplate ()Ljava/lang/String;
190
+
public final fun getFamily ()Ljava/lang/String;
191
+
public final fun getSourceFormat ()Ljava/lang/String;
192
+
public final fun getTokenizerHints ()Ljava/util/List;
193
+
public fun hashCode ()I
194
+
public fun toString ()Ljava/lang/String;
195
+
}
196
+
197
+
public final class sk/ainet/apps/kllama/chat/QwenChatTemplate : sk/ainet/apps/kllama/chat/ChatTemplate {
198
+
public fun <init> ()V
199
+
public fun apply (Ljava/util/List;Ljava/util/List;Z)Ljava/lang/String;
200
+
public fun containsToolCall (Ljava/lang/String;)Z
201
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
202
+
}
203
+
204
+
public final class sk/ainet/apps/kllama/chat/QwenToolCallingSupport : sk/ainet/apps/kllama/chat/ToolCallingSupport {
205
+
public fun <init> ()V
206
+
public fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
207
+
public fun getFamily ()Ljava/lang/String;
208
+
public fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
209
+
public fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
210
+
public fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
211
+
}
212
+
213
+
public final class sk/ainet/apps/kllama/chat/ResolutionResult {
214
+
public fun <init> (Lsk/ainet/apps/kllama/chat/ToolCallingSupport;Lsk/ainet/apps/kllama/chat/ToolCallingMode;Ljava/lang/String;)V
215
+
public final fun component1 ()Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
216
+
public final fun component2 ()Lsk/ainet/apps/kllama/chat/ToolCallingMode;
217
+
public final fun component3 ()Ljava/lang/String;
218
+
public final fun copy (Lsk/ainet/apps/kllama/chat/ToolCallingSupport;Lsk/ainet/apps/kllama/chat/ToolCallingMode;Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ResolutionResult;
219
+
public static synthetic fun copy$default (Lsk/ainet/apps/kllama/chat/ResolutionResult;Lsk/ainet/apps/kllama/chat/ToolCallingSupport;Lsk/ainet/apps/kllama/chat/ToolCallingMode;Ljava/lang/String;ILjava/lang/Object;)Lsk/ainet/apps/kllama/chat/ResolutionResult;
220
+
public fun equals (Ljava/lang/Object;)Z
221
+
public final fun getMode ()Lsk/ainet/apps/kllama/chat/ToolCallingMode;
222
+
public final fun getProvider ()Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
223
+
public final fun getReason ()Ljava/lang/String;
224
+
public fun hashCode ()I
225
+
public fun toString ()Ljava/lang/String;
116
226
}
117
227
118
228
public abstract interface class sk/ainet/apps/kllama/chat/Tool {
@@ -138,7 +248,45 @@ public final class sk/ainet/apps/kllama/chat/ToolCall {
138
248
public final class sk/ainet/apps/kllama/chat/ToolCallParser {
139
249
public static final field INSTANCE Lsk/ainet/apps/kllama/chat/ToolCallParser;
140
250
public final fun containsToolCall (Ljava/lang/String;)Z
251
+
public final fun generateCallId ()Ljava/lang/String;
141
252
public final fun parse (Ljava/lang/String;)Ljava/util/List;
253
+
public final fun parseJsonToolCall (Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ToolCall;
254
+
public final fun parseWith (Ljava/lang/String;Ljava/util/List;)Ljava/util/List;
255
+
}
256
+
257
+
public abstract interface class sk/ainet/apps/kllama/chat/ToolCallParserStrategy {
258
+
public abstract fun containsToolCall (Ljava/lang/String;)Z
259
+
public abstract fun getFormatName ()Ljava/lang/String;
260
+
public abstract fun parse (Ljava/lang/String;)Ljava/util/List;
261
+
}
262
+
263
+
public final class sk/ainet/apps/kllama/chat/ToolCallingMode : java/lang/Enum {
264
+
public static final field GENERIC Lsk/ainet/apps/kllama/chat/ToolCallingMode;
265
+
public static final field NATIVE Lsk/ainet/apps/kllama/chat/ToolCallingMode;
266
+
public static final field UNSUPPORTED Lsk/ainet/apps/kllama/chat/ToolCallingMode;
267
+
public static fun getEntries ()Lkotlin/enums/EnumEntries;
268
+
public static fun valueOf (Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
269
+
public static fun values ()[Lsk/ainet/apps/kllama/chat/ToolCallingMode;
270
+
}
271
+
272
+
public abstract interface class sk/ainet/apps/kllama/chat/ToolCallingSupport {
273
+
public abstract fun createChatTemplate ()Lsk/ainet/apps/kllama/chat/ChatTemplate;
274
+
public abstract fun getFamily ()Ljava/lang/String;
275
+
public abstract fun parseToolCalls (Ljava/lang/String;)Ljava/util/List;
276
+
public abstract fun supports (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Z
277
+
public abstract fun toolCallingMode (Lsk/ainet/apps/kllama/chat/ModelMetadata;)Lsk/ainet/apps/kllama/chat/ToolCallingMode;
278
+
}
279
+
280
+
public final class sk/ainet/apps/kllama/chat/ToolCallingSupportResolver {
281
+
public static final field INSTANCE Lsk/ainet/apps/kllama/chat/ToolCallingSupportResolver;
282
+
public final fun register (Lsk/ainet/apps/kllama/chat/ToolCallingSupport;)V
283
+
public final fun registeredFamilies ()Ljava/util/List;
284
+
public final fun resolve (Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
285
+
public static synthetic fun resolve$default (Lsk/ainet/apps/kllama/chat/ToolCallingSupportResolver;Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;ILjava/lang/Object;)Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
286
+
public final fun resolveOrFallback (Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
287
+
public static synthetic fun resolveOrFallback$default (Lsk/ainet/apps/kllama/chat/ToolCallingSupportResolver;Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;ILjava/lang/Object;)Lsk/ainet/apps/kllama/chat/ToolCallingSupport;
288
+
public final fun resolveWithDiagnostics (Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;)Lsk/ainet/apps/kllama/chat/ResolutionResult;
289
+
public static synthetic fun resolveWithDiagnostics$default (Lsk/ainet/apps/kllama/chat/ToolCallingSupportResolver;Lsk/ainet/apps/kllama/chat/ModelMetadata;Ljava/lang/String;ILjava/lang/Object;)Lsk/ainet/apps/kllama/chat/ResolutionResult;
142
290
}
143
291
144
292
public final class sk/ainet/apps/kllama/chat/ToolDefinition {
0 commit comments