Class: Cadenya::Models::Objectives::ObjectiveToolCallWithResult

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objectives/objective_tool_call_with_result.rb,
sig/cadenya/models/objectives/objective_tool_call_with_result.rbs

Overview

See Also:

  • Cadenya::Resources::Objectives::ToolCalls#retrieve

Defined Under Namespace

Modules: ExecutionStatus, Status

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(data:, execution_status:, info:, metadata:, status:, resolved_secrets: nil, result: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::Objectives::ObjectiveToolCallWithResult for more details.

ObjectiveToolCallWithResult is an ObjectiveToolCall plus the content the tool returned. Returned by GetObjectiveToolCall.

Parameters:



# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 57

Instance Attribute Details

#dataCadenya::Models::Objectives::ObjectiveToolCallData

Parameters:

  • value (Cadenya::Objectives::ObjectiveToolCallData)

Returns:



11
# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 11

required :data, -> { Cadenya::Objectives::ObjectiveToolCallData }

#execution_statusCadenya::Models::Objectives::ObjectiveToolCallWithResult::execution_status

Returns the value of attribute execution_status.

Returns:

  • (Cadenya::Models::Objectives::ObjectiveToolCallWithResult::execution_status)


26
27
28
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 26

def execution_status
  @execution_status
end

#infoCadenya::Models::Objectives::ObjectiveToolCallInfo

Parameters:

  • value (Cadenya::Objectives::ObjectiveToolCallInfo)

Returns:



16
# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 16

required :info, -> { Cadenya::Objectives::ObjectiveToolCallInfo }

#metadataCadenya::Models::OperationMetadata

Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)



23
# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 23

required :metadata, -> { Cadenya::OperationMetadata }

#resolved_secrets::Array[Cadenya::Objectives::ResolvedSecret]? (readonly)

Returns the value of attribute resolved_secrets.

Returns:

  • (::Array[Cadenya::Objectives::ResolvedSecret], nil)


28
29
30
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 28

def resolved_secrets
  @resolved_secrets
end

#resultCadenya::Objectives::ObjectiveToolCallResult? (readonly)

Returns the value of attribute result.

Returns:

  • (Cadenya::Objectives::ObjectiveToolCallResult, nil)


34
35
36
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 34

def result
  @result
end

#statusSymbol, Cadenya::Models::Objectives::ObjectiveToolCallWithResult::Status

Current status of the tool call

Parameters:

  • value (Cadenya::Models::Objectives::ObjectiveToolCallWithResult::status)

Returns:



29
# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 29

required :status, enum: -> { Cadenya::Objectives::ObjectiveToolCallWithResult::Status }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/cadenya/models/objectives/objective_tool_call_with_result.rb', line 88

Instance Method Details

#resolved_secrets=Object (readonly)



30
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 30

def resolved_secrets=: (

#result=Object (readonly)



36
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 36

def result=: (

#to_hash{

Returns:

  • ({)


50
# File 'sig/cadenya/models/objectives/objective_tool_call_with_result.rbs', line 50

def to_hash: -> {