***

title: set_languages
slug: /reference/python/agents/agent-base/set-languages
description: Replace all language configurations at once with a list of raw language dictionaries.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Replace all language configurations at once with a list of raw language dictionaries.

## **Parameters**

<ParamField path="languages" type="list[dict[str, Any]]" required={true} toc={true}>
  List of language configuration dictionaries. Each dictionary should include `name`,
  `code`, and `voice` keys, and optionally `engine`, `model`, `speech_fillers`,
  and `function_fillers`.
</ParamField>

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.set_languages([
    {"name": "English", "code": "en-US", "voice": "rime.spore"},
    {"name": "Spanish", "code": "es-MX", "voice": "rime.luna"},
    {"name": "French", "code": "fr-FR", "voice": "rime.soleil"}
])
agent.serve()
```