Class: EasyAI::Command::Codex
- Inherits:
-
AIToolBase
- Object
- CLAide::Command
- EasyAI::Command
- AIToolBase
- EasyAI::Command::Codex
- Defined in:
- lib/easyai/command/codex.rb
Overview
v2.0 新增:替代 v1.x 的 ‘easyai gpt` 子命令,启动 OpenAI Codex CLI(codex 二进制)。
Constant Summary
Constants inherited from AIToolBase
AIToolBase::PROTECTED_ENV_KEYS
Constants inherited from EasyAI::Command
DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS
Instance Attribute Summary
Attributes inherited from EasyAI::Command
Instance Method Summary collapse
Methods inherited from AIToolBase
#default_env, #initialize, options, #pre_exec, #run, #validate!
Methods inherited from EasyAI::Command
#initialize, options, run, #validate!
Constructor Details
This class inherits a constructor from EasyAI::Command::AIToolBase
Instance Method Details
#exec_command ⇒ Object
30 31 32 |
# File 'lib/easyai/command/codex.rb', line 30 def exec_command 'codex' end |
#install_hint ⇒ Object
34 35 36 |
# File 'lib/easyai/command/codex.rb', line 34 def install_hint '未找到 codex CLI。请安装:npm install -g @openai/codex' end |
#tool_name ⇒ Object
26 27 28 |
# File 'lib/easyai/command/codex.rb', line 26 def tool_name 'codex' end |