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.
- checksums.yaml +4 -4
- data/lib/active_agent.rb +41 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de5df915a84f0835479481fe92aeca21119898593b7b598817c0be2ff70a78ea
|
4
|
+
data.tar.gz: '085f9480e8f0bca465b47a5c7751b629dd256d413145b8673a734286d9db7714'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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:
|
43
|
+
summary: Rails AI Agents Framework
|
44
44
|
test_files: []
|