Class: Legion::Extensions::Agentic::Self::NarrativeIdentity::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Self::NarrativeIdentity::Client
- Includes:
- Runners::NarrativeIdentity
- Defined in:
- lib/legion/extensions/agentic/self/narrative_identity/client.rb
Instance Attribute Summary collapse
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
Instance Method Summary collapse
-
#initialize(engine: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::NarrativeIdentity
#add_theme, #assign_episode_to_chapter, #close_chapter, #create_chapter, #current_chapter, #decay_themes, #identity_summary, #life_story, #link_theme, #most_defining_episodes, #narrative_coherence, #narrative_report, #prominent_themes, #record_episode, #reinforce_theme
Constructor Details
#initialize(engine: nil) ⇒ Client
Returns a new instance of Client.
13 14 15 16 |
# File 'lib/legion/extensions/agentic/self/narrative_identity/client.rb', line 13 def initialize(engine: nil) @engine = engine || Helpers::NarrativeEngine.new @default_engine = @engine end |
Instance Attribute Details
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
11 12 13 |
# File 'lib/legion/extensions/agentic/self/narrative_identity/client.rb', line 11 def engine @engine end |