Class: Cloudflare::RealtimeKit::Summary

Inherits:
Cloudflare::Resource show all
Defined in:
lib/cloudflare/realtime_kit/summary.rb

Overview

AI-generated summary of a historical session. Reached via session.summary, which auto-loads on first access.

Use #generate to (re)trigger summary generation when one isn’t yet available — e.g., the meeting ended without summarize_on_end set.

session.summary.text
session.summary.generate

Constant Summary

Constants inherited from Cloudflare::Resource

Cloudflare::Resource::ENVELOPE_KEYS

Instance Attribute Summary

Attributes inherited from Cloudflare::Resource

#scope

Instance Method Summary collapse

Methods inherited from Cloudflare::Resource

#==, #[], all, attribute, attributes, #attributes, collection_path, create, #destroy, find, has_many, has_one, #hash, #id, #initialize, member_path, read_only, read_only?, #reload, scope_params, scope_required, #set_attrs_from_response, #to_h, to_wire_keys, unwrap_envelope, #update, wire_kwarg, wire_name_for_request, wire_name_for_response

Constructor Details

This class inherits a constructor from Cloudflare::Resource

Instance Method Details

#generateObject

POST /sessions/session_id/summary — generate a summary on demand.



21
22
23
24
25
# File 'lib/cloudflare/realtime_kit/summary.rb', line 21

def generate
  response = Connection.instance.request(:post, member_path)
  set_attrs_from_response(response)
  self
end