Class: AgentCliRuntime::IdentityArguments

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model:, requested_effort:, effective_effort:, effort_supported:, model_pinned:, native_arguments:) ⇒ IdentityArguments

Returns a new instance of IdentityArguments.



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/agent_cli_runtime/values.rb', line 40

def initialize(model:, requested_effort:, effective_effort:, effort_supported:,
               model_pinned:, native_arguments:)
  super(
    model: Immutable.string(model),
    requested_effort:
      requested_effort.nil? ? nil : Immutable.string(requested_effort),
    effective_effort:
      effective_effort.nil? ? nil : Immutable.string(effective_effort),
    effort_supported: effort_supported == true,
    model_pinned: model_pinned == true,
    native_arguments: Immutable.strings(native_arguments)
  )
end

Instance Attribute Details

#effective_effortObject (readonly)

Returns the value of attribute effective_effort

Returns:

  • (Object)

    the current value of effective_effort



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def effective_effort
  @effective_effort
end

#effort_supportedObject (readonly)

Returns the value of attribute effort_supported

Returns:

  • (Object)

    the current value of effort_supported



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def effort_supported
  @effort_supported
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def model
  @model
end

#model_pinnedObject (readonly)

Returns the value of attribute model_pinned

Returns:

  • (Object)

    the current value of model_pinned



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def model_pinned
  @model_pinned
end

#native_argumentsObject (readonly)

Returns the value of attribute native_arguments

Returns:

  • (Object)

    the current value of native_arguments



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def native_arguments
  @native_arguments
end

#requested_effortObject (readonly)

Returns the value of attribute requested_effort

Returns:

  • (Object)

    the current value of requested_effort



36
37
38
# File 'lib/agent_cli_runtime/values.rb', line 36

def requested_effort
  @requested_effort
end