Skip to main content

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.

NameTypeDefaultDescription
fillers Optionalobject-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.

NameTypeDefaultDescription
[key: string] Requiredstring[]-An object with language codes as the property, where:
  • Key: Must be one of the supported language codes
  • Value: An array of strings containing filler phrases that will be randomly selected during function execution

Supported Language Codes​

CodeDescription
defaultDefault language set by the user in the ai.languages property
bgBulgarian
caCatalan
csCzech
daDanish
da-DKDanish (Denmark)
deGerman
de-CHGerman (Switzerland)
elGreek
enEnglish
en-AUEnglish (Australia)
en-GBEnglish (United Kingdom)
en-INEnglish (India)
en-NZEnglish (New Zealand)
en-USEnglish (United States)
esSpanish
es-419Spanish (Latin America)
etEstonian
fiFinnish
frFrench
fr-CAFrench (Canada)
hiHindi
huHungarian
idIndonesian
itItalian
jaJapanese
koKorean
ko-KRKorean (South Korea)
ltLithuanian
lvLatvian
msMalay
multiMultilingual (Spanish + English)
nlDutch
nl-BEFlemish (Belgian Dutch)
noNorwegian
plPolish
ptPortuguese
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)
roRomanian
ruRussian
skSlovak
svSwedish
sv-SESwedish (Sweden)
thThai
th-THThai (Thailand)
trTurkish
ukUkrainian
viVietnamese
zhChinese (Simplified)
zh-CNChinese (Simplified, China)
zh-HansChinese (Simplified Han)
zh-HantChinese (Traditional Han)
zh-HKChinese (Traditional, Hong Kong)
zh-TWChinese (Traditional, Taiwan)

Example​

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..."