Skip to content

Commit b9194e9

Browse files
(feat): regenerate with latest API definition
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 965c090 commit b9194e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5420
-404
lines changed

.mock/definition/empathic-voice/__package__.yml

+130-38
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ types:
1616
version_type:
1717
type: string
1818
docs: >-
19-
Inidicates whether this tool is using a fixed version number or
19+
Indicates whether this tool is using a fixed version number or
2020
auto-updating to the latest version. Values from the VersionType enum.
2121
version_description:
2222
type: optional<string>
@@ -55,7 +55,7 @@ types:
5555
version_type:
5656
type: string
5757
docs: >-
58-
Inidicates whether this prompt is using a fixed version number or
58+
Indicates whether this prompt is using a fixed version number or
5959
auto-updating to the latest version. Values from the VersionType enum.
6060
version_description:
6161
type: optional<string>
@@ -175,12 +175,8 @@ types:
175175
prompt: optional<ReturnPrompt>
176176
voice: optional<ReturnVoice>
177177
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
178+
tools: optional<ReturnUserDefinedTool>
179+
builtin_tools: optional<ReturnBuiltinTool>
184180
ReturnLanguageModel:
185181
docs: A specific LanguageModel
186182
properties:
@@ -510,7 +506,11 @@ types:
510506
AssistantEnd:
511507
docs: When provided, the output is an assistant end message.
512508
properties:
513-
custom_session_id: optional<string>
509+
custom_session_id:
510+
type: optional<string>
511+
docs: >-
512+
Used to manage conversational state, correlate frontend and backend
513+
data, and persist conversations across EVI sessions.
514514
type:
515515
type: literal<"assistant_end">
516516
docs: >-
@@ -519,7 +519,11 @@ types:
519519
AssistantInput:
520520
docs: When provided, the input is spoken by EVI.
521521
properties:
522-
custom_session_id: optional<string>
522+
custom_session_id:
523+
type: optional<string>
524+
docs: >-
525+
Used to manage conversational state, correlate frontend and backend
526+
data, and persist conversations across EVI sessions.
523527
text:
524528
type: string
525529
docs: Text to be synthesized.
@@ -531,7 +535,11 @@ types:
531535
AssistantMessage:
532536
docs: When provided, the output is an assistant message.
533537
properties:
534-
custom_session_id: optional<string>
538+
custom_session_id:
539+
type: optional<string>
540+
docs: >-
541+
Used to manage conversational state, correlate frontend and backend
542+
data, and persist conversations across EVI sessions.
535543
from_text:
536544
type: boolean
537545
docs: Indicates if this message was constructed from a text input message.
@@ -563,7 +571,11 @@ types:
563571
AudioInput:
564572
docs: When provided, the input is audio.
565573
properties:
566-
custom_session_id: optional<string>
574+
custom_session_id:
575+
type: optional<string>
576+
docs: >-
577+
Used to manage conversational state, correlate frontend and backend
578+
data, and persist conversations across EVI sessions.
567579
data:
568580
type: string
569581
docs: Base64 encoded audio input.
@@ -577,7 +589,11 @@ types:
577589
AudioOutput:
578590
docs: When provided, the output is audio.
579591
properties:
580-
custom_session_id: optional<string>
592+
custom_session_id:
593+
type: optional<string>
594+
docs: >-
595+
Used to manage conversational state, correlate frontend and backend
596+
data, and persist conversations across EVI sessions.
581597
data:
582598
type: string
583599
docs: Base64 encoded audio output.
@@ -604,11 +620,15 @@ types:
604620
- ToolErrorMessage
605621
ChatMessage:
606622
properties:
607-
content: optional<string>
623+
content:
624+
type: optional<string>
625+
docs: Transcript of the message.
608626
role:
609627
type: Role
610628
docs: Role of who is providing the message.
611-
tool_call: optional<ToolCallMessage>
629+
tool_call:
630+
type: optional<ToolCallMessage>
631+
docs: Function call name and arguments.
612632
tool_result:
613633
type: optional<ChatMessageToolResult>
614634
docs: Function call response from client.
@@ -621,7 +641,11 @@ types:
621641
chat_id:
622642
type: string
623643
docs: ID of the chat.
624-
custom_session_id: optional<string>
644+
custom_session_id:
645+
type: optional<string>
646+
docs: >-
647+
Used to manage conversational state, correlate frontend and backend
648+
data, and persist conversations across EVI sessions.
625649
type:
626650
type: literal<"chat_metadata">
627651
docs: >-
@@ -697,7 +721,11 @@ types:
697721
code:
698722
type: string
699723
docs: Error code.
700-
custom_session_id: optional<string>
724+
custom_session_id:
725+
type: optional<string>
726+
docs: >-
727+
Used to manage conversational state, correlate frontend and backend
728+
data, and persist conversations across EVI sessions.
701729
message:
702730
type: string
703731
docs: Error message.
@@ -712,7 +740,9 @@ types:
712740
ErrorLevel: literal<"warn">
713741
Inference:
714742
properties:
715-
prosody: optional<ProsodyInference>
743+
prosody:
744+
type: optional<ProsodyInference>
745+
docs: Prosody model inference results.
716746
MillisecondInterval:
717747
properties:
718748
begin:
@@ -726,7 +756,11 @@ types:
726756
Pause responses from EVI. Chat history is still saved and sent after
727757
resuming.
728758
properties:
729-
custom_session_id: optional<string>
759+
custom_session_id:
760+
type: optional<string>
761+
docs: >-
762+
Used to manage conversational state, correlate frontend and backend
763+
data, and persist conversations across EVI sessions.
730764
type:
731765
type: optional<literal<"pause_assistant_message">>
732766
docs: >-
@@ -740,7 +774,11 @@ types:
740774
Resume responses from EVI. Chat history sent while paused will now be
741775
sent.
742776
properties:
743-
custom_session_id: optional<string>
777+
custom_session_id:
778+
type: optional<string>
779+
docs: >-
780+
Used to manage conversational state, correlate frontend and backend
781+
data, and persist conversations across EVI sessions.
744782
type:
745783
type: optional<literal<"resume_assistant_message">>
746784
docs: >-
@@ -756,21 +794,43 @@ types:
756794
SessionSettings:
757795
docs: Settings for this chat session.
758796
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>>
797+
audio:
798+
type: optional<AudioConfiguration>
799+
docs: Audio configuration.
800+
builtin_tools:
801+
type: optional<list<BuiltinToolConfig>>
802+
docs: List of builtin tools to enable.
803+
custom_session_id:
804+
type: optional<string>
805+
docs: >-
806+
Used to manage conversational state, correlate frontend and backend
807+
data, and persist conversations across EVI sessions.
808+
language_model_api_key:
809+
type: optional<string>
810+
docs: Third party API key for the language model used for non-Hume models.
811+
system_prompt:
812+
type: optional<string>
813+
docs: >-
814+
Instructions for how the system should respond to the user. Set to
815+
null to use the default system prompt.
816+
tools:
817+
type: optional<list<Tool>>
818+
docs: List of tools to enable.
765819
type:
766820
type: literal<"session_settings">
767821
docs: >-
768822
The type of message sent through the socket; for a Session Settings
769823
message, this must be 'session_settings'.
770824
Tool:
771825
properties:
772-
description: optional<string>
773-
fallback_content: optional<string>
826+
description:
827+
type: optional<string>
828+
docs: Description of the function.
829+
fallback_content:
830+
type: optional<string>
831+
docs: >-
832+
Fallback content of the tool, passed to the LLM if the function call
833+
response fails.
774834
name:
775835
type: string
776836
docs: Name of the tool.
@@ -783,7 +843,11 @@ types:
783843
ToolCallMessage:
784844
docs: When provided, the output is a tool call.
785845
properties:
786-
custom_session_id: optional<string>
846+
custom_session_id:
847+
type: optional<string>
848+
docs: >-
849+
Used to manage conversational state, correlate frontend and backend
850+
data, and persist conversations across EVI sessions.
787851
name:
788852
type: string
789853
docs: Name of the tool called.
@@ -807,17 +871,29 @@ types:
807871
ToolErrorMessage:
808872
docs: When provided, the output is a function call error.
809873
properties:
810-
code: optional<string>
811-
content: optional<string>
812-
custom_session_id: optional<string>
874+
code:
875+
type: optional<string>
876+
docs: Error code.
877+
content:
878+
type: optional<string>
879+
docs: The content passed to the LLM in place of the tool response.
880+
custom_session_id:
881+
type: optional<string>
882+
docs: >-
883+
Used to manage conversational state, correlate frontend and backend
884+
data, and persist conversations across EVI sessions.
813885
error:
814886
type: string
815887
docs: Error message from the tool call, not exposed to the LLM or user.
816-
level: optional<ErrorLevel>
888+
level:
889+
type: optional<ErrorLevel>
890+
docs: Error level.
817891
tool_call_id:
818892
type: string
819893
docs: ID of the tool call.
820-
tool_type: optional<ToolType>
894+
tool_type:
895+
type: optional<ToolType>
896+
docs: Type of tool called, either 'builtin' or 'function'.
821897
type:
822898
type: optional<literal<"tool_error">>
823899
docs: >-
@@ -829,7 +905,11 @@ types:
829905
content:
830906
type: string
831907
docs: Return value of the tool call.
832-
custom_session_id: optional<string>
908+
custom_session_id:
909+
type: optional<string>
910+
docs: >-
911+
Used to manage conversational state, correlate frontend and backend
912+
data, and persist conversations across EVI sessions.
833913
tool_call_id:
834914
type: string
835915
docs: ID of the tool call.
@@ -847,7 +927,11 @@ types:
847927
UserInput:
848928
docs: User text to insert into the conversation.
849929
properties:
850-
custom_session_id: optional<string>
930+
custom_session_id:
931+
type: optional<string>
932+
docs: >-
933+
Used to manage conversational state, correlate frontend and backend
934+
data, and persist conversations across EVI sessions.
851935
text:
852936
type: string
853937
docs: User text to insert into the conversation.
@@ -859,7 +943,11 @@ types:
859943
UserInterruption:
860944
docs: When provided, the output is an interruption.
861945
properties:
862-
custom_session_id: optional<string>
946+
custom_session_id:
947+
type: optional<string>
948+
docs: >-
949+
Used to manage conversational state, correlate frontend and backend
950+
data, and persist conversations across EVI sessions.
863951
time:
864952
type: integer
865953
docs: Unix timestamp of the detected user interruption.
@@ -871,7 +959,11 @@ types:
871959
UserMessage:
872960
docs: When provided, the output is a user message.
873961
properties:
874-
custom_session_id: optional<string>
962+
custom_session_id:
963+
type: optional<string>
964+
docs: >-
965+
Used to manage conversational state, correlate frontend and backend
966+
data, and persist conversations across EVI sessions.
875967
from_text:
876968
type: boolean
877969
docs: Indicates if this message was constructed from a text input message.

