INNER CODE UNIT · Python

enable_agent

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

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.
    Nothing is written until `setup_agent()` is called.
    """
    from vnstock.core.utils.agents import enable_agent as _enable

    return _enable(*targets)


def remove_agent_files(*targets: str):
    """
    Remove the vnstock block from rules files already written.

    Files that held nothing else are deleted; the user's own content is kept.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…