@unisphere/genie-types 1.28.0-head.4 → 1.28.0-head.5
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/package.json
CHANGED
|
@@ -35,7 +35,9 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
|
|
|
35
35
|
isConnected: TinyDataStoreConsumer<boolean>;
|
|
36
36
|
isPaused: TinyDataStoreConsumer<boolean>;
|
|
37
37
|
captions: Captions;
|
|
38
|
-
registerClientTools
|
|
38
|
+
registerClientTools<TMap extends Record<string, unknown>>(tools: {
|
|
39
|
+
[K in keyof TMap]: (args: TMap[K]) => undefined | null | Record<string, unknown> | Promise<Record<string, unknown>>;
|
|
40
|
+
}): void;
|
|
39
41
|
/** Observable chat panel open state */
|
|
40
42
|
isChatPanelOpen: TinyDataStoreConsumer<boolean>;
|
|
41
43
|
/** Update chat panel open state */
|
|
@@ -54,6 +56,8 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
|
|
|
54
56
|
unmute(): void;
|
|
55
57
|
/** Send a text question to the avatar */
|
|
56
58
|
askViaText(question: string): void;
|
|
59
|
+
/** Update dynamic variables */
|
|
60
|
+
updateDynamicVariables(variables: Record<string, unknown>): void;
|
|
57
61
|
};
|
|
58
62
|
/** Event emitted when the avatar brain invokes a tool call */
|
|
59
63
|
export interface AvatarToolCallEvent {
|