Class: Cadenya::Models::ObjectiveEventWebhookData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objective_event_webhook_data.rb

Defined Under Namespace

Classes: Data

Instance Attribute 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:, timestamp:, type:) ⇒ Object

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

The envelope for an objective event webhook delivery. Contains timestamp, event type, and the webhook data payload.

Parameters:

  • data (Cadenya::Models::ObjectiveEventWebhookData::Data)

    The webhook data payload with flat top-level keys for agent, variation, objectiv

  • timestamp (Time)
  • type (String)

    The event type, prefixed with objective_event. (e.g., objective_event.tool_resul



# File 'lib/cadenya/models/objective_event_webhook_data.rb', line 25

Instance Attribute Details

#dataCadenya::Models::ObjectiveEventWebhookData::Data

The webhook data payload with flat top-level keys for agent, variation, objective, and event.



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

required :data, -> { Cadenya::ObjectiveEventWebhookData::Data }

#timestampTime

Returns:

  • (Time)


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

required :timestamp, Time

#typeString

The event type, prefixed with objective_event. (e.g., objective_event.tool_result)

Returns:

  • (String)


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

required :type, String