Skip to main content

Overview

set_context_value(key: str, value: Any) -> bool

Example

from keywordsai_tracing import workflow, get_client

@workflow(name="set_context")
def set_context():
    client = get_client()
    client.set_context_value("custom.key", "value")
    return True

print(set_context())