### Install Rasa SDK using pip Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Installs the `rasa-sdk` package using pip, the Python package installer. ```bash pip install rasa-sdk ``` -------------------------------- ### Extend Rasa SDK Docker Image for Custom Dependencies Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Dockerfile example to extend the official `rasa/rasa-sdk` image. It demonstrates how to install system-level dependencies using `apt-get` and Python packages from PyPI using `pip`. ```Dockerfile FROM rasa/rasa-sdk:\n\n# Change back to root user to install dependencies\nUSER root\n\n# To install system dependencies\nRUN apt-get update -qq && \\\n apt-get install -y && \\\n apt-get clean && \\\n rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*\n\n# To install packages from PyPI\nRUN pip install --no-cache-dir \n\n# Switch back to non-root to run code\nUSER 1001 ``` -------------------------------- ### Install Rasa SDK Dependencies and Editable Mode Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Installs project dependencies and the `rasa-sdk` package in editable mode using the `make install` command, typically after Poetry is set up. ```bash make install ``` -------------------------------- ### Start Rasa Action Server with Docker Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Starts a Docker container for the Rasa action server, mounting a local directory containing custom actions. The action server will be available at `http://localhost:5055/webhook`. ```bash docker run -p 5055:5055 --mount type=bind,source=,target=/app/actions \n\trasahq/rasa-sdk: ``` -------------------------------- ### Install Poetry for Rasa SDK Development Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Installs Poetry, a Python packaging and dependency management tool, which is required to build Rasa SDK from source. ```bash curl -sSL https://install.python-poetry.org | python3 - ``` -------------------------------- ### Example Changelog Entry Content Source: https://github.com/rasahq/rasa-sdk/blob/main/changelog/README.md Illustrates the recommended style for a newsfragment entry, emphasizing full sentences, past or present tense, and punctuation. This example shows how slot interpolation issues are resolved. ```Markdown Slots will be correctly interpolated if there are lists in custom response templates. Previously this resulted in no interpolation. ``` -------------------------------- ### Newsfragment File Naming Convention Source: https://github.com/rasahq/rasa-sdk/blob/main/changelog/README.md Describes the required naming convention for newsfragment files, which should follow the pattern `..md`. It also lists the allowed types for `` and provides examples. ```Markdown ..md 123.feature.md 456.bugfix.md ``` -------------------------------- ### Previewing Changelog with Towncrier Source: https://github.com/rasahq/rasa-sdk/blob/main/changelog/README.md Explains how to use the `towncrier` tool to generate a draft preview of the upcoming release notes, allowing developers to see how their newsfragment changes will appear before final submission. ```Shell towncrier --draft ``` -------------------------------- ### Check and Reformat Code Style with Ruff Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Executes the `make lint` command to check and automatically reformat code files according to the project's standardized code style using Ruff. ```bash make lint ``` -------------------------------- ### Create New Release Branch for Rasa SDK Source: https://github.com/rasahq/rasa-sdk/blob/main/README.md Commands to create and push a new release branch (e.g., `1.2.x`) from the current commit, typically used for minor releases to allow for future patch releases. ```bash git checkout -b 1.2.x\n git push origin 1.2.x ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.