INNER CODE UNIT · Python

interactive

416rehman/DeepZero · src/deepzero/cli.py:554

def interactive(model: str, work_dir: str, verbose: bool):
    """interactive analysis repl with llm-backed conversation"""
    _setup_logging(verbose)

    _load_env()

    from deepzero.engine.llm import LLMProvider
    from deepzero.engine.state import StateStore

    console.print(f"[bold cyan]deepzero interactive[/] - model: {model}")
    console.print("type /help for commands, /quit to exit\n")

    llm = LLMProvider(model)
    state_store = StateStore(Path(work_dir))
    history: list[dict[str, str]] = []

    sys_prompt = _build_interactive_system_prompt(state_store)
    history.append({"role": "system", "content": sys_prompt})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…