set_user(user_id: str | None) -> None | Set the current user ID globally. |
set_session(session_id: str | None) -> None | Set the current session ID globally. |
set_conversation(conversation_id: str | None) -> None | Set the current conversation ID globally. |
set_metadata(metadata: dict | None) -> None | Set custom metadata globally (e.g., {"plan": "pro"}). |
get_user() -> str | None | Get the current user ID. |
get_session() -> str | None | Get the current session ID. |
get_conversation() -> str | None | Get the current conversation ID. |
get_metadata() -> dict | None | Get the current metadata. |