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

# get_language_params

> Retrieve the per-language params previously set on an added language.

[ai-languages]: /docs/swml/reference/ai/languages

[swml-languages-reference]: /docs/swml/reference/ai/languages

[addlanguage]: /docs/server-sdks/reference/python/agents/agent-base/add-language

[setlanguageparams]: /docs/server-sdks/reference/python/agents/agent-base/set-language-params

Retrieve the engine-specific `params` dict currently set on a language that was added
with [`add_language`][addlanguage].

Language configurations map to the SWML [`ai.languages`][ai-languages] array.
See the [SWML languages reference][swml-languages-reference] for the full specification.

## **Parameters**

Language code as previously passed to [`add_language`][addlanguage] (e.g., `"en-US"`).

## **Returns**

`Optional[dict[str, Any]]` -- The params dict if set, or `None` otherwise (including when
the code is unknown).

## **Example**

```python {6}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.add_language("English", "en-US", "josh", engine="elevenlabs")
agent.set_language_params("en-US", {"stability": 0.5})

params = agent.get_language_params("en-US")
# {"stability": 0.5}
```

Set or replace params with [`set_language_params`][setlanguageparams].