Class: AgentCliRuntime::Request
- Inherits:
-
Data
- Object
- Data
- AgentCliRuntime::Request
- Defined in:
- lib/agent_cli_runtime/values.rb
Instance Attribute Summary collapse
-
#add_dirs ⇒ Object
readonly
Returns the value of attribute add_dirs.
-
#allowed_tools ⇒ Object
readonly
Returns the value of attribute allowed_tools.
-
#capabilities ⇒ Object
readonly
Returns the value of attribute capabilities.
-
#command_prefix ⇒ Object
readonly
Returns the value of attribute command_prefix.
-
#disallowed_tools ⇒ Object
readonly
Returns the value of attribute disallowed_tools.
-
#effort ⇒ Object
readonly
Returns the value of attribute effort.
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#identity_arguments ⇒ Object
readonly
Returns the value of attribute identity_arguments.
-
#include_output_format ⇒ Object
readonly
Returns the value of attribute include_output_format.
-
#max_budget_usd ⇒ Object
readonly
Returns the value of attribute max_budget_usd.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#permission_arguments ⇒ Object
readonly
Returns the value of attribute permission_arguments.
-
#permission_mode ⇒ Object
readonly
Returns the value of attribute permission_mode.
-
#pin_model ⇒ Object
readonly
Returns the value of attribute pin_model.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
-
#raw_cli_arguments ⇒ Object
readonly
Returns the value of attribute raw_cli_arguments.
-
#require_add_dirs ⇒ Object
readonly
Returns the value of attribute require_add_dirs.
-
#trusted_cli_arguments ⇒ Object
readonly
Returns the value of attribute trusted_cli_arguments.
Instance Method Summary collapse
Constructor Details
#initialize(profile:, prompt:, permission_mode: nil, permission_arguments: nil, add_dirs: [], require_add_dirs: false, allowed_tools: nil, disallowed_tools: nil, max_budget_usd: nil, model: nil, effort: nil, pin_model: true, identity_arguments: [], capabilities: [], raw_cli_arguments: [], trusted_cli_arguments: [], executable: nil, command_prefix: [], include_output_format: true) ⇒ Request
Returns a new instance of Request.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/agent_cli_runtime/values.rb', line 63 def initialize(profile:, prompt:, permission_mode: nil, permission_arguments: nil, add_dirs: [], require_add_dirs: false, allowed_tools: nil, disallowed_tools: nil, max_budget_usd: nil, model: nil, effort: nil, pin_model: true, identity_arguments: [], capabilities: [], raw_cli_arguments: [], trusted_cli_arguments: [], executable: nil, command_prefix: [], include_output_format: true) super( profile: profile, prompt: Immutable.string(prompt), permission_mode: .nil? ? nil : Immutable.string(), permission_arguments: .nil? ? nil : Immutable.strings(), add_dirs: Immutable.strings(add_dirs), require_add_dirs: require_add_dirs == true, allowed_tools: Immutable.strings(allowed_tools), disallowed_tools: Immutable.strings(disallowed_tools), max_budget_usd: max_budget_usd, model: model.nil? ? nil : Immutable.string(model), effort: effort.nil? ? nil : Immutable.string(effort), pin_model: pin_model != false, identity_arguments: Immutable.strings(identity_arguments), capabilities: Immutable.symbols(capabilities), raw_cli_arguments: Immutable.strings(raw_cli_arguments), trusted_cli_arguments: Immutable.strings(trusted_cli_arguments), executable: executable.nil? ? nil : Immutable.string(executable), command_prefix: Immutable.strings(command_prefix), include_output_format: include_output_format != false ) end |
Instance Attribute Details
#add_dirs ⇒ Object (readonly)
Returns the value of attribute add_dirs
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def add_dirs @add_dirs end |
#allowed_tools ⇒ Object (readonly)
Returns the value of attribute allowed_tools
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def allowed_tools @allowed_tools end |
#capabilities ⇒ Object (readonly)
Returns the value of attribute capabilities
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def capabilities @capabilities end |
#command_prefix ⇒ Object (readonly)
Returns the value of attribute command_prefix
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def command_prefix @command_prefix end |
#disallowed_tools ⇒ Object (readonly)
Returns the value of attribute disallowed_tools
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def disallowed_tools @disallowed_tools end |
#effort ⇒ Object (readonly)
Returns the value of attribute effort
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def effort @effort end |
#executable ⇒ Object (readonly)
Returns the value of attribute executable
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def executable @executable end |
#identity_arguments ⇒ Object (readonly)
Returns the value of attribute identity_arguments
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def identity_arguments @identity_arguments end |
#include_output_format ⇒ Object (readonly)
Returns the value of attribute include_output_format
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def include_output_format @include_output_format end |
#max_budget_usd ⇒ Object (readonly)
Returns the value of attribute max_budget_usd
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def max_budget_usd @max_budget_usd end |
#model ⇒ Object (readonly)
Returns the value of attribute model
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def model @model end |
#permission_arguments ⇒ Object (readonly)
Returns the value of attribute permission_arguments
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def @permission_arguments end |
#permission_mode ⇒ Object (readonly)
Returns the value of attribute permission_mode
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def @permission_mode end |
#pin_model ⇒ Object (readonly)
Returns the value of attribute pin_model
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def pin_model @pin_model end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def profile @profile end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def prompt @prompt end |
#raw_cli_arguments ⇒ Object (readonly)
Returns the value of attribute raw_cli_arguments
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def raw_cli_arguments @raw_cli_arguments end |
#require_add_dirs ⇒ Object (readonly)
Returns the value of attribute require_add_dirs
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def require_add_dirs @require_add_dirs end |
#trusted_cli_arguments ⇒ Object (readonly)
Returns the value of attribute trusted_cli_arguments
55 56 57 |
# File 'lib/agent_cli_runtime/values.rb', line 55 def trusted_cli_arguments @trusted_cli_arguments end |