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

Returns True if there is an active recording span, otherwise False.

Example

from keywordsai_tracing import task, get_client

@task(name="record_state")
def record_state():
    client = get_client()
    return client.is_recording()

print(record_state())