activeagent 0.2.4.rc1 → 0.2.4.rc2

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: 184241f5e4ba55a57a90127a92fe89893991e6b71afa1338f7f3ac4f321bc0b2
4
- data.tar.gz: 268aee27278446080510e914eb826144c7d2e27b2e5707fc86be79c3264441c8
3
+ metadata.gz: 77451406fee08277c7e6028535939912aea485a96345e5760347132e1bdcbee9
4
+ data.tar.gz: 8da35092f080708e4a0f0d32c969ec88fdb65587a88a53c07d69203c34f36391
5
5
  SHA512:
6
- metadata.gz: bb8cee4ce3dfc23379004df4b5ead15e5de241cad72ddf30f0fda09a70ebd5a07150a9de08581fc5e7b0de7d6cf02e44e097c26ebb054efcecd117989c7787a5
7
- data.tar.gz: 59fefa71afbd284233b03ed80a4b86c4b9050f246dd6246d592d5ae5acdeda8d16be5bbc682dc0dbab235605052b878310a5d9ed421735eba20aebd9baf229b8
6
+ metadata.gz: 449bb8e1660d9861e2333f4912160669f5b4ca7645e9c9d04528cc3ce2c68edabc17601611287f713f41271dddeb043c17568fd7f2377b4b3d3d74a80c7f7551
7
+ data.tar.gz: 0212e4e4a75154157441dd5d1a8747c4d55bbd658dac79d88235663cd2b8d1d3fc218603da726866562839af729a0444b6667af895a8d5dd94f98cb98ff0da6b
@@ -1,3 +1,3 @@
1
1
  module ActiveAgent
2
- VERSION = "0.2.4.rc1"
2
+ VERSION = "0.2.4.rc2"
3
3
  end
@@ -0,0 +1,6 @@
1
+ development:
2
+ openai:
3
+ service: "OpenAI"
4
+ api_key: <%%= Rails.application.credentials.dig(:openai, :api_key) %>
5
+ model: "gpt-3.5-turbo"
6
+ temperature: 0.7
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ActiveAgent.load_configuration(Rails.root.join('config', 'active_agent.yml'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.rc1
4
+ version: 0.2.4.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bowen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-24 00:00:00.000000000 Z
11
+ date: 2025-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -174,15 +174,15 @@ files:
174
174
  - lib/active_agent/version.rb
175
175
  - lib/generators/active_agent/USAGE
176
176
  - lib/generators/active_agent/agent_generator.rb
177
+ - lib/generators/active_agent/install_generator.rb
177
178
  - lib/generators/active_agent/templates/action.html.erb.tt
178
179
  - lib/generators/active_agent/templates/action.json.jbuilder.tt
180
+ - lib/generators/active_agent/templates/active_agent.yml
179
181
  - lib/generators/active_agent/templates/agent.rb.tt
180
182
  - lib/generators/active_agent/templates/agent_spec.rb.tt
181
183
  - lib/generators/active_agent/templates/agent_test.rb.tt
182
184
  - lib/generators/active_agent/templates/application_agent.rb.tt
183
- - lib/generators/install_generator.rb
184
- - lib/generators/templates/active_agent.yml
185
- - lib/generators/templates/initializer.rb
185
+ - lib/generators/active_agent/templates/initializer.rb
186
186
  homepage: https://rubygems.org/gems/activeagent
187
187
  licenses:
188
188
  - MIT
@@ -1,34 +0,0 @@
1
- default: &default
2
- openai: &openai_default
3
- access_token: <%= ENV['OPENAI_ACCESS_TOKEN'] %>
4
- organization_id: <%= ENV['OPENAI_ORGANIZATION_ID'] %>
5
- default_model: gpt-4
6
- default_embedding_model: text-embedding-3-small
7
- default_temperature: 0.7
8
- request_timeout: 60
9
-
10
- anthropic: &anthropic_default
11
- access_token: <%= ENV['ANTHROPIC_ACCESS_TOKEN'] %>
12
- default_model: claude-3-sonnet
13
- default_temperature: 0.7
14
- request_timeout: 60
15
-
16
- development:
17
- <<: *default
18
-
19
- test:
20
- <<: *default
21
- test_mode: true
22
- mock_responses: true
23
-
24
- production:
25
- <<: *default
26
- openai:
27
- <<: *openai_default
28
- request_timeout: 120
29
- anthropic:
30
- <<: *anthropic_default
31
- request_timeout: 120
32
-
33
- staging:
34
- <<: *production
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Configure ActiveAgent
4
- ActiveAgent.configure do |config|
5
- # Load configuration from config/active_agent.yml
6
- config.load_configuration Rails.root.join("config", "active_agent.yml")
7
-
8
- # Configure default provider settings
9
- config.default_provider = :openai
10
-
11
- # Configure default generation settings
12
- config.default_generation_settings = {
13
- temperature: 0.7,
14
- top_p: 1.0,
15
- frequency_penalty: 0.0,
16
- presence_penalty: 0.0
17
- }
18
-
19
- # Configure default embedding settings
20
- config.default_embedding_settings = {
21
- dimensions: 1536
22
- }
23
-
24
- # Configure test mode - when true, will use mock responses
25
- config.test_mode = Rails.env.test?
26
-
27
- # Configure logging
28
- config.logger = Rails.logger
29
- config.log_level = Rails.env.production? ? :info : :debug
30
-
31
- # Configure cache
32
- config.cache = Rails.cache
33
- end