MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / run_repl

Function run_repl

openosint/repl.py:433–451  ·  view source on GitHub ↗

Synchronous wrapper for the REPL.

(
    api_key: str | None = None,
    provider: str = "anthropic",
    ollama_model: str = "llama3.2",
    ollama_host: str = "http://localhost:11434",
    is_pdf_disabled: bool = False,
)

Source from the content-addressed store, hash-verified

431
432
433def run_repl(
434 api_key: str | None = None,
435 provider: str = "anthropic",
436 ollama_model: str = "llama3.2",
437 ollama_host: str = "http://localhost:11434",
438 is_pdf_disabled: bool = False,
439) -> None:
440 """Synchronous wrapper for the REPL."""
441 repl = OpenOSINTRepl(
442 api_key=api_key,
443 provider=provider,
444 ollama_model=ollama_model,
445 ollama_host=ollama_host,
446 is_pdf_disabled=is_pdf_disabled,
447 )
448 try:
449 asyncio.run(repl.run())
450 except KeyboardInterrupt:
451 pass

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
OpenOSINTReplClass · 0.85

Tested by

no test coverage detected