mantle-llm-and-integrations
Configure integrations.yml — LLM model groups, providers, channels, and credentials — for a Rasa Mantle project. Use when changing the LLM/provider, adding…
от RasaHQ★ 45 звёзд на GitHub
Установить mantle-llm-and-integrations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
integrations.yml — model groups, channels, credentials
The breaking change everyone hits
Since rasa-pro 3.20.0.dev6, the orchestrator LLM config is
extra="forbid" with a required model_group. The old inline form —
provider:/model:/api_key: directly under llm: — fails validate with:
'provider': Extra inputs are not permitted
and a missing reference fails with 'model_group': Field required. The
inline form is easy to reintroduce by copying any pre-dev6 example from a
blog or older repo — assume every example you find online has this wrong.
Correct shape
llm:
model_group: orchestrator
model_groups:
- id: orchestrator
models:
- provider: openai
model: gpt-4.1-mini
api_key: ${OPENAI_API_KEY}
temperature: 0.0
channels:
rest:
enabled: true
inspector:
enabled: true
- The
idundermodel_groups:must match themodel_group:reference. temperature: 0.0for orchestration — routing wants determinism.- Alternative providers slot in at the group level (e.g.
provider: gemini,model: gemini-2.0-flash,api_key: ${GEMINI_API_KEY}) — thellm:reference never changes.
Credentials: api_key: ${NAME}, never api_key_env
Since 3.21.0.dev2, validate_model_group_credentials
(rasa/shared/providers/model_group_validation.py) checks every model group
during validate, training and client construction:
api_key_envis rejected:Model group 'orchestrator' uses 'api_key_env', which is no longer supported. Replace it with 'api_key: ${ENV_VAR_NAME}'.- Every sensitive value (
api_key, the AWS keys,client_id,client_secretand the rest ofSENSITIVE_DATAinrasa/shared/constants.py) must be exactly${ENV_VAR_NAME}. A literal key, a bare$VAR, a${VAR:-default}or an empty value fails.
The provider client expands the ${NAME} reference from the environment when
it makes the call. Write the variable name inside ${...}; quoting the whole value
is optional.
On 3.20 both api_key: ${VAR} and api_key_env: VAR worked; 3.21 removed
api_key_env. Older examples and generated code still show api_key_env; convert them by keeping
the variable name and changing only the key. The lint's api-key-env check
catches both the removed key and a malformed value.
ASR / TTS credentials are not config at all
Voice engines do not take a key from integrations.yml. Deepgram's ASR and
TTS both read os.environ["DEEPGRAM_API_KEY"] directly
(voice_stream/asr/deepgram/engine.py, voice_stream/tts/deepgram.py); Rime,
Cartesia and Azure do the same with their own fixed variable names. Adding a
key there is worse than useless:
- ASR configs are
extra="forbid"—api_keyandapi_key_envboth raiseExtra inputs are not permitted. - TTS configs are
extra="allow"but warnUnknown TTS config field(s) 'api_key' will be ignored.
Select the vendor by name: under the audio-carrying channel and set the
environment variable:
channels:
inspector:
enabled: true
asr:
name: deepgram
language_map: {en: {model: flux-general-en}}
tts:
name: deepgram
language_map: {en: {model: aura-2-andromeda-en}}
Credentials — the three-layer resolution
Keys resolve shell env → project .env → repo-root .env, first hit
wins. Consequences:
Every variable referenced as
${VAR}(inapi_key:or any other field) MUST appear in.env.examplewith an empty value and a comment saying where to get it. A key the example never mentions is one a new user cannot discover — the failure surfaces later as a provider auth error that looks like a broken project.Non-default keys (anything beyond
RASA_LICENSE/OPENAI_API_KEY) also go inpyproject.toml:[tool.rasa-catalog] required-secrets = ["GEMINI_API_KEY"].envis gitignored, always. Only.env.exampleis committed. Never put a real value in any committed file — the lint scans forsk-…keys and JWT-shaped licences.
Voice provider keys
Voice vendors are optional-by-design done right: name every key in
.env.example but make the runtime skip providers whose credentials are
absent, and say so ("the router skips providers it has no credentials for").
An agent that hard-fails on a missing optional key punishes the beginner.
Verify
python3 scripts/lint_mantle.py --check llm-model-group --check env-example --check secret-hygiene, then make validate with real credentials.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mantle-llm-and-integrations?
Configure integrations.yml — LLM model groups, providers, channels, and credentials — for a Rasa Mantle project. Use when changing the LLM/provider, adding channels, wiring API keys, or when validate fails with "'provider': Extra inputs are not permitted" or "'model_group': Field required".
Как установить скилл mantle-llm-and-integrations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantle-llm-and-integrations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…