Class: Cadenya::Models::ObjectiveCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ObjectiveCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/cadenya/models/objective_create_params.rb
Overview
Defined Under Namespace
Classes: Secret
Instance Attribute Summary collapse
- #agent_id ⇒ String
-
#data ⇒ Hash{Symbol=>Object}
Arbitrary data for the objective.
-
#initial_message ⇒ String?
Optional override for the initial message sent to the agent.
-
#memory_stack ⇒ Array<Cadenya::Models::MemoryReference>?
Memory layers/entries to push onto this objective’s memory stack on top of the baseline stack inherited from the selected variation.
-
#metadata ⇒ Cadenya::Models::CreateOperationMetadata?
CreateOperationMetadata contains the user-provided fields for creating an operation.
-
#secrets ⇒ Array<Cadenya::Models::ObjectiveCreateParams::Secret>?
Secrets that can be used in the headers for tool calls using the secret interpolation format.
-
#user_data ⇒ Hash{Symbol=>Object}?
Arbitrary data rendered into the selected variation’s user_message_template (liquid) to produce the initial user message.
-
#variation_id ⇒ String?
Optional explicit variation selection.
- #workspace_id ⇒ String
Attributes included from Internal::Type::RequestParameters
Method Summary
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from Cadenya::Internal::Type::BaseModel
Instance Attribute Details
#agent_id ⇒ String
18 |
# File 'lib/cadenya/models/objective_create_params.rb', line 18 required :agent_id, String, api_name: :agentId |
#data ⇒ Hash{Symbol=>Object}
Arbitrary data for the objective. May be used in liquid templates for prompts configured on the agent variation
25 |
# File 'lib/cadenya/models/objective_create_params.rb', line 25 required :data, Cadenya::Internal::Type::HashOf[Cadenya::Internal::Type::Unknown] |
#initial_message ⇒ String?
Optional override for the initial message sent to the agent. This becomes the first user message in the LLM chat history. When not set, the selected variation’s user_message_template is rendered with user_data instead. If neither this field nor a user_message_template is present, the request is rejected with InvalidArgument.
35 |
# File 'lib/cadenya/models/objective_create_params.rb', line 35 optional :initial_message, String, api_name: :initialMessage |
#memory_stack ⇒ Array<Cadenya::Models::MemoryReference>?
Memory layers/entries to push onto this objective’s memory stack on top of the baseline stack inherited from the selected variation.
Array order is push order: the first element sits lower in the objective’s contribution to the stack; the LAST element ends up on top of the effective stack. Entries pinned via memory_entry_id behave as single-entry layers at their position.
System-managed layers (e.g., episodic) cannot be referenced here; they attach themselves automatically based on episodic_key.
Stack size cap: the TOTAL effective stack (variation’s memory layers
-
this field) must not exceed 10 entries. A request that would produce an effective stack larger than 10 is rejected with InvalidArgument.
55 56 57 |
# File 'lib/cadenya/models/objective_create_params.rb', line 55 optional :memory_stack, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::MemoryReference] }, api_name: :memoryStack |
#metadata ⇒ Cadenya::Models::CreateOperationMetadata?
CreateOperationMetadata contains the user-provided fields for creating an operation. Read-only fields (id, account_id, workspace_id, created_at, profile_id) are excluded since they are set by the server.
65 |
# File 'lib/cadenya/models/objective_create_params.rb', line 65 optional :metadata, -> { Cadenya::CreateOperationMetadata } |
#secrets ⇒ Array<Cadenya::Models::ObjectiveCreateParams::Secret>?
Secrets that can be used in the headers for tool calls using the secret interpolation format.
72 |
# File 'lib/cadenya/models/objective_create_params.rb', line 72 optional :secrets, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::ObjectiveCreateParams::Secret] } |
#user_data ⇒ Hash{Symbol=>Object}?
Arbitrary data rendered into the selected variation’s user_message_template (liquid) to produce the initial user message. Separate from ‘data`, which renders the system prompt template.
80 81 82 |
# File 'lib/cadenya/models/objective_create_params.rb', line 80 optional :user_data, Cadenya::Internal::Type::HashOf[Cadenya::Internal::Type::Unknown], api_name: :userData |
#variation_id ⇒ String?
Optional explicit variation selection. Overrides the agent’s variation_selection_mode.
89 |
# File 'lib/cadenya/models/objective_create_params.rb', line 89 optional :variation_id, String, api_name: :variationId |
#workspace_id ⇒ String
13 |
# File 'lib/cadenya/models/objective_create_params.rb', line 13 required :workspace_id, String |