Class: AgentCliRuntime::Request

Inherits:
Data
  • Object
show all
Defined in:
lib/agent_cli_runtime/values.rb

Instance Attribute Summary collapse

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.



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/agent_cli_runtime/values.rb', line 92

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:
      permission_mode.nil? ? nil : Immutable.string(permission_mode),
    permission_arguments:
      permission_arguments.nil? ? nil : Immutable.strings(permission_arguments),
    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_dirsObject (readonly)

Returns the value of attribute add_dirs

Returns:

  • (Object)

    the current value of add_dirs



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def add_dirs
  @add_dirs
end

#allowed_toolsObject (readonly)

Returns the value of attribute allowed_tools

Returns:

  • (Object)

    the current value of allowed_tools



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def allowed_tools
  @allowed_tools
end

#capabilitiesObject (readonly)

Returns the value of attribute capabilities

Returns:

  • (Object)

    the current value of capabilities



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def capabilities
  @capabilities
end

#command_prefixObject (readonly)

Returns the value of attribute command_prefix

Returns:

  • (Object)

    the current value of command_prefix



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def command_prefix
  @command_prefix
end

#disallowed_toolsObject (readonly)

Returns the value of attribute disallowed_tools

Returns:

  • (Object)

    the current value of disallowed_tools



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def disallowed_tools
  @disallowed_tools
end

#effortObject (readonly)

Returns the value of attribute effort

Returns:

  • (Object)

    the current value of effort



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def effort
  @effort
end

#executableObject (readonly)

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def executable
  @executable
end

#identity_argumentsObject (readonly)

Returns the value of attribute identity_arguments

Returns:

  • (Object)

    the current value of identity_arguments



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def identity_arguments
  @identity_arguments
end

#include_output_formatObject (readonly)

Returns the value of attribute include_output_format

Returns:

  • (Object)

    the current value of include_output_format



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def include_output_format
  @include_output_format
end

#max_budget_usdObject (readonly)

Returns the value of attribute max_budget_usd

Returns:

  • (Object)

    the current value of max_budget_usd



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def max_budget_usd
  @max_budget_usd
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def model
  @model
end

#permission_argumentsObject (readonly)

Returns the value of attribute permission_arguments

Returns:

  • (Object)

    the current value of permission_arguments



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def permission_arguments
  @permission_arguments
end

#permission_modeObject (readonly)

Returns the value of attribute permission_mode

Returns:

  • (Object)

    the current value of permission_mode



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def permission_mode
  @permission_mode
end

#pin_modelObject (readonly)

Returns the value of attribute pin_model

Returns:

  • (Object)

    the current value of pin_model



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def pin_model
  @pin_model
end

#profileObject (readonly)

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def profile
  @profile
end

#promptObject (readonly)

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def prompt
  @prompt
end

#raw_cli_argumentsObject (readonly)

Returns the value of attribute raw_cli_arguments

Returns:

  • (Object)

    the current value of raw_cli_arguments



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def raw_cli_arguments
  @raw_cli_arguments
end

#require_add_dirsObject (readonly)

Returns the value of attribute require_add_dirs

Returns:

  • (Object)

    the current value of require_add_dirs



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def require_add_dirs
  @require_add_dirs
end

#trusted_cli_argumentsObject (readonly)

Returns the value of attribute trusted_cli_arguments

Returns:

  • (Object)

    the current value of trusted_cli_arguments



84
85
86
# File 'lib/agent_cli_runtime/values.rb', line 84

def trusted_cli_arguments
  @trusted_cli_arguments
end