INNER CODE UNIT · Python

disable_agent

thinh-vu/vnstock · vnstock/__init__.py:200

def disable_agent(*targets: str):
    """
    Opt out of the AI assistant guide and persist the choice.

    `disable_agent()` turns it off entirely; `disable_agent("global")` only the
    machine-wide files. Blocks already written stay until `remove_agent_files()`.
    """
    from vnstock.core.utils.agents import disable_agent as _disable

    return _disable(*targets)


def enable_agent(*targets: str):
    """
    Opt in to the AI assistant guide and persist the choice.

    Without targets, only the project's `AGENTS.md`. Global files must be named:
    `enable_agent("claude")`, `"codex"`, `"antigravity"`, or `"global"` for all three.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…