INNER CODE UNIT · Python

setup_agent

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

def setup_agent(async_mode: bool = False) -> bool:
    """
    Write the AI assistant guide into the targets enabled with `enable_agent()`.

    Does nothing until you opt in. Enabled without naming targets, it writes only
    `AGENTS.md` in the current directory. Preview with `agent_status()`.
    """
    try:
        from vnstock.core.utils.agents import init_agent_environment

        return init_agent_environment(async_mode=async_mode)
    except Exception:
        return False


def agent_status(project_root: str = "."):
    """Show what the agent bootstrap would write, where, and why."""
    from vnstock.core.utils.agents import agent_status as _status

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…