Get Started
- Overview
- Installation
- In Pure Python
- Integrations
Deploy
- Overview
- Platforms
Advanced Features
Data Persistence
- Overview
- Chat History
- Human Feedback
- Open Source Data Layers
- Tags & Metadata
Customisation
Backend
Data Persistence
Tags & Metadata
Tags and metadata provide valuable context for your threads, steps and generations.
Copy
@cl.step(type="run")
async def func(input):
# some code
cl.context.current_step.metadata = {"experiment":"1"}
cl.context.current_step.tags = ["to review"]
# some code
return output
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.