hume 0.6.0 → 0.6.2

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.
Files changed (164) hide show
  1. package/.mock/definition/api.yml +12 -0
  2. package/.mock/definition/custom-models/__package__.yml +1392 -0
  3. package/.mock/definition/custom-models/datasets.yml +406 -0
  4. package/.mock/definition/custom-models/files.yml +263 -0
  5. package/.mock/definition/custom-models/jobs.yml +44 -0
  6. package/.mock/definition/custom-models/models.yml +303 -0
  7. package/.mock/definition/empathic-voice/__package__.yml +896 -0
  8. package/.mock/definition/empathic-voice/chat.yml +59 -0
  9. package/.mock/definition/empathic-voice/chatGroups.yml +80 -0
  10. package/.mock/definition/empathic-voice/chats.yml +86 -0
  11. package/.mock/definition/empathic-voice/configs.yml +413 -0
  12. package/.mock/definition/empathic-voice/prompts.yml +265 -0
  13. package/.mock/definition/empathic-voice/tools.yml +398 -0
  14. package/.mock/definition/expression-measurement/__package__.yml +1122 -0
  15. package/.mock/definition/expression-measurement/batch.yml +352 -0
  16. package/.mock/definition/expression-measurement/stream.yml +362 -0
  17. package/.mock/fern.config.json +4 -0
  18. package/Client.d.ts +3 -3
  19. package/Client.js +6 -6
  20. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  21. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  22. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  23. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  24. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  25. package/api/resources/empathicVoice/client/Client.js +5 -0
  26. package/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  27. package/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  28. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  39. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  40. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  41. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  42. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  43. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  44. package/api/resources/empathicVoice/resources/index.js +3 -1
  45. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  46. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  47. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  48. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  49. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  50. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  51. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  57. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  58. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  60. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  61. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  62. package/api/resources/empathicVoice/types/index.js +5 -0
  63. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  64. package/api/resources/index.d.ts +1 -1
  65. package/api/resources/index.js +2 -2
  66. package/core/form-data-utils/FormDataWrapper.js +2 -1
  67. package/dist/Client.d.ts +3 -3
  68. package/dist/Client.js +6 -6
  69. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  70. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  71. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  72. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  73. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  74. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  75. package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  76. package/dist/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  77. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  86. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  87. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  88. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  89. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  90. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  93. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  95. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  96. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  97. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  98. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  106. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  108. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  109. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  111. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  112. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  113. package/dist/api/resources/index.d.ts +1 -1
  114. package/dist/api/resources/index.js +2 -2
  115. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  116. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  117. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  118. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  119. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  130. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  131. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  132. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  133. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  134. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  135. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  136. package/dist/serialization/resources/index.d.ts +1 -1
  137. package/dist/serialization/resources/index.js +2 -2
  138. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  139. package/dist/wrapper/empathicVoice/chat/ChatClient.js +3 -0
  140. package/package.json +1 -1
  141. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  142. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  143. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  144. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  151. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  152. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  153. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  154. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  155. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  156. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  157. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  158. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  159. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  160. package/serialization/resources/empathicVoice/types/index.js +5 -0
  161. package/serialization/resources/index.d.ts +1 -1
  162. package/serialization/resources/index.js +2 -2
  163. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  164. package/wrapper/empathicVoice/chat/ChatClient.js +3 -0
