TheDocumentation Index
Fetch the complete documentation index at: https://docs.chainlit.io/llms.txt
Use this file to discover all available pages before exploring further.
Step class is a Python Context Manager that can be used to create steps in your chainlit app. The step is created when the context manager is entered and is updated to the client when the context manager is exited.
Parameters
The name of the step. Default to the name of the decorated function.
The type of the step, useful for monitoring and debugging.
Elements to attach to the step.
Language of the output. See
https://react-code-blocks-rajinwonderland.vercel.app/?path=/story/codeblock—supported-languages
for a list of supported languages.
By default only the output of the step is shown. Set this to
True to also
show the input. You can also set this to a language like json or python to
syntax highlight the input.Whether the step should render expanded by default in the UI.
Since version 2.3.0. Requires a
defaultOpen column in the steps table for SQL-based data layers. See the migration guide.Custom metadata dictionary to attach to the step. Persisted with the step in the data layer.
Tags to attach to the step for filtering and categorization.
Unique identifier for the step. Auto-generated as a UUID if not provided.
ID of the parent step. Automatically resolved from the context manager nesting hierarchy if not provided.
Name of a Lucide icon to display instead of the default step avatar. See https://lucide.dev/icons for available icons.
Since version 2.11.0.
ID of the thread this step belongs to. Automatically resolved from the current session context if not provided.