.mock/definition/empathic-voice/chat.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel:
2-
path: /chat
2+
path: /v0/evi/chat
33
auth: false
44
query-parameters:
55
access_token:

.mock/definition/empathic-voice/chatGroups.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ service:
77
list-chat-groups:
88
path: /v0/evi/chat_groups
99
method: GET
10-
auth: false
10+
auth: true
1111
display-name: List chat_groups
1212
request:
1313
name: ChatGroupsListChatGroupsRequest
@@ -36,7 +36,7 @@ service:
3636
list-chat-group-events:
3737
path: /v0/evi/chat_groups/{id}/events
3838
method: GET
39-
auth: false
39+
auth: true
4040
path-parameters:
4141
id:
4242
type: string

.mock/definition/empathic-voice/chats.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ service:
77
list-chats:
88
path: /v0/evi/chats
99
method: GET
10-
auth: false
10+
auth: true
1111
display-name: List chats
1212
request:
1313
name: ChatsListChatsRequest
@@ -18,6 +18,9 @@ service:
1818
page_size:
1919
type: optional<integer>
2020
docs: The maximum number of results to include per page.
21+
ascending_order:
22+
type: optional<boolean>
23+
docs: List chats in ascending order.
2124
response:
2225
docs: Success
2326
type: root.ReturnPagedChats
@@ -40,7 +43,7 @@ service:
4043
list-chat-events:
4144
path: /v0/evi/chats/{id}
4245
method: GET
43-
auth: false
46+
auth: true
4447
path-parameters:
4548
id:
4649
type: string

0 commit comments

Comments
 (0)