标签和元数据为您的线程、步骤和生成提供了宝贵的上下文。

@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

更多信息请参见此处