functions.fillers
The fillers
object is used to define language-specific filler phrases that should be played when calling a swaig function
. These fillers help break silence between responses and are played asynchronously during the function call.
Name | Type | Default | Description |
---|---|---|---|
fillers Optional | object | - | An object containing language-specific arrays of filler phrases. Must specify exactly one language code. |
Language Codes
The fillers object accepts a single language code as a property key, with an array of filler phrases as its value.
Name | Type | Default | Description |
---|---|---|---|
[key: string] Required | string[] | - | An object with language codes as the property, where:
|
Supported Language Codes
Code | Description |
---|---|
default | Default language set by the user in the ai.languages property |
bg | Bulgarian |
ca | Catalan |
cs | Czech |
da | Danish |
da-DK | Danish (Denmark) |
de | German |
de-CH | German (Switzerland) |
el | Greek |
en | English |
en-AU | English (Australia) |
en-GB | English (United Kingdom) |
en-IN | English (India) |
en-NZ | English (New Zealand) |
en-US | English (United States) |
es | Spanish |
es-419 | Spanish (Latin America) |
et | Estonian |
fi | Finnish |
fr | French |
fr-CA | French (Canada) |
hi | Hindi |
hu | Hungarian |
id | Indonesian |
it | Italian |
ja | Japanese |
ko | Korean |
ko-KR | Korean (South Korea) |
lt | Lithuanian |
lv | Latvian |
ms | Malay |
multi | Multilingual (Spanish + English) |
nl | Dutch |
nl-BE | Flemish (Belgian Dutch) |
no | Norwegian |
pl | Polish |
pt | Portuguese |
pt-BR | Portuguese (Brazil) |
pt-PT | Portuguese (Portugal) |
ro | Romanian |
ru | Russian |
sk | Slovak |
sv | Swedish |
sv-SE | Swedish (Sweden) |
th | Thai |
th-TH | Thai (Thailand) |
tr | Turkish |
uk | Ukrainian |
vi | Vietnamese |
zh | Chinese (Simplified) |
zh-CN | Chinese (Simplified, China) |
zh-Hans | Chinese (Simplified Han) |
zh-Hant | Chinese (Traditional Han) |
zh-HK | Chinese (Traditional, Hong Kong) |
zh-TW | Chinese (Traditional, Taiwan) |
Example
- YAML
- JSON
functions:
- function: get_weather
description: Get the current weather for a location
fillers:
en-US:
- "Let me check that for you..."
- "One moment while I look up the weather..."
- "Checking the current conditions..."
{
"functions": [
{
"function": "get_weather",
"description": "Get the current weather for a location",
"fillers": {
"en-US": [
"Let me check that for you...",
"One moment while I look up the weather...",
"Checking the current conditions..."
]
}
}
]
}