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.



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:
      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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def add_dirs
  @add_dirs
end

#allowed_toolsObject (readonly)

Returns the value of attribute allowed_tools

Returns:

  • (Object)

    the current value of allowed_tools



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def allowed_tools
  @allowed_tools
end

#capabilitiesObject (readonly)

Returns the value of attribute capabilities

Returns:

  • (Object)

    the current value of capabilities



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def capabilities
  @capabilities
end

#command_prefixObject (readonly)

Returns the value of attribute command_prefix

Returns:

  • (Object)

    the current value of command_prefix



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def command_prefix
  @command_prefix
end

#disallowed_toolsObject (readonly)

Returns the value of attribute disallowed_tools

Returns:

  • (Object)

    the current value of disallowed_tools



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def disallowed_tools
  @disallowed_tools
end

#effortObject (readonly)

Returns the value of attribute effort

Returns:

  • (Object)

    the current value of effort



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def effort
  @effort
end

#executableObject (readonly)

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def executable
  @executable
end

#identity_argumentsObject (readonly)

Returns the value of attribute identity_arguments

Returns:

  • (Object)

    the current value of identity_arguments



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def max_budget_usd
  @max_budget_usd
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def model
  @model
end

#permission_argumentsObject (readonly)

Returns the value of attribute permission_arguments

Returns:

  • (Object)

    the current value of permission_arguments



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def permission_arguments
  @permission_arguments
end

#permission_modeObject (readonly)

Returns the value of attribute permission_mode

Returns:

  • (Object)

    the current value of permission_mode



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def permission_mode
  @permission_mode
end

#pin_modelObject (readonly)

Returns the value of attribute pin_model

Returns:

  • (Object)

    the current value of pin_model



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def pin_model
  @pin_model
end

#profileObject (readonly)

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def profile
  @profile
end

#promptObject (readonly)

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

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



55
56
57
# File 'lib/agent_cli_runtime/values.rb', line 55

def trusted_cli_arguments
  @trusted_cli_arguments
end