Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 86 additions & 20 deletions fern/apis/relay-server/relay-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17044,7 +17044,8 @@ components:
hears before the AI reads it, or both.
One hint list covers every language the agent uses; there are no per-language hints. When speech recognition
runs in code-switching mode, because `multilingual` is set or a `languages` entry's `code` is `multi` on
Deepgram speech recognition, recognition hints are not used. That covers string entries and `hint` values, and no error is returned.
Deepgram, recognition hints are not used. That covers string entries and `hint` values, and no error is returned.
Outside code-switching mode, every engine receives hints.
Rewrite rules still apply to the transcript in every mode.
examples:
- - pizza
Expand Down Expand Up @@ -17131,7 +17132,9 @@ components:
- type: integer
enum:
- 0
description: "Amount of time, in ms, to wait before prompting the user to respond. Allowed values: `0` (to disable) or `1,000` - `600,000`. **Default:** `5000` ms."
description: |-
Amount of time, in ms, to wait before prompting the user to respond. Allowed values: `0` (to disable) or `1,000` - `600,000`.
A nonzero value lower than `end_of_speech_timeout` is raised to `end_of_speech_timeout` plus 1,000 ms. **Default:** `5000` ms.
examples:
- 30000
attention_timeout_prompt:
Expand Down Expand Up @@ -17206,11 +17209,20 @@ components:
Before each reply, a smaller planning model reviews the conversation and the available functions,
then gives the agent a short directive on how to respond. This can improve function use and
coherence. The reply waits for the plan, which adds latency to every turn. The planning model is
`utility_model` if set, otherwise `ai_model`. Billed separately from the agent's per-minute rate.
To cover the wait, set `double_turn_fillers` on each entry in `languages`.
`double_turn_model` if set, otherwise `utility_model` if set, otherwise `ai_model`. Billed separately
from the agent's per-minute rate. To cover the wait, set `double_turn_fillers` on each entry in `languages`.
default: false
examples:
- true
double_turn_model:
type: string
description: |-
The model that plans each reply when `double_turns` is enabled. It takes priority over `utility_model`
for planning, so you can plan with one model and run background tasks with another. If the model isn't
recognized, the planning step is skipped and the agent replies without a plan. Has no effect unless
`double_turns` is `true`.
examples:
- gpt-4.1-mini
enable_inner_dialog:
type: boolean
description: |-
Expand Down Expand Up @@ -17267,13 +17279,21 @@ components:
description: |-
Takes a string, including a regular expression, defining barge behavior.
For example, this param can direct the AI to stop when the word 'hippopotamus' is input.
Setting this param turns off `transparent_barge`, even when `transparent_barge` is set to `true`.
When `barge_min_words` is also set, either condition is enough: the caller interrupts the agent by
saying at least that many words or by saying something that matches this string.
examples:
- Cancel order
barge_min_words:
type: integer
description: Defines the number of words that must be input before triggering barge behavior, in a range of `1-99`.
minimum: 1
description: |-
Defines the number of words that must be input before triggering barge behavior.
Allowed values: `0` to turn the word count off, or `1-99`. Any other value is ignored.
When `barge_match_string` is also set, either condition is enough to interrupt the agent.
**Default:** `0`.
minimum: 0
maximum: 99
default: 0
examples:
- 3
barge_functions:
Expand Down Expand Up @@ -17543,7 +17563,11 @@ components:
- 2000
interrupt_on_noise:
type: boolean
description: When enabled, barges agent upon any sound interruption longer than 1 second. The 1-second threshold can't be changed. **Default:** `false`.
description: |-
When enabled, barges agent upon any sound interruption longer than 1 second. The 1-second threshold can't be changed.
The sound doesn't need to be recognized as words, so sustained sound, such as background conversation or music, can interrupt the agent.
This interruption ignores `enable_barge`, `barge_min_words`, and `barge_match_string`, and it interrupts a static
greeting even when `static_greeting_no_barge` is `true`. **Default:** `false`.
examples:
- true
interrupt_prompt:
Expand Down Expand Up @@ -17692,7 +17716,12 @@ components:
- Hello! Welcome to our customer service. How can I help you today?
static_greeting_no_barge:
type: boolean
description: If `true`, the static greeting will not be interrupted by the user if they speak over the greeting. If `false`, the static greeting can be interrupted by the user if they speak over the greeting.
description: |-
If `true`, the static greeting will not be interrupted by the user if they speak over the greeting. If `false`, the static greeting can be interrupted by the user if they speak over the greeting.
With `true`, what the caller says during the greeting is kept and answered after the greeting finishes.
A DTMF key press still interrupts the greeting, and so does `interrupt_on_noise`.
With `false`, the greeting stops once the caller finishes speaking over it. This interruption ignores
`barge_min_words`, `barge_match_string`, and `enable_barge`, which apply only after the greeting.
default: false
examples:
- true
Expand Down Expand Up @@ -17781,6 +17810,7 @@ components:
When enabled, the AI will not respond to the user's input when the user is speaking over the agent.
The agent will wait for the user to finish speaking before responding.
Additionally, any attempt the LLM makes to barge will be ignored and scraped from the conversation logs.
Setting `barge_match_string` turns this param off, even when it is set to `true`.
**Default:** `true`.
default: true
examples:
Expand Down Expand Up @@ -17887,15 +17917,18 @@ components:
- e164
- international
- national
- generic
description: |-
The format for the AI agent to reference phone numbers.
Allowed values are `e164`, `international`, and `national`.
How the agent formats phone numbers when it speaks them.
Allowed values are `e164`, `international`, `national`, and `generic`.
An unrecognized value is ignored and `e164` is used.
**Default:** `e164`.

