"""
SealVera capture helper — stores LLM params before a call for enriched logging.

Usage:
    import sealvera

    # Inside your agent, before the LLM call:
    sealvera.capture(params)
"""

_captured = None


def capture(params):
    """Capture LLM params before an API call."""
    global _captured
    _captured = params


def consume():
    """Get and clear captured params."""
    global _captured
    val = _captured
    _captured = None
    return val


def peek():
    """Get captured params without clearing."""
    return _captured
