Class: Phronomy::Agent::ContextImporter
- Inherits:
-
Object
- Object
- Phronomy::Agent::ContextImporter
- Defined in:
- lib/phronomy/agent/context_importer.rb
Defined Under Namespace
Classes: ImportedContext, ImportedRecord
Class Method Summary collapse
Class Method Details
.import_messages(messages, system_message: :reject) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/phronomy/agent/context_importer.rb', line 26 def (, system_message: :reject) = Array() validate_protocol!() records = .map do || (, system_message: ) end ImportedContext.new(records: records.freeze) end |