**Example:**
- `e164`: `+12345678901`
- `international`: `+1 234-567-8901`
- `national`: `(234) 567-8901`
- `generic`: `234 567 8901`
default: e164
examples:
- national
Expand Down Expand Up @@ -21554,7 +21587,8 @@ components:
hears before the AI reads it, or both.
One hint list covers every language the agent uses; there are no per-language hints. When speech recognition
runs in code-switching mode, because `multilingual` is set or a `languages` entry's `code` is `multi` on
Deepgram speech recognition, recognition hints are not used. That covers string entries and `hint` values, and no error is returned.
Deepgram, recognition hints are not used. That covers string entries and `hint` values, and no error is returned.
Outside code-switching mode, every engine receives hints.
Rewrite rules still apply to the transcript in every mode.
examples:
- - pizza
Expand Down Expand Up @@ -21641,7 +21675,9 @@ components:
- type: integer
enum:
- 0
description: "Amount of time, in ms, to wait before prompting the user to respond. Allowed values: `0` (to disable) or `1,000` - `600,000`. **Default:** `5000` ms."
description: |-
Amount of time, in ms, to wait before prompting the user to respond. Allowed values: `0` (to disable) or `1,000` - `600,000`.
A nonzero value lower than `end_of_speech_timeout` is raised to `end_of_speech_timeout` plus 1,000 ms. **Default:** `5000` ms.
examples:
- 30000
attention_timeout_prompt:
Expand Down Expand Up @@ -21716,11 +21752,20 @@ components:
Before each reply, a smaller planning model reviews the conversation and the available functions,
then gives the agent a short directive on how to respond. This can improve function use and
coherence. The reply waits for the plan, which adds latency to every turn. The planning model is
`utility_model` if set, otherwise `ai_model`. Billed separately from the agent's per-minute rate.
To cover the wait, set `double_turn_fillers` on each entry in `languages`.
`double_turn_model` if set, otherwise `utility_model` if set, otherwise `ai_model`. Billed separately
from the agent's per-minute rate. To cover the wait, set `double_turn_fillers` on each entry in `languages`.
default: false
examples:
- true
double_turn_model:
type: string
description: |-
The model that plans each reply when `double_turns` is enabled. It takes priority over `utility_model`
for planning, so you can plan with one model and run background tasks with another. If the model isn't
recognized, the planning step is skipped and the agent replies without a plan. Has no effect unless
`double_turns` is `true`.
examples:
- gpt-4.1-mini
enable_inner_dialog:
type: boolean
description: |-
Expand Down Expand Up @@ -21777,13 +21822,21 @@ components:
description: |-
Takes a string, including a regular expression, defining barge behavior.
For example, this param can direct the AI to stop when the word 'hippopotamus' is input.
Setting this param turns off `transparent_barge`, even when `transparent_barge` is set to `true`.
When `barge_min_words` is also set, either condition is enough: the caller interrupts the agent by
saying at least that many words or by saying something that matches this string.
examples:
- Cancel order
barge_min_words:
type: integer
description: Defines the number of words that must be input before triggering barge behavior, in a range of `1-99`.
minimum: 1
description: |-
Defines the number of words that must be input before triggering barge behavior.
Allowed values: `0` to turn the word count off, or `1-99`. Any other value is ignored.
When `barge_match_string` is also set, either condition is enough to interrupt the agent.
**Default:** `0`.
minimum: 0
maximum: 99
default: 0
examples:
- 3
barge_functions:
Expand Down Expand Up @@ -22053,7 +22106,11 @@ components:
- 2000
interrupt_on_noise:
type: boolean
description: When enabled, barges agent upon any sound interruption longer than 1 second. The 1-second threshold can't be changed. **Default:** `false`.
description: |-
When enabled, barges agent upon any sound interruption longer than 1 second. The 1-second threshold can't be changed.
The sound doesn't need to be recognized as words, so sustained sound, such as background conversation or music, can interrupt the agent.
This interruption ignores `enable_barge`, `barge_min_words`, and `barge_match_string`, and it interrupts a static
greeting even when `static_greeting_no_barge` is `true`. **Default:** `false`.
examples:
- true
interrupt_prompt:
Expand Down Expand Up @@ -22202,7 +22259,12 @@ components:
- Hello! Welcome to our customer service. How can I help you today?
static_greeting_no_barge:
type: boolean
description: If `true`, the static greeting will not be interrupted by the user if they speak over the greeting. If `false`, the static greeting can be interrupted by the user if they speak over the greeting.
description: |-
If `true`, the static greeting will not be interrupted by the user if they speak over the greeting. If `false`, the static greeting can be interrupted by the user if they speak over the greeting.
With `true`, what the caller says during the greeting is kept and answered after the greeting finishes.
A DTMF key press still interrupts the greeting, and so does `interrupt_on_noise`.
With `false`, the greeting stops once the caller finishes speaking over it. This interruption ignores
`barge_min_words`, `barge_match_string`, and `enable_barge`, which apply only after the greeting.
default: false
examples:
- true
Expand Down Expand Up @@ -22291,6 +22353,7 @@ components:
When enabled, the AI will not respond to the user's input when the user is speaking over the agent.
The agent will wait for the user to finish speaking before responding.
Additionally, any attempt the LLM makes to barge will be ignored and scraped from the conversation logs.
Setting `barge_match_string` turns this param off, even when it is set to `true`.
**Default:** `true`.
default: true
examples:
Expand Down Expand Up @@ -22397,15 +22460,18 @@ components:
- e164
- international
- national
- generic
description: |-
The format for the AI agent to reference phone numbers.
Allowed values are `e164`, `international`, and `national`.
How the agent formats phone numbers when it speaks them.
Allowed values are `e164`, `international`, `national`, and `generic`.
An unrecognized value is ignored and `e164` is used.
**Default:** `e164`.

**Example:**
- `e164`: `+12345678901`
- `international`: `+1 234-567-8901`
- `national`: `(234) 567-8901`
- `generic`: `234 567 8901`
default: e164
examples:
- national
Expand Down
Loading
Loading