A specialized AgentDriver for the official codex CLI tool (v0.118+).
This model is legacy but still supported for specific code-generation tasks.
Super class
HydraR::AgentDriver -> OpenAICodexCLIDriver
Methods
Method new()
Initialize OpenAICodexCLIDriver
Usage
OpenAICodexCLIDriver$new(
id = "codex_cli",
validation_mode = "warning",
working_dir = NULL
)Method call()
Sends a execution request to the Codex CLI.
Usage
OpenAICodexCLIDriver$call(prompt, system_prompt = NULL, cli_opts = list(), ...)Examples
if (FALSE) { # \dontrun{
# 1. Legacy Codex CLI support
driver <- OpenAICodexCLIDriver$new()
# 2. Isolated execution with skip-checks for specific environments
response <- driver$call(
prompt = "Create a data.frame with 5 rows and 2 columns.",
cli_opts = list(
sandbox = TRUE,
skip_git_repo_check = TRUE
)
)
} # }