activeagent 0.2.4.rc2 → 0.2.4.rc4

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: 77451406fee08277c7e6028535939912aea485a96345e5760347132e1bdcbee9
4
- data.tar.gz: 8da35092f080708e4a0f0d32c969ec88fdb65587a88a53c07d69203c34f36391
3
+ metadata.gz: 6ba9c1394bd97b78b1239eef0f5f97075a860581fa1b0044a26abc78d988e4cf
4
+ data.tar.gz: c274a2dbac0db2a989767c6603a644c6f905585d1517e18808e646edfbe8ab31
5
5
  SHA512:
6
- metadata.gz: 449bb8e1660d9861e2333f4912160669f5b4ca7645e9c9d04528cc3ce2c68edabc17601611287f713f41271dddeb043c17568fd7f2377b4b3d3d74a80c7f7551
7
- data.tar.gz: 0212e4e4a75154157441dd5d1a8747c4d55bbd658dac79d88235663cd2b8d1d3fc218603da726866562839af729a0444b6667af895a8d5dd94f98cb98ff0da6b
6
+ metadata.gz: 85dc8f2f8329b6af50a23fe02db955c6e293b2e6c1554c4fd22f6b37a81fba670b2b35cb127b1e0bfa86fec2cd83f888efcc607f8a45b6e9425a299629dffb66
7
+ data.tar.gz: 5f4d6263f1ebc86eaac4ced14d47fa05d5000069aa9984315472c0fc606599bde234e66f87b0ed4097577540ce6d5fd853ff26f3b36b50bf65a09c470a5177a7
@@ -6,7 +6,6 @@ module ActiveAgent
6
6
  attr_accessor :content, :role, :name, :action_requested, :requested_actions, :content_type, :charset
7
7
 
8
8
  def initialize(attributes = {})
9
- @action_requested = @requested_actions.any?
10
9
  @agent_class = attributes[:agent_class]
11
10
  @charset = attributes[:charset] || "UTF-8"
12
11
  @content = attributes[:content] || ""
@@ -14,6 +13,7 @@ module ActiveAgent
14
13
  @name = attributes[:name]
15
14
  @role = attributes[:role] || :user
16
15
  @requested_actions = attributes[:requested_actions] || []
16
+ @action_requested = @requested_actions.any?
17
17
  validate_role
18
18
  end
19
19
 
@@ -51,10 +51,6 @@ module ActiveAgent
51
51
  @response = ActiveAgent::GenerationProvider::Response.new(prompt: prompt, message: message, raw_response: response)
52
52
  end
53
53
  def embeddings_prompt(parameters: )
54
- binding.irb
55
-
56
-
57
-
58
54
  embeddings_response(@client.embeddings(parameters: embeddings_parameters))
59
55
  end
60
56
 
@@ -80,7 +76,7 @@ module ActiveAgent
80
76
  model: model,
81
77
  messages: messages,
82
78
  temperature: temperature,
83
- tools: tools
79
+ tools: tools.presence
84
80
  }
85
81
  end
86
82
 
@@ -13,7 +13,7 @@ module ActiveAgent
13
13
 
14
14
  module ClassMethods
15
15
  def configuration(provider_name, **options)
16
- config = ActiveAgent.config[provider_name.to_s] || ActiveAgent.config[ENV["RAILS_ENV"]][provider_name.to_s]
16
+ config = ActiveAgent.config[provider_name.to_s] || ActiveAgent.config.dig(ENV["RAILS_ENV"], provider_name.to_s)
17
17
 
18
18
  raise "Configuration not found for provider: #{provider_name}" unless config
19
19
  config.merge!(options)
@@ -1,3 +1,3 @@
1
1
  module ActiveAgent
2
- VERSION = "0.2.4.rc2"
2
+ VERSION = "0.2.4.rc4"
3
3
  end
@@ -16,14 +16,6 @@ module ActiveAgent
16
16
  def create_application_agent
17
17
  template "application_agent.rb", "app/agents/application_agent.rb"
18
18
  end
19
-
20
- def create_agents_directory
21
- empty_directory "app/agents"
22
- end
23
-
24
- def show_readme
25
- readme "README" if behavior == :invoke
26
- end
27
19
  end
28
20
  end
29
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.rc2
4
+ version: 0.2.4.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bowen