hume 0.8.1-beta3 → 0.8.1-beta4
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/.mock/definition/empathic-voice/__package__.yml +1 -1
- package/.mock/definition/empathic-voice/chat.yml +81 -4
- package/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/empathicVoice/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/client/index.js +2 -0
- package/api/resources/empathicVoice/index.d.ts +1 -0
- package/api/resources/empathicVoice/index.js +1 -0
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/empathicVoice/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/client/index.js +2 -0
- package/dist/api/resources/empathicVoice/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/index.js +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/package.json +1 -1
- package/reference.md +444 -444
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
|
@@ -963,7 +963,7 @@ types:
|
|
|
963
963
|
docs: When provided, the output is an assistant end message.
|
|
964
964
|
properties:
|
|
965
965
|
type:
|
|
966
|
-
type: literal<"
|
|
966
|
+
type: literal<"assistant_end">
|
|
967
967
|
docs: >-
|
|
968
968
|
The type of message sent through the socket; for an Assistant End
|
|
969
969
|
message, this must be `assistant_end`.
|
|
@@ -4,23 +4,100 @@ channel:
|
|
|
4
4
|
query-parameters:
|
|
5
5
|
config_id:
|
|
6
6
|
type: optional<string>
|
|
7
|
-
docs:
|
|
7
|
+
docs: >-
|
|
8
|
+
The unique identifier for an EVI configuration.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Include this ID in your connection request to equip EVI with the Prompt,
|
|
12
|
+
Language Model, Voice, and Tools associated with the specified
|
|
13
|
+
configuration. If omitted, EVI will apply [default configuration
|
|
14
|
+
settings](/docs/empathic-voice-interface-evi/configuration#default-configuration).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
For help obtaining this ID, see our [Configuration
|
|
18
|
+
Guide](/docs/empathic-voice-interface-evi/configuration).
|
|
8
19
|
config_version:
|
|
9
20
|
type: optional<integer>
|
|
10
|
-
docs:
|
|
21
|
+
docs: >-
|
|
22
|
+
The version number of the EVI configuration specified by the
|
|
23
|
+
`config_id`.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Configs, as well as Prompts, Tools, and Language Models, are versioned.
|
|
27
|
+
This versioning system supports iterative development, allowing you to
|
|
28
|
+
progressively refine configurations and revert to previous versions if
|
|
29
|
+
needed.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Include this parameter to apply a specific version of an EVI
|
|
33
|
+
configuration. If omitted, the latest version will be applied.
|
|
11
34
|
resumed_chat_group_id:
|
|
12
35
|
type: optional<string>
|
|
13
|
-
docs:
|
|
36
|
+
docs: >-
|
|
37
|
+
The unique identifier for a Chat Group. Use this field to preserve
|
|
38
|
+
context from a previous Chat session.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
A Chat represents a single session from opening to closing a WebSocket
|
|
42
|
+
connection. In contrast, a Chat Group is a series of resumed Chats that
|
|
43
|
+
collectively represent a single conversation spanning multiple sessions.
|
|
44
|
+
Each Chat includes a Chat Group ID, which is used to preserve the
|
|
45
|
+
context of previous Chat sessions when starting a new one.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Including the Chat Group ID in the `resumed_chat_group_id` query
|
|
49
|
+
parameter is useful for seamlessly resuming a Chat after unexpected
|
|
50
|
+
network disconnections and for picking up conversations exactly where
|
|
51
|
+
you left off at a later time. This ensures preserved context across
|
|
52
|
+
multiple sessions.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
There are three ways to obtain the Chat Group ID:
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
- [Chat
|
|
59
|
+
Metadata](/reference/empathic-voice-interface-evi/chat/chat#receive.Chat%20Metadata.type):
|
|
60
|
+
Upon establishing a WebSocket connection with EVI, the user receives a
|
|
61
|
+
Chat Metadata message. This message contains a `chat_group_id`, which
|
|
62
|
+
can be used to resume conversations within this chat group in future
|
|
63
|
+
sessions.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
- [List Chats
|
|
67
|
+
endpoint](/reference/empathic-voice-interface-evi/chats/list-chats): Use
|
|
68
|
+
the GET `/v0/evi/chats` endpoint to obtain the Chat Group ID of
|
|
69
|
+
individual Chat sessions. This endpoint lists all available Chat
|
|
70
|
+
sessions and their associated Chat Group ID.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- [List Chat Groups
|
|
74
|
+
endpoint](/reference/empathic-voice-interface-evi/chat-groups/list-chat-groups):
|
|
75
|
+
Use the GET `/v0/evi/chat_groups` endpoint to obtain the Chat Group IDs
|
|
76
|
+
of all Chat Groups associated with an API key. This endpoint returns a
|
|
77
|
+
list of all available chat groups.
|
|
14
78
|
access_token:
|
|
15
79
|
type: optional<string>
|
|
16
80
|
docs: >-
|
|
17
81
|
Access token used for authenticating the client. If not provided, an
|
|
18
82
|
`api_key` must be provided to authenticate.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
The access token is generated using both an API key and a Secret key,
|
|
86
|
+
which provides an additional layer of security compared to using just an
|
|
87
|
+
API key.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
For more details, refer to the [Authentication Strategies
|
|
91
|
+
Guide](/docs/introduction/api-key#authentication-strategies).
|
|
19
92
|
api_key:
|
|
20
93
|
type: optional<string>
|
|
21
94
|
docs: >-
|
|
22
95
|
API key used for authenticating the client. If not provided, an
|
|
23
96
|
`access_token` must be provided to authenticate.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
For more details, refer to the [Authentication Strategies
|
|
100
|
+
Guide](/docs/introduction/api-key#authentication-strategies).
|
|
24
101
|
messages:
|
|
25
102
|
subscribe:
|
|
26
103
|
origin: server
|
|
@@ -36,7 +113,7 @@ channel:
|
|
|
36
113
|
data: data
|
|
37
114
|
- type: subscribe
|
|
38
115
|
body:
|
|
39
|
-
type:
|
|
116
|
+
type: assistant_end
|
|
40
117
|
imports:
|
|
41
118
|
root: __package__.yml
|
|
42
119
|
types:
|
package/Client.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
-
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
|
|
7
6
|
import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
|
|
7
|
+
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
|
|
8
8
|
export declare namespace HumeClient {
|
|
9
9
|
interface Options {
|
|
10
10
|
environment?: core.Supplier<environments.HumeEnvironment | string>;
|
|
@@ -23,8 +23,8 @@ export declare namespace HumeClient {
|
|
|
23
23
|
export declare class HumeClient {
|
|
24
24
|
protected readonly _options: HumeClient.Options;
|
|
25
25
|
constructor(_options?: HumeClient.Options);
|
|
26
|
-
protected _empathicVoice: EmpathicVoice | undefined;
|
|
27
|
-
get empathicVoice(): EmpathicVoice;
|
|
28
26
|
protected _expressionMeasurement: ExpressionMeasurement | undefined;
|
|
29
27
|
get expressionMeasurement(): ExpressionMeasurement;
|
|
28
|
+
protected _empathicVoice: EmpathicVoice | undefined;
|
|
29
|
+
get empathicVoice(): EmpathicVoice;
|
|
30
30
|
}
|
package/Client.js
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.HumeClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/expressionMeasurement/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/empathicVoice/client/Client");
|
|
9
9
|
class HumeClient {
|
|
10
10
|
constructor(_options = {}) {
|
|
11
11
|
this._options = _options;
|
|
12
12
|
}
|
|
13
|
-
get
|
|
13
|
+
get expressionMeasurement() {
|
|
14
14
|
var _a;
|
|
15
|
-
return ((_a = this.
|
|
15
|
+
return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_1.ExpressionMeasurement(this._options)));
|
|
16
16
|
}
|
|
17
|
-
get
|
|
17
|
+
get empathicVoice() {
|
|
18
18
|
var _a;
|
|
19
|
-
return ((_a = this.
|
|
19
|
+
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.HumeClient = HumeClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./resources"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./client"), exports);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface AssistantEnd {
|
|
8
8
|
/** The type of message sent through the socket; for an Assistant End message, this must be `assistant_end`. */
|
|
9
|
-
type: "
|
|
9
|
+
type: "assistant_end";
|
|
10
10
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
11
|
customSessionId?: string;
|
|
12
12
|
}
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
26
|
+
exports.empathicVoice = exports.expressionMeasurement = void 0;
|
|
28
27
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
28
|
+
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
package/dist/Client.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
-
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
|
|
7
6
|
import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
|
|
7
|
+
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
|
|
8
8
|
export declare namespace HumeClient {
|
|
9
9
|
interface Options {
|
|
10
10
|
environment?: core.Supplier<environments.HumeEnvironment | string>;
|
|
@@ -23,8 +23,8 @@ export declare namespace HumeClient {
|
|
|
23
23
|
export declare class HumeClient {
|
|
24
24
|
protected readonly _options: HumeClient.Options;
|
|
25
25
|
constructor(_options?: HumeClient.Options);
|
|
26
|
-
protected _empathicVoice: EmpathicVoice | undefined;
|
|
27
|
-
get empathicVoice(): EmpathicVoice;
|
|
28
26
|
protected _expressionMeasurement: ExpressionMeasurement | undefined;
|
|
29
27
|
get expressionMeasurement(): ExpressionMeasurement;
|
|
28
|
+
protected _empathicVoice: EmpathicVoice | undefined;
|
|
29
|
+
get empathicVoice(): EmpathicVoice;
|
|
30
30
|
}
|
package/dist/Client.js
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.HumeClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/expressionMeasurement/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/empathicVoice/client/Client");
|
|
9
9
|
class HumeClient {
|
|
10
10
|
constructor(_options = {}) {
|
|
11
11
|
this._options = _options;
|
|
12
12
|
}
|
|
13
|
-
get
|
|
13
|
+
get expressionMeasurement() {
|
|
14
14
|
var _a;
|
|
15
|
-
return ((_a = this.
|
|
15
|
+
return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_1.ExpressionMeasurement(this._options)));
|
|
16
16
|
}
|
|
17
|
-
get
|
|
17
|
+
get empathicVoice() {
|
|
18
18
|
var _a;
|
|
19
|
-
return ((_a = this.
|
|
19
|
+
return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.HumeClient = HumeClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./resources"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./client"), exports);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface AssistantEnd {
|
|
8
8
|
/** The type of message sent through the socket; for an Assistant End message, this must be `assistant_end`. */
|
|
9
|
-
type: "
|
|
9
|
+
type: "assistant_end";
|
|
10
10
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
11
|
customSessionId?: string;
|
|
12
12
|
}
|
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
26
|
+
exports.empathicVoice = exports.expressionMeasurement = void 0;
|
|
28
27
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
28
|
+
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AssistantEnd: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantEnd.Raw, Hume.empathicVoice.AssistantEnd>;
|
|
8
8
|
export declare namespace AssistantEnd {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "
|
|
10
|
+
type: "assistant_end";
|
|
11
11
|
custom_session_id?: string | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.AssistantEnd = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.AssistantEnd = core.serialization.object({
|
|
32
|
-
type: core.serialization.stringLiteral("
|
|
32
|
+
type: core.serialization.stringLiteral("assistant_end"),
|
|
33
33
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
34
34
|
});
|
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
26
|
+
exports.empathicVoice = exports.expressionMeasurement = void 0;
|
|
28
27
|
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
28
|
+
exports.empathicVoice = __importStar(require("./empathicVoice"));
|