@charivo/core 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -200,10 +200,7 @@ interface LLMToolResponse {
|
|
|
200
200
|
toolCalls?: LLMToolCall[];
|
|
201
201
|
}
|
|
202
202
|
interface LLMProvider {
|
|
203
|
-
generateResponse(messages:
|
|
204
|
-
role: string;
|
|
205
|
-
content: string;
|
|
206
|
-
}>): Promise<string>;
|
|
203
|
+
generateResponse(messages: LLMMessage[]): Promise<string>;
|
|
207
204
|
/** Tool-calling variant; providers that support function calling implement this alongside generateResponse. */
|
|
208
205
|
generateResponseWithTools?(messages: LLMMessage[], tools: ToolDefinition[]): Promise<LLMToolResponse>;
|
|
209
206
|
}
|
|
@@ -215,10 +212,7 @@ interface LLMCallOptions {
|
|
|
215
212
|
signal?: AbortSignal;
|
|
216
213
|
}
|
|
217
214
|
interface LLMClient {
|
|
218
|
-
call(messages:
|
|
219
|
-
role: string;
|
|
220
|
-
content: string;
|
|
221
|
-
}>, options?: LLMCallOptions): Promise<string>;
|
|
215
|
+
call(messages: LLMMessage[], options?: LLMCallOptions): Promise<string>;
|
|
222
216
|
/** Tool-calling variant; clients that support function calling implement this alongside call. */
|
|
223
217
|
callWithTools?(messages: LLMMessage[], tools: ToolDefinition[], options?: LLMCallOptions): Promise<LLMToolResponse>;
|
|
224
218
|
}
|
|
@@ -331,6 +325,16 @@ interface Renderer {
|
|
|
331
325
|
lookAt?(coords: GazeCoordinates): void;
|
|
332
326
|
getAvailableExpressions?(): string[];
|
|
333
327
|
getAvailableMotionGroups?(): Record<string, number>;
|
|
328
|
+
/**
|
|
329
|
+
* The loaded model's avatar control catalog — the renderer is its single
|
|
330
|
+
* source: names, counts and descriptions. A renderer whose model carries
|
|
331
|
+
* descriptions (an `.iki` file declares one per expression and motion)
|
|
332
|
+
* returns them; others may return names and counts only. It reflects the
|
|
333
|
+
* model loaded at call time, so read it after `loadModel` resolves and again
|
|
334
|
+
* when the model changes. Apps should prefer it over assembling the catalog
|
|
335
|
+
* from `getAvailableExpressions` / `getAvailableMotionGroups` themselves.
|
|
336
|
+
*/
|
|
337
|
+
getAvatarControlCatalog?(): AvatarControlCatalog;
|
|
334
338
|
}
|
|
335
339
|
interface RenderManager {
|
|
336
340
|
initialize(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -200,10 +200,7 @@ interface LLMToolResponse {
|
|
|
200
200
|
toolCalls?: LLMToolCall[];
|
|
201
201
|
}
|
|
202
202
|
interface LLMProvider {
|
|
203
|
-
generateResponse(messages:
|
|
204
|
-
role: string;
|
|
205
|
-
content: string;
|
|
206
|
-
}>): Promise<string>;
|
|
203
|
+
generateResponse(messages: LLMMessage[]): Promise<string>;
|
|
207
204
|
/** Tool-calling variant; providers that support function calling implement this alongside generateResponse. */
|
|
208
205
|
generateResponseWithTools?(messages: LLMMessage[], tools: ToolDefinition[]): Promise<LLMToolResponse>;
|
|
209
206
|
}
|
|
@@ -215,10 +212,7 @@ interface LLMCallOptions {
|
|
|
215
212
|
signal?: AbortSignal;
|
|
216
213
|
}
|
|
217
214
|
interface LLMClient {
|
|
218
|
-
call(messages:
|
|
219
|
-
role: string;
|
|
220
|
-
content: string;
|
|
221
|
-
}>, options?: LLMCallOptions): Promise<string>;
|
|
215
|
+
call(messages: LLMMessage[], options?: LLMCallOptions): Promise<string>;
|
|
222
216
|
/** Tool-calling variant; clients that support function calling implement this alongside call. */
|
|
223
217
|
callWithTools?(messages: LLMMessage[], tools: ToolDefinition[], options?: LLMCallOptions): Promise<LLMToolResponse>;
|
|
224
218
|
}
|
|
@@ -331,6 +325,16 @@ interface Renderer {
|
|
|
331
325
|
lookAt?(coords: GazeCoordinates): void;
|
|
332
326
|
getAvailableExpressions?(): string[];
|
|
333
327
|
getAvailableMotionGroups?(): Record<string, number>;
|
|
328
|
+
/**
|
|
329
|
+
* The loaded model's avatar control catalog — the renderer is its single
|
|
330
|
+
* source: names, counts and descriptions. A renderer whose model carries
|
|
331
|
+
* descriptions (an `.iki` file declares one per expression and motion)
|
|
332
|
+
* returns them; others may return names and counts only. It reflects the
|
|
333
|
+
* model loaded at call time, so read it after `loadModel` resolves and again
|
|
334
|
+
* when the model changes. Apps should prefer it over assembling the catalog
|
|
335
|
+
* from `getAvailableExpressions` / `getAvailableMotionGroups` themselves.
|
|
336
|
+
*/
|
|
337
|
+
getAvatarControlCatalog?(): AvatarControlCatalog;
|
|
334
338
|
}
|
|
335
339
|
interface RenderManager {
|
|
336
340
|
initialize(): Promise<void>;
|