Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt

Use this file to discover all available pages before exploring further.

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())