meta_workflows 0.9.46 → 0.9.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbcfa55a0db6a07e22112f35a21c606b76fb9e24f55ca4222002e6fe3c9b68f6
4
- data.tar.gz: 568f9a5c395957f878a8101a15221fe6ef99353c43eaab2448833c810c6245b1
3
+ metadata.gz: 3d262f3f68619bc61b62276e6fd149a5edba4a6b502b2d5c0ccb5b6938f196f2
4
+ data.tar.gz: 42502d4dbe357cc85e32b8404a3e703a8ccf81ff34aef164dfa6fee590970ce7
5
5
  SHA512:
6
- metadata.gz: a773e6331211697f24b12803af9aee8de61559bf11bae54e1c523af5ff602b91c9ff973c10ce5a3343cd2bad4faf1608d28b6222b7664a433bc297670b6088e1
7
- data.tar.gz: 244396bd652bcedc5f3efb7542a823b74e2ddf9be4f2f0a01eb2de18918aeeec18bd7396eb31a338e6aa1ea54ccca445348a1a317a78fafd842a42d4471b6b74
6
+ metadata.gz: 4251e0ec264849cfda9e5bd024c5c58be118662f0c5dd2ae618d5f2970dae38ed62e0172c1ddb665a01f524ae269f6eb17290f622b66f5416cfcc1919f061f6d
7
+ data.tar.gz: ef53fecf11d72981995ba61dff5985f1d532ed9733955b1b7d58d9f3b03a2151e29bed569a089f7a0aaa5e8d09729e09551cfb20dbb64c0e58cffaeb96288c7d
data/README.md CHANGED
@@ -203,6 +203,12 @@ Use the exact model ID from the documentation when configuring your workflow ste
203
203
  Add this line to your application's Gemfile:
204
204
 
205
205
  ```ruby
206
+ # Either
207
+ gem 'ruby_llm_community'
208
+ # Or
209
+ gem 'ruby_llm'
210
+
211
+ # Then
206
212
  gem 'meta_workflows'
207
213
  ```
208
214
 
@@ -37,14 +37,14 @@ module MetaWorkflows
37
37
  current_step_data = workflow_execution.step_data(workflow_execution.current_step)
38
38
  merged_inputs = merge_matching_workflow_params(workflow_execution, current_step_data, inputs)
39
39
 
40
- conversation = RubyConversations::Conversation.new(chat:)
40
+ conversation = RubyConversations::ConversationManager.new(chat:)
41
41
  conversation.with_prompt(params[:prompt_id], inputs: merged_inputs,
42
42
  description: "Running #{params[:prompt_id]} process")
43
43
  end
44
44
 
45
45
  def continue_existing_conversation(params)
46
46
  @chat = MetaWorkflows::Chat.find(params[:chat_id])
47
- conversation = RubyConversations::Conversation.new(chat:, id: chat.conversation_id)
47
+ conversation = RubyConversations::ConversationManager.new(chat:, id: chat.conversation_id)
48
48
  new_message = params[:inputs]
49
49
  conversation.with_user_message(new_message, description: "Following up on #{params[:prompt_id]} process")
50
50
  conversation
@@ -13,7 +13,7 @@ module MetaWorkflows
13
13
  after_initialize :set_chat
14
14
 
15
15
  def set_chat
16
- RubyConversations::Conversation.configure_llm_credentials
16
+ RubyConversations::ConversationManager.configure_llm_credentials
17
17
  @chat = RubyLLM::Chat.new(model: model_id, provider:)
18
18
  end
19
19
  end
@@ -30,6 +30,14 @@ module MetaWorkflows
30
30
  end
31
31
  end
32
32
 
33
+ # Load RubyLLM ActiveRecord extensions
34
+ initializer 'meta_workflows.ruby_llm' do
35
+ ActiveSupport.on_load :active_record do
36
+ require 'ruby_llm/active_record/acts_as'
37
+ include RubyLLM::ActiveRecord::ActsAs
38
+ end
39
+ end
40
+
33
41
  # Configure routes
34
42
  initializer 'meta_workflows.routes' do |app|
35
43
  # Routes will be mounted by the host application
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- PATCH = 46 # this is automatically incremented by the build process
6
+ PATCH = 47 # this is automatically incremented by the build process
7
7
 
8
8
  VERSION = "#{MetaWorkflows::MAJOR}.#{MetaWorkflows::MINOR}.#{MetaWorkflows::PATCH}".freeze
9
9
  end
@@ -236,7 +236,7 @@ module Services
236
236
  end
237
237
 
238
238
  def create_and_configure_conversation(chat, workflow_execution, execution_output, execution_step)
239
- conversation = RubyConversations::Conversation.new(chat: chat)
239
+ conversation = RubyConversations::ConversationManager.new(chat: chat)
240
240
  conversation.tool = ::MetaWorkflows::Tools::MetaWorkflowTool.build(workflow_execution, execution_output)
241
241
 
242
242
  merged_inputs = merge_matching_workflow_params(workflow_execution, execution_step, inputs)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_workflows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.46
4
+ version: 0.9.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-08-01 00:00:00.000000000 Z
12
+ date: 2025-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -59,20 +59,6 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: ruby_llm
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- type: :runtime
70
- prerelease: false
71
- version_requirements: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
62
  - !ruby/object:Gem::Dependency
77
63
  name: stimulus-rails
78
64
  requirement: !ruby/object:Gem::Requirement