Class: Cadenya::Models::ObjectiveInfo
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ObjectiveInfo
- Defined in:
- lib/cadenya/models/objective_info.rb,
sig/cadenya/models/objective_info.rbs
Instance Attribute Summary collapse
-
#agent ⇒ Cadenya::ResourceMetadata
Returns the value of attribute agent.
-
#agent_variation ⇒ Cadenya::ResourceMetadata
Returns the value of attribute agent_variation.
-
#created_by ⇒ Cadenya::Models::Profile
A profile identifies a user or non-human principal (such as an API key) at the account level.
-
#current_context_window_id ⇒ String
Returns the value of attribute current_context_window_id.
-
#effective_memory_cascade ⇒ ::Array[Cadenya::MemoryReference]
Returns the value of attribute effective_memory_cascade.
-
#subject ⇒ Cadenya::SubjectReference?
readonly
Returns the value of attribute subject.
-
#tenant ⇒ Cadenya::TenantReference?
readonly
Returns the value of attribute tenant.
-
#total_context_windows ⇒ Integer
Returns the value of attribute total_context_windows.
-
#total_events ⇒ Integer
Returns the value of attribute total_events.
-
#total_input_tokens ⇒ Integer
Returns the value of attribute total_input_tokens.
-
#total_iterations ⇒ Integer
Returns the value of attribute total_iterations.
-
#total_output_tokens ⇒ Integer
Returns the value of attribute total_output_tokens.
-
#total_tool_calls ⇒ Integer
Returns the value of attribute total_tool_calls.
-
#widget ⇒ Cadenya::BareMetadata?
readonly
Returns the value of attribute widget.
Instance Method Summary collapse
-
#initialize(agent:, agent_variation:, created_by:, current_context_window_id:, effective_memory_cascade:, total_context_windows:, total_events:, total_input_tokens:, total_iterations:, total_output_tokens:, total_tool_calls:, subject: nil, tenant: nil, widget: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ObjectiveInfo for more details.
- #subject ⇒ Cadenya::SubjectReference readonly
- #tenant ⇒ Cadenya::TenantReference readonly
- #to_hash ⇒ {
- #widget ⇒ Cadenya::BareMetadata readonly
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(agent:, agent_variation:, created_by:, current_context_window_id:, effective_memory_cascade:, total_context_windows:, total_events:, total_input_tokens:, total_iterations:, total_output_tokens:, total_tool_calls:, subject: nil, tenant: nil, widget: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::ObjectiveInfo for more details.
ObjectiveInfo provides read-only aggregated statistics about an objective's execution
|
|
# File 'lib/cadenya/models/objective_info.rb', line 110
|
Instance Attribute Details
#agent ⇒ Cadenya::ResourceMetadata
Returns the value of attribute agent.
24 25 26 |
# File 'sig/cadenya/models/objective_info.rbs', line 24 def agent @agent end |
#agent_variation ⇒ Cadenya::ResourceMetadata
Returns the value of attribute agent_variation.
26 27 28 |
# File 'sig/cadenya/models/objective_info.rbs', line 26 def agent_variation @agent_variation end |
#created_by ⇒ Cadenya::Models::Profile
A profile identifies a user or non-human principal (such as an API key) at the account level. Profiles are account-scoped and can be granted access to multiple workspaces.
12 |
# File 'lib/cadenya/models/objective_info.rb', line 12 required :created_by, -> { Cadenya::Profile }, api_name: :createdBy |
#current_context_window_id ⇒ String
Returns the value of attribute current_context_window_id.
28 29 30 |
# File 'sig/cadenya/models/objective_info.rbs', line 28 def current_context_window_id @current_context_window_id end |
#effective_memory_cascade ⇒ ::Array[Cadenya::MemoryReference]
Returns the value of attribute effective_memory_cascade.
30 31 32 |
# File 'sig/cadenya/models/objective_info.rbs', line 30 def effective_memory_cascade @effective_memory_cascade end |
#subject ⇒ Cadenya::SubjectReference? (readonly)
Returns the value of attribute subject.
44 45 46 |
# File 'sig/cadenya/models/objective_info.rbs', line 44 def subject @subject end |
#tenant ⇒ Cadenya::TenantReference? (readonly)
Returns the value of attribute tenant.
48 49 50 |
# File 'sig/cadenya/models/objective_info.rbs', line 48 def tenant @tenant end |
#total_context_windows ⇒ Integer
Returns the value of attribute total_context_windows.
32 33 34 |
# File 'sig/cadenya/models/objective_info.rbs', line 32 def total_context_windows @total_context_windows end |
#total_events ⇒ Integer
Returns the value of attribute total_events.
34 35 36 |
# File 'sig/cadenya/models/objective_info.rbs', line 34 def total_events @total_events end |
#total_input_tokens ⇒ Integer
Returns the value of attribute total_input_tokens.
36 37 38 |
# File 'sig/cadenya/models/objective_info.rbs', line 36 def total_input_tokens @total_input_tokens end |
#total_iterations ⇒ Integer
Returns the value of attribute total_iterations.
38 39 40 |
# File 'sig/cadenya/models/objective_info.rbs', line 38 def total_iterations @total_iterations end |
#total_output_tokens ⇒ Integer
Returns the value of attribute total_output_tokens.
40 41 42 |
# File 'sig/cadenya/models/objective_info.rbs', line 40 def total_output_tokens @total_output_tokens end |
#total_tool_calls ⇒ Integer
Returns the value of attribute total_tool_calls.
42 43 44 |
# File 'sig/cadenya/models/objective_info.rbs', line 42 def total_tool_calls @total_tool_calls end |
#widget ⇒ Cadenya::BareMetadata? (readonly)
Returns the value of attribute widget.
52 53 54 |
# File 'sig/cadenya/models/objective_info.rbs', line 52 def @widget end |
Instance Method Details
#subject= ⇒ Cadenya::SubjectReference (readonly)
46 |
# File 'sig/cadenya/models/objective_info.rbs', line 46
def subject=: (Cadenya::SubjectReference) -> Cadenya::SubjectReference
|
#tenant= ⇒ Cadenya::TenantReference (readonly)
50 |
# File 'sig/cadenya/models/objective_info.rbs', line 50
def tenant=: (Cadenya::TenantReference) -> Cadenya::TenantReference
|
#to_hash ⇒ {
73 |
# File 'sig/cadenya/models/objective_info.rbs', line 73
def to_hash: -> {
|
#widget= ⇒ Cadenya::BareMetadata (readonly)
54 |
# File 'sig/cadenya/models/objective_info.rbs', line 54
def widget=: (Cadenya::BareMetadata) -> Cadenya::BareMetadata
|