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,
)
| 431 | |
| 432 | |
| 433 | def 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 |
nothing calls this directly
no test coverage detected