@simfinity/constellation-client 1.0.14 → 1.0.15
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 +1 -6
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,15 +32,13 @@ const client = new WebClient({
|
|
|
32
32
|
streamingEndpoint: "wss://simfinity.constellation.com:30003",
|
|
33
33
|
key: "my-key",
|
|
34
34
|
llm: "openai",
|
|
35
|
-
model: "gpt-4o-realtime-preview-2024-12-17",
|
|
36
|
-
voiceEnabled: true,
|
|
37
35
|
});
|
|
38
36
|
|
|
39
37
|
try {
|
|
40
38
|
/* ... */
|
|
41
39
|
|
|
42
40
|
// Start a chat session
|
|
43
|
-
await client.startSession(
|
|
41
|
+
await client.startSession(true);
|
|
44
42
|
await client.connect(true, {
|
|
45
43
|
onStreamClosed: (reason: string) => {
|
|
46
44
|
console.log("Stream connection lost");
|
|
@@ -84,9 +82,6 @@ export interface WebClientConfig {
|
|
|
84
82
|
key: string;
|
|
85
83
|
llm: LlmType;
|
|
86
84
|
model: string;
|
|
87
|
-
voiceEnabled?: boolean;
|
|
88
|
-
voiceName?: string;
|
|
89
|
-
tools?: string[];
|
|
90
85
|
}
|
|
91
86
|
```
|
|
92
87
|
|
package/dist/index.d.cts
CHANGED
|
@@ -76,10 +76,6 @@ interface EventHandlers {
|
|
|
76
76
|
* Tools (or functions) can be many things, for example a calendar manager, allowing
|
|
77
77
|
* the model to manage the user's schedule.
|
|
78
78
|
*/
|
|
79
|
-
interface ToolDescription {
|
|
80
|
-
name: string;
|
|
81
|
-
description: string;
|
|
82
|
-
}
|
|
83
79
|
/**
|
|
84
80
|
* This class is a code wrapper to integrate the Simfinity constellation server.
|
|
85
81
|
* The constellation server is a proxy managing streaming sessions with third party LLMs.
|
|
@@ -216,4 +212,4 @@ declare class WebClient {
|
|
|
216
212
|
private send;
|
|
217
213
|
}
|
|
218
214
|
|
|
219
|
-
export { type EventHandlers, type LlmType, type SessionConfig,
|
|
215
|
+
export { type EventHandlers, type LlmType, type SessionConfig, WebClient, type WebClientConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -76,10 +76,6 @@ interface EventHandlers {
|
|
|
76
76
|
* Tools (or functions) can be many things, for example a calendar manager, allowing
|
|
77
77
|
* the model to manage the user's schedule.
|
|
78
78
|
*/
|
|
79
|
-
interface ToolDescription {
|
|
80
|
-
name: string;
|
|
81
|
-
description: string;
|
|
82
|
-
}
|
|
83
79
|
/**
|
|
84
80
|
* This class is a code wrapper to integrate the Simfinity constellation server.
|
|
85
81
|
* The constellation server is a proxy managing streaming sessions with third party LLMs.
|
|
@@ -216,4 +212,4 @@ declare class WebClient {
|
|
|
216
212
|
private send;
|
|
217
213
|
}
|
|
218
214
|
|
|
219
|
-
export { type EventHandlers, type LlmType, type SessionConfig,
|
|
215
|
+
export { type EventHandlers, type LlmType, type SessionConfig, WebClient, type WebClientConfig };
|