(prompt: str)
| 55 | print(f"{RED}Unknown choice. Nothing happened.{RESET}") |
| 56 | |
| 57 | def one_shot_mode(prompt: str): |
| 58 | from open_codex.agent_builder import AgentBuilder |
| 59 | print(f"{BLUE}Using model: phi-4-mini-instruct{RESET}") |
| 60 | try: |
| 61 | agent = AgentBuilder.get_agent() |
| 62 | response = agent.one_shot_mode(prompt) |
| 63 | print_response(response) |
| 64 | except Exception as e: |
| 65 | print(f"{RED}Error: {e}{RESET}") |
| 66 | |
| 67 | def print_help_message(): |
| 68 | print(f"{BLUE}Usage examples:{RESET}") |
no test coverage detected