@@ -0,0 +1,896 @@
1
+ types:
2
+ ReturnUserDefinedTool:
3
+ docs: A specific tool version returned from the server
4
+ properties:
5
+ tool_type:
6
+ type: string
7
+ docs: Type of Tool. Values from the ToolType enum.
8
+ id:
9
+ type: string
10
+ docs: Identifier for a Tool. Formatted as a UUID.
11
+ version:
12
+ type: integer
13
+ docs: >-
14
+ Version number for a Tool. Version numbers should be integers. The
15
+ combination of configId and version number is unique.
16
+ version_type:
17
+ type: string
18
+ docs: >-
19
+ Inidicates whether this tool is using a fixed version number or
20
+ auto-updating to the latest version. Values from the VersionType enum.
21
+ version_description:
22
+ type: optional<string>
23
+ docs: Description that is appended to a specific version of a Tool.
24
+ name:
25
+ type: string
26
+ docs: Name applied to all versions of a particular Tool.
27
+ created_on:
28
+ type: integer
29
+ docs: The timestamp when the first version of this tool was created.
30
+ modified_on:
31
+ type: integer
32
+ docs: The timestamp when this version of the tool was created.
33
+ fallback_content:
34
+ type: optional<string>
35
+ docs: Text to use if the tool fails to generate content.
36
+ description:
37
+ type: optional<string>
38
+ docs: Text describing what the tool does.
39
+ parameters:
40
+ type: string
41
+ docs: >-
42
+ Stringified JSON defining the parameters used by this version of the
43
+ Tool.
44
+ ReturnPrompt:
45
+ docs: A specific prompt version returned from the server
46
+ properties:
47
+ id:
48
+ type: string
49
+ docs: Identifier for a Prompt. Formatted as a UUID.
50
+ version:
51
+ type: integer
52
+ docs: >-
53
+ Version number for a Prompt. Version numbers should be integers. The
54
+ combination of configId and version number is unique.
55
+ version_type:
56
+ type: string
57
+ docs: >-
58
+ Inidicates whether this prompt is using a fixed version number or
59
+ auto-updating to the latest version. Values from the VersionType enum.
60
+ version_description:
61
+ type: optional<string>
62
+ docs: Description that is appended to a specific version of a Prompt.
63
+ name:
64
+ type: string
65
+ docs: Name applied to all versions of a particular Prompt.
66
+ created_on:
67
+ type: integer
68
+ docs: The timestamp when the first version of this prompt was created.
69
+ modified_on:
70
+ type: integer
71
+ docs: The timestamp when this version of the prompt was created.
72
+ text:
73
+ type: string
74
+ docs: Text used for this version of the Prompt.
75
+ PostedBuiltinTool:
76
+ docs: A configuration of a built-in tool to be posted to the server
77
+ properties:
78
+ name:
79
+ type: string
80
+ docs: Name applied to all versions of a particular Tool.
81
+ fallback_content:
82
+ type: optional<string>
83
+ docs: Text to use if the tool fails to generate content.
84
+ PostedLanguageModelModelProvider:
85
+ enum:
86
+ - OPEN_AI
87
+ - CUSTOM_LANGUAGE_MODEL
88
+ - ANTHROPIC
89
+ - FIREWORKS
90
+ - GROQ
91
+ docs: The provider of this model. Based on the enum modelProvider.
92
+ PostedLanguageModel:
93
+ docs: A LanguageModel to be posted to the server
94
+ properties:
95
+ model_provider:
96
+ type: optional<PostedLanguageModelModelProvider>
97
+ docs: The provider of this model. Based on the enum modelProvider.
98
+ model_resource:
99
+ type: optional<string>
100
+ docs: String that specifies the model to use with modelProvider.
101
+ temperature:
102
+ type: optional<double>
103
+ docs: Model temperature.
104
+ PostedPromptSpec:
105
+ docs: A specific prompt identifier to be posted to the server
106
+ properties:
107
+ id:
108
+ type: string
109
+ docs: Identifier for a Prompt. Formatted as a UUID.
110
+ version:
111
+ type: optional<integer>
112
+ docs: >-
113
+ Version number for a Prompt. Version numbers should be integers. The
114
+ combination of configId and version number is unique.
115
+ PostedUserDefinedToolSpec:
116
+ docs: A specific tool identifier to be posted to the server
117
+ properties:
118
+ id:
119
+ type: string
120
+ docs: Identifier for a Tool. Formatted as a UUID.
121
+ version:
122
+ type: optional<integer>
123
+ docs: >-
124
+ Version number for a Tool. Version numbers should be integers. The
125
+ combination of configId and version number is unique.
126
+ PostedVoiceName:
127
+ enum:
128
+ - ITO
129
+ - DACHER
130
+ docs: String with the name of the voice to use.
131
+ PostedVoice:
132
+ docs: A Voice specification posted to the server
133
+ properties:
134
+ provider:
135
+ type: optional<literal<"HUME_AI">>
136
+ docs: The provider of the voice to use.
137
+ name:
138
+ type: PostedVoiceName
139
+ docs: String with the name of the voice to use.
140
+ ReturnBuiltinTool:
141
+ docs: A specific builtin tool version returned from the server
142
+ properties:
143
+ tool_type:
144
+ type: string
145
+ docs: Type of Tool. Values from the ToolType enum.
146
+ name:
147
+ type: string
148
+ docs: Name applied to all versions of a particular Tool.
149
+ fallback_content:
150
+ type: optional<string>
151
+ docs: Text to use if the tool fails to generate content.
152
+ ReturnConfig:
153
+ docs: A specific config version returned from the server
154
+ properties:
155
+ id:
156
+ type: optional<string>
157
+ docs: Identifier for a Config. Formatted as a UUID.
158
+ version:
159
+ type: optional<integer>
160
+ docs: >-
161
+ Version number for a Config. Version numbers should be integers. The
162
+ combination of configId and version number is unique.
163
+ version_description:
164
+ type: optional<string>
165
+ docs: Description that is appended to a specific version of a Config.
166
+ name:
167
+ type: optional<string>
168
+ docs: Name applied to all versions of a particular Config.
169
+ created_on:
170
+ type: optional<integer>
171
+ docs: The timestamp when the first version of this config was created.
172
+ modified_on:
173
+ type: optional<integer>
174
+ docs: The timestamp when this version of the config was created.
175
+ prompt: optional<ReturnPrompt>
176
+ voice: optional<ReturnVoice>
177
+ language_model: optional<ReturnLanguageModel>
178
+ tools:
179
+ type: optional<list<optional<ReturnUserDefinedTool>>>
180
+ docs: List of user-defined tools associated with this config.
181
+ builtin_tools:
182
+ type: optional<list<optional<ReturnBuiltinTool>>>
183
+ docs: List of built-in tools associated with this config
184
+ ReturnLanguageModel:
185
+ docs: A specific LanguageModel
186
+ properties:
187
+ model_provider:
188
+ type: optional<string>
189
+ docs: The provider of this model. Based on the enum modelProvider.
190
+ model_resource:
191
+ type: optional<string>
192
+ docs: String that specifies the model to use with modelProvider.
193
+ temperature:
194
+ type: optional<double>
195
+ docs: Model temperature.
196
+ ReturnVoice:
197
+ docs: A specific voice specification
198
+ properties:
199
+ provider:
200
+ type: string
201
+ docs: The provider of the voice to use. Based on the enum VoiceProvider.
202
+ name:
203
+ type: string
204
+ docs: String with the name of the voice to use.
205
+ ReturnPagedUserDefinedTools:
206
+ docs: A paginated list of user defined tool versions returned from the server
207
+ properties:
208
+ page_number:
209
+ type: integer
210
+ docs: The page number of the returned results.
211
+ page_size:
212
+ type: integer
213
+ docs: The number of results returned per page.
214
+ tools_page:
215
+ docs: List of tools returned for the specified page number and page size.
216
+ type: list<optional<ReturnUserDefinedTool>>
217
+ ReturnPagedPrompts:
218
+ docs: A paginated list of prompt versions returned from the server
219
+ properties:
220
+ page_number:
221
+ type: integer
222
+ docs: The page number of the returned results.
223
+ page_size:
224
+ type: integer
225
+ docs: The number of results returned per page.
226
+ prompts_page:
227
+ docs: List of prompts returned for the specified page number and page size.
228
+ type: list<optional<ReturnPrompt>>
229
+ ReturnPagedConfigs:
230
+ docs: A paginated list of config versions returned from the server
231
+ properties:
232
+ page_number:
233
+ type: optional<integer>
234
+ docs: The page number of the returned results.
235
+ page_size:
236
+ type: optional<integer>
237
+ docs: The number of results returned per page.
238
+ configs_page:
239
+ type: optional<list<ReturnConfig>>
240
+ docs: List of prompts returned for the specified page number and page size.
241
+ ReturnChat:
242
+ docs: A description of chat and its status
243
+ properties:
244
+ id:
245
+ type: string
246
+ docs: Identifier for a chat. Formatted as a UUID.
247
+ chat_group_id:
248
+ type: string
249
+ docs: >-
250
+ Identifier for the chat group. Any chat resumed from this chat will
251
+ have the same chat_group_id. Formatted as a UUID.
252
+ tag:
253
+ type: optional<string>
254
+ docs: >-
255
+ Optional tag applied to this chat used to group chats by user,
256
+ application, etc.
257
+ status:
258
+ type: string
259
+ docs: The status of the chat. Values from the ChatStatus enum.
260
+ start_timestamp:
261
+ type: integer
262
+ docs: >-
263
+ The timestamp when the chat started, formatted as a Unix epoch
264
+ milliseconds.
265
+ end_timestamp:
266
+ type: optional<integer>
267
+ docs: >-
268
+ The timestamp when the chat ended, formatted as a Unix epoch
269
+ milliseconds.
270
+ event_count:
271
+ type: optional<integer>
272
+ docs: The total number of events currently in this chat.
273
+ metadata:
274
+ type: optional<string>
275
+ docs: Stringified JSON with additional metadata about the chat.
276
+ config: optional<ReturnConfigSpec>
277
+ ReturnConfigSpec:
278
+ docs: An id/version number for a specific config version
279
+ properties:
280
+ id:
281
+ type: string
282
+ docs: Identifier for a Config. Formatted as a UUID.
283
+ version:
284
+ type: optional<integer>
285
+ docs: >-
286
+ Version number for a Config. Version numbers should be integers. The
287
+ combination of configId and version number is unique.
288
+ ReturnPagedChats:
289
+ docs: A paginated list of chats returned from the server
290
+ properties:
291
+ page_number:
292
+ type: integer
293
+ docs: The page number of the returned results.
294
+ page_size:
295
+ type: integer
296
+ docs: The number of results returned per page.
297
+ chats_page:
298
+ docs: >-
299
+ List of chats and their metadata returned for the specified page
300
+ number and page size.
301
+ type: list<ReturnChat>
302
+ ReturnChatEvent:
303
+ docs: A description of a single event in a chat returned from the server
304
+ properties:
305
+ id:
306
+ type: string
307
+ docs: Identifier for a chat event. Formatted as a UUID.
308
+ chat_id:
309
+ type: string
310
+ docs: Identifier for the chat this event occurred in. Formatted as a UUID.
311
+ timestamp:
312
+ type: integer
313
+ docs: >-
314
+ The timestamp when the chat event occurred, formatted as a Unix epoch
315
+ milliseconds.
316
+ role:
317
+ type: string
318
+ docs: >-
319
+ The role of the user who generated the chat event. Values from the
320
+ Role enum.
321
+ type:
322
+ type: string
323
+ docs: The type of chat event. Values from the ChatEventType enum.
324
+ message_text:
325
+ type: optional<string>
326
+ docs: >-
327
+ The text of the chat message, either transcribed from speaker audio or
328
+ generated by the agent.
329
+ emotion_features:
330
+ type: optional<string>
331
+ docs: >-
332
+ Stringified JSON with data about emotional content/prosody of the
333
+ event.
334
+ metadata:
335
+ type: optional<string>
336
+ docs: Stringified JSON with additional metadata about the chat event.
337
+ ReturnChatPagedEvents:
338
+ docs: >-
339
+ A description of chat status with a paginated list of chat events returned
340
+ from the server
341
+ properties:
342
+ id:
343
+ type: string
344
+ docs: Identifier for a chat. Formatted as a UUID.
345
+ chat_group_id:
346
+ type: string
347
+ docs: >-
348
+ Identifier for the chat group. Any chat resumed from this chat will
349
+ have the same chat_group_id. Formatted as a UUID.
350
+ tag:
351
+ type: optional<string>
352
+ docs: >-
353
+ Optional tag applied to this chat used to group chats by user,
354
+ application, etc.
355
+ status:
356
+ type: string
357
+ docs: The status of the chat. Values from the ChatStatus enum.
358
+ start_timestamp:
359
+ type: integer
360
+ docs: >-
361
+ The timestamp when the chat started, formatted as a Unix epoch
362
+ milliseconds.
363
+ end_timestamp:
364
+ type: optional<integer>
365
+ docs: >-
366
+ The timestamp when the chat ended, formatted as a Unix epoch
367
+ milliseconds.
368
+ events_page:
369
+ docs: List of chat events with the specified page number and page size.
370
+ type: list<ReturnChatEvent>
371
+ metadata:
372
+ type: optional<string>
373
+ docs: Stringified JSON with additional metadata about the chat.
374
+ page_number:
375
+ type: integer
376
+ docs: The page number of the returned results.
377
+ page_size:
378
+ type: integer
379
+ docs: The number of results returned per page.
380
+ config: optional<ReturnConfigSpec>
381
+ ReturnActiveChatCount:
382
+ docs: A description of current chat chat sessions for a user
383
+ properties:
384
+ timestamp:
385
+ type: integer
386
+ docs: >-
387
+ The timestamp for when chat status was measured. Formatted as a Unix
388
+ epoch milliseconds.
389
+ total_user_active_chats:
390
+ type: integer
391
+ docs: The total number of active chats for this user.
392
+ max_allowed_active_chats:
393
+ type: optional<integer>
394
+ docs: The maximum number of concurrent active chats for this user.
395
+ more_active_chats_allowed:
396
+ type: boolean
397
+ docs: Boolean indicating if the user is allowed to start more chats.
398
+ per_tag:
399
+ type: optional<list<optional<ReturnActiveChatCountPerTag>>>
400
+ docs: Optional List of chat counts per tag.
401
+ ReturnActiveChatCountPerTag:
402
+ docs: A description of current chat chat sessions per tag
403
+ properties:
404
+ tag:
405
+ type: string
406
+ docs: User tag applied to a chat.
407
+ total_tag_active_chats:
408
+ type: integer
409
+ docs: The total number of active chats for this user with the specified tag.
410
+ ReturnChatGroupPagedEvents:
411
+ docs: >-
412
+ A paginated list of chat events that occurred across chats in this
413
+ chat_group from the server
414
+ properties:
415
+ id:
416
+ type: string
417
+ docs: >-
418
+ Identifier for the chat group. Any chat resumed from this chat will
419
+ have the same chat_group_id. Formatted as a UUID.
420
+ page_number:
421
+ type: integer
422
+ docs: The page number of the returned results.
423
+ page_size:
424
+ type: integer
425
+ docs: The number of results returned per page.
426
+ pagination_direction:
427
+ type: string
428
+ docs: The direction of the pagination (ASC or DESC).
429
+ events_page:
430
+ docs: >-
431
+ List of chat_events returned for the specified page number and page
432
+ size.
433
+ type: list<ReturnChatEvent>
434
+ ReturnChatGroupPagedChats:
435
+ docs: >-
436
+ A description of chat_group and its status with a paginated list of each
437
+ chat in the chat_group
438
+ properties:
439
+ id:
440
+ type: string
441
+ docs: >-
442
+ Identifier for the chat group. Any chat resumed from this chat will
443
+ have the same chat_group_id. Formatted as a UUID.
444
+ first_start_timestamp:
445
+ type: integer
446
+ docs: >-
447
+ The timestamp when the first chat in this chat group started,
448
+ formatted as a Unix epoch milliseconds.
449
+ most_recent_start_timestamp:
450
+ type: integer
451
+ docs: >-
452
+ The timestamp when the most recent chat in this chat group started,
453
+ formatted as a Unix epoch milliseconds.
454
+ num_chats:
455
+ type: integer
456
+ docs: The total number of chats in this chat group.
457
+ page_number:
458
+ type: integer
459
+ docs: The page number of the returned results.
460
+ page_size:
461
+ type: integer
462
+ docs: The number of results returned per page.
463
+ chats_page:
464
+ docs: >-
465
+ List of chats and their metadata returned for the specified page
466
+ number and page size.
467
+ type: list<ReturnChat>
468
+ active: optional<boolean>
469
+ ReturnChatGroup:
470
+ docs: A description of chat_group and its status
471
+ properties:
472
+ id:
473
+ type: string
474
+ docs: >-
475
+ Identifier for the chat group. Any chat resumed from this chat will
476
+ have the same chat_group_id. Formatted as a UUID.
477
+ first_start_timestamp:
478
+ type: integer
479
+ docs: >-
480
+ The timestamp when the first chat in this chat group started,
481
+ formatted as a Unix epoch milliseconds.
482
+ most_recent_start_timestamp:
483
+ type: integer
484
+ docs: >-
485
+ The timestamp when the most recent chat in this chat group started,
486
+ formatted as a Unix epoch milliseconds.
487
+ most_recent_chat_id:
488
+ type: optional<string>
489
+ docs: >-
490
+ The chat_id of the most recent chat in this chat group. Formatted as a
491
+ UUID.
492
+ num_chats:
493
+ type: integer
494
+ docs: The total number of chats in this chat group.
495
+ active: optional<boolean>
496
+ ReturnPagedChatGroups:
497
+ docs: A paginated list of chat_groups returned from the server
498
+ properties:
499
+ page_number:
500
+ type: integer
501
+ docs: The page number of the returned results.
502
+ page_size:
503
+ type: integer
504
+ docs: The number of results returned per page.
505
+ chat_groups_page:
506
+ docs: >-
507
+ List of chat_groups and their metadata returned for the specified page
508
+ number and page size.
509
+ type: list<ReturnChatGroup>
510
+ AssistantEnd:
511
+ docs: When provided, the output is an assistant end message.
512
+ properties:
513
+ custom_session_id: optional<string>
514
+ type:
515
+ type: literal<"assistant_end">
516
+ docs: >-
517
+ The type of message sent through the socket; for an Assistant End
518
+ message, this must be 'assistant_end'.
519
+ AssistantInput:
520
+ docs: When provided, the input is spoken by EVI.
521
+ properties:
522
+ custom_session_id: optional<string>
523
+ text:
524
+ type: string
525
+ docs: Text to be synthesized.
526
+ type:
527
+ type: literal<"assistant_input">
528
+ docs: >-
529
+ The type of message sent through the socket; for an Assistant Input
530
+ message, this must be 'assistant_input'.
531
+ AssistantMessage:
532
+ docs: When provided, the output is an assistant message.
533
+ properties:
534
+ custom_session_id: optional<string>
535
+ from_text:
536
+ type: boolean
537
+ docs: Indicates if this message was constructed from a text input message.
538
+ id:
539
+ type: optional<string>
540
+ docs: ID of the assistant message.
541
+ message:
542
+ type: ChatMessage
543
+ docs: Transcript of the message.
544
+ models:
545
+ type: Inference
546
+ docs: Inference model results.
547
+ type:
548
+ type: literal<"assistant_message">
549
+ docs: >-
550
+ The type of message sent through the socket; for an Assistant Message,
551
+ this must be 'assistant_message'.
552
+ AudioConfiguration:
553
+ properties:
554
+ channels:
555
+ type: integer
556
+ docs: Number of channels.
557
+ encoding:
558
+ type: Encoding
559
+ docs: Audio encoding.
560
+ sample_rate:
561
+ type: integer
562
+ docs: Audio sample rate.
563
+ AudioInput:
564
+ docs: When provided, the input is audio.
565
+ properties:
566
+ custom_session_id: optional<string>
567
+ data:
568
+ type: string
569
+ docs: Base64 encoded audio input.
570
+ validation:
571
+ format: base64
572
+ type:
573
+ type: literal<"audio_input">
574
+ docs: >-
575
+ The type of message sent through the socket; for an Audio Input
576
+ message, this must be 'audio_input'.
577
+ AudioOutput:
578
+ docs: When provided, the output is audio.
579
+ properties:
580
+ custom_session_id: optional<string>
581
+ data:
582
+ type: string
583
+ docs: Base64 encoded audio output.
584
+ validation:
585
+ format: base64
586
+ id:
587
+ type: string
588
+ docs: ID of the audio output.
589
+ type:
590
+ type: literal<"audio_output">
591
+ docs: >-
592
+ The type of message sent through the socket; for an Audio Output
593
+ message, this must be 'audio_output'.
594
+ BuiltInTool: literal<"web_search">
595
+ BuiltinToolConfig:
596
+ properties:
597
+ fallback_content: optional<string>
598
+ name: BuiltInTool
599
+ ChatMessageToolResult:
600
+ discriminated: false
601
+ docs: Function call response from client.
602
+ union:
603
+ - ToolResponseMessage
604
+ - ToolErrorMessage
605
+ ChatMessage:
606
+ properties:
607
+ content: optional<string>
608
+ role:
609
+ type: Role
610
+ docs: Role of who is providing the message.
611
+ tool_call: optional<ToolCallMessage>
612
+ tool_result:
613
+ type: optional<ChatMessageToolResult>
614
+ docs: Function call response from client.
615
+ ChatMetadata:
616
+ docs: When provided, the output is a chat metadata message.
617
+ properties:
618
+ chat_group_id:
619
+ type: string
620
+ docs: ID of the chat group. Used to resume a chat.
621
+ chat_id:
622
+ type: string
623
+ docs: ID of the chat.
624
+ custom_session_id: optional<string>
625
+ type:
626
+ type: literal<"chat_metadata">
627
+ docs: >-
628
+ The type of message sent through the socket; for a Chat Metadata
629
+ message, this must be 'chat_metadata'.
630
+ Context:
631
+ properties:
632
+ text:
633
+ type: string
634
+ docs: User context to inject.
635
+ type:
636
+ type: optional<ContextType>
637
+ docs: The persistence level of the injected context.
638
+ ContextType:
639
+ enum:
640
+ - editable
641
+ - persistent
642
+ - temporary
643
+ EmotionScores:
644
+ properties:
645
+ Admiration: double
646
+ Adoration: double
647
+ Aesthetic Appreciation: double
648
+ Amusement: double
649
+ Anger: double
650
+ Anxiety: double
651
+ Awe: double
652
+ Awkwardness: double
653
+ Boredom: double
654
+ Calmness: double
655
+ Concentration: double
656
+ Confusion: double
657
+ Contemplation: double
658
+ Contempt: double
659
+ Contentment: double
660
+ Craving: double
661
+ Desire: double
662
+ Determination: double
663
+ Disappointment: double
664
+ Disgust: double
665
+ Distress: double
666
+ Doubt: double
667
+ Ecstasy: double
668
+ Embarrassment: double
669
+ Empathic Pain: double
670
+ Entrancement: double
671
+ Envy: double
672
+ Excitement: double
673
+ Fear: double
674
+ Guilt: double
675
+ Horror: double
676
+ Interest: double
677
+ Joy: double
678
+ Love: double
679
+ Nostalgia: double
680
+ Pain: double
681
+ Pride: double
682
+ Realization: double
683
+ Relief: double
684
+ Romance: double
685
+ Sadness: double
686
+ Satisfaction: double
687
+ Shame: double
688
+ Surprise (negative): double
689
+ Surprise (positive): double
690
+ Sympathy: double
691
+ Tiredness: double
692
+ Triumph: double
693
+ Encoding: literal<"linear16">
694
+ WebSocketError:
695
+ docs: When provided, the output is an error message.
696
+ properties:
697
+ code:
698
+ type: string
699
+ docs: Error code.
700
+ custom_session_id: optional<string>
701
+ message:
702
+ type: string
703
+ docs: Error message.
704
+ slug:
705
+ type: string
706
+ docs: Error slug.
707
+ type:
708
+ type: literal<"error">
709
+ docs: >-
710
+ The type of message sent through the socket; for a Web Socket Error
711
+ message, this must be 'error'.
712
+ ErrorLevel: literal<"warn">
713
+ Inference:
714
+ properties:
715
+ prosody: optional<ProsodyInference>
716
+ MillisecondInterval:
717
+ properties:
718
+ begin:
719
+ type: integer
720
+ docs: Start time of the interval in milliseconds.
721
+ end:
722
+ type: integer
723
+ docs: End time of the interval in milliseconds.
724
+ PauseAssistantMessage:
725
+ docs: >-
726
+ Pause responses from EVI. Chat history is still saved and sent after
727
+ resuming.
728
+ properties:
729
+ custom_session_id: optional<string>
730
+ type:
731
+ type: optional<literal<"pause_assistant_message">>
732
+ docs: >-
733
+ The type of message sent through the socket; for a Pause Assistant
734
+ message, this must be 'pause_assistant_message'.
735
+ ProsodyInference:
736
+ properties:
737
+ scores: EmotionScores
738
+ ResumeAssistantMessage:
739
+ docs: >-
740
+ Resume responses from EVI. Chat history sent while paused will now be
741
+ sent.
742
+ properties:
743
+ custom_session_id: optional<string>
744
+ type:
745
+ type: optional<literal<"resume_assistant_message">>
746
+ docs: >-
747
+ The type of message sent through the socket; for a Resume Assistant
748
+ message, this must be 'resume_assistant_message'.
749
+ Role:
750
+ enum:
751
+ - assistant
752
+ - system
753
+ - user
754
+ - all
755
+ - tool
756
+ SessionSettings:
757
+ docs: Settings for this chat session.
758
+ properties:
759
+ audio: optional<AudioConfiguration>
760
+ builtin_tools: optional<list<BuiltinToolConfig>>
761
+ custom_session_id: optional<string>
762
+ language_model_api_key: optional<string>
763
+ system_prompt: optional<string>
764
+ tools: optional<list<Tool>>
765
+ type:
766
+ type: literal<"session_settings">
767
+ docs: >-
768
+ The type of message sent through the socket; for a Session Settings
769
+ message, this must be 'session_settings'.
770
+ Tool:
771
+ properties:
772
+ description: optional<string>
773
+ fallback_content: optional<string>
774
+ name:
775
+ type: string
776
+ docs: Name of the tool.
777
+ parameters:
778
+ type: string
779
+ docs: Parameters of the tool. Is a stringified JSON schema.
780
+ type:
781
+ type: ToolType
782
+ docs: Type of tool.
783
+ ToolCallMessage:
784
+ docs: When provided, the output is a tool call.
785
+ properties:
786
+ custom_session_id: optional<string>
787
+ name:
788
+ type: string
789
+ docs: Name of the tool called.
790
+ parameters:
791
+ type: string
792
+ docs: Parameters of the tool call. Is a stringified JSON schema.
793
+ response_required:
794
+ type: boolean
795
+ docs: Whether a response is required from the developer.
796
+ tool_call_id:
797
+ type: string
798
+ docs: ID of the tool call.
799
+ tool_type:
800
+ type: ToolType
801
+ docs: Type of tool called, either 'builtin' or 'function'.
802
+ type:
803
+ type: optional<literal<"tool_call">>
804
+ docs: >-
805
+ The type of message sent through the socket; for a Tool Call message,
806
+ this must be 'tool_call'.
807
+ ToolErrorMessage:
808
+ docs: When provided, the output is a function call error.
809
+ properties:
810
+ code: optional<string>
811
+ content: optional<string>
812
+ custom_session_id: optional<string>
813
+ error:
814
+ type: string
815
+ docs: Error message from the tool call, not exposed to the LLM or user.
816
+ level: optional<ErrorLevel>
817
+ tool_call_id:
818
+ type: string
819
+ docs: ID of the tool call.
820
+ tool_type: optional<ToolType>
821
+ type:
822
+ type: optional<literal<"tool_error">>
823
+ docs: >-
824
+ The type of message sent through the socket; for a Tool Error message,
825
+ this must be 'tool_error'.
826
+ ToolResponseMessage:
827
+ docs: When provided, the output is a function call response.
828
+ properties:
829
+ content:
830
+ type: string
831
+ docs: Return value of the tool call.
832
+ custom_session_id: optional<string>
833
+ tool_call_id:
834
+ type: string
835
+ docs: ID of the tool call.
836
+ tool_name: optional<string>
837
+ tool_type: optional<ToolType>
838
+ type:
839
+ type: optional<literal<"tool_response">>
840
+ docs: >-
841
+ The type of message sent through the socket; for a Tool Response
842
+ message, this must be ‘tool_response’.
843
+ ToolType:
844
+ enum:
845
+ - builtin
846
+ - function
847
+ UserInput:
848
+ docs: User text to insert into the conversation.
849
+ properties:
850
+ custom_session_id: optional<string>
851
+ text:
852
+ type: string
853
+ docs: User text to insert into the conversation.
854
+ type:
855
+ type: literal<"user_input">
856
+ docs: >-
857
+ The type of message sent through the socket; for a User Input message,
858
+ this must be ‘user_input’.
859
+ UserInterruption:
860
+ docs: When provided, the output is an interruption.
861
+ properties:
862
+ custom_session_id: optional<string>
863
+ time:
864
+ type: integer
865
+ docs: Unix timestamp of the detected user interruption.
866
+ type:
867
+ type: literal<"user_interruption">
868
+ docs: >-
869
+ The type of message sent through the socket; for a User Interruption
870
+ message, this must be 'user_interruption'.
871
+ UserMessage:
872
+ docs: When provided, the output is a user message.
873
+ properties:
874
+ custom_session_id: optional<string>
875
+ from_text:
876
+ type: boolean
877
+ docs: Indicates if this message was constructed from a text input message.
878
+ message:
879
+ type: ChatMessage
880
+ docs: Transcript of the message.
881
+ models:
882
+ type: Inference
883
+ docs: Inference model results.
884
+ time:
885
+ type: MillisecondInterval
886
+ docs: Start and End time of user message.
887
+ type: literal<"user_message">
888
+ TtsInput:
889
+ properties:
890
+ type: optional<literal<"tts">>
891
+ TextInput:
892
+ properties:
893
+ type: optional<literal<"text_input">>
894
+ FunctionCallResponseInput:
895
+ properties:
896
+ type: optional<literal<"function_call_response">>