activeagent 0.0.0 → 0.0.1.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/active_agent.rb +41 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45c2b927c48f97fccc3469685189866cf786e50ffdbf77bb44a12e8b466bc418
4
- data.tar.gz: 472adff0970f195c4cfbbeb0a6e4157c94eaa53d9c4969c6fc032e9cf3147705
3
+ metadata.gz: de5df915a84f0835479481fe92aeca21119898593b7b598817c0be2ff70a78ea
4
+ data.tar.gz: '085f9480e8f0bca465b47a5c7751b629dd256d413145b8673a734286d9db7714'
5
5
  SHA512:
6
- metadata.gz: d157d1c1e98ecc510248f29b801183f82bc56ace19e5e1d9dcabd551e4e5878ee08307ca824b9ec2739893acdbe17cdf41551225898d0ca6fecb4fd9623b6a94
7
- data.tar.gz: 9f67dbe0db5b81410c19cac2e8dcc07b3bf42f29ddd559d9d7fef3f961efee3687883e41fa2651e17df06211dc0b6b25c76806e5127c6985682b5fc607971008
6
+ metadata.gz: 6dc168a515156565906653929fedce429712addf8f454ed5732cc05225c30ad9bae3db7c7c4315440b29447f22b814ad25c49c7f1914c63d2e8f165099fac6f0
7
+ data.tar.gz: 4115f1c0e0496708cecfecade88975cfff72bdefc2b939e310dcb0c34f6ba46917cff46134c67e1157f545828a08e658341e5665f6c3f58b6785a27b63b8a38f
data/lib/active_agent.rb CHANGED
@@ -0,0 +1,41 @@
1
+ # lib/active_agent.rb
2
+ require "yaml"
3
+ require "active_agent/version"
4
+ require "active_agent/deprecator"
5
+ require "active_agent/action_prompt/prompt_helper"
6
+ require "active_support"
7
+
8
+ module ActiveAgent
9
+ extend ActiveSupport::Autoload
10
+
11
+ autoload :Base
12
+ autoload :Callbacks
13
+ autoload :ActionPrompt
14
+ autoload :Parameterized
15
+ autoload :Generation
16
+ autoload :GenerationProvider
17
+ autoload :GenerationJob
18
+ autoload :QueuedGeneration
19
+
20
+ class << self
21
+ attr_accessor :config
22
+
23
+ def configure
24
+ yield self
25
+ end
26
+
27
+ def load_configuration(file)
28
+ config_file = YAML.load_file(file, aliases: true)
29
+ env = ENV["RAILS_ENV"] || ENV["ENV"] || "development"
30
+ @config = config_file[env] || config_file
31
+ end
32
+ end
33
+ end
34
+
35
+ autoload :Mime, "action_dispatch/http/mime_type"
36
+
37
+ ActiveSupport.on_load(:action_view) do
38
+ ActionView::Base.default_formats ||= Mime::SET.symbols
39
+ ActionView::Template.mime_types_implementation = Mime
40
+ ActionView::LookupContext::DetailsKey.clear
41
+ end
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.0.0
4
+ version: 0.0.1.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bowen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-26 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple way to perform long running LLM background jobs and streaming
14
14
  responses
@@ -40,5 +40,5 @@ requirements: []
40
40
  rubygems_version: 3.5.3
41
41
  signing_key:
42
42
  specification_version: 4
43
- summary: A simple way to perform long running LLM background jobs and streaming responses
43
+ summary: Rails AI Agents Framework
44
44
  test_files: []