activeagent 0.3.3 → 0.4.0
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 +4 -4
- data/lib/active_agent/action_prompt/base.rb +468 -0
- data/lib/active_agent/action_prompt/message.rb +22 -2
- data/lib/active_agent/action_prompt/prompt.rb +2 -2
- data/lib/active_agent/action_prompt.rb +84 -0
- data/lib/active_agent/base.rb +9 -448
- data/lib/active_agent/callbacks.rb +9 -9
- data/lib/active_agent/generation.rb +3 -3
- data/lib/active_agent/generation_job.rb +8 -6
- data/lib/active_agent/generation_provider/open_ai_provider.rb +20 -8
- data/lib/active_agent/parameterized.rb +1 -1
- data/lib/active_agent/version.rb +1 -1
- data/lib/active_agent.rb +1 -2
- data/lib/generators/active_agent/templates/application_agent.rb.tt +0 -4
- metadata +18 -9
- data/lib/active_agent/README.md +0 -21
- data/lib/active_agent/action_prompt/README.md +0 -0
- data/lib/active_agent/generation_provider/README.md +0 -0
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Bowen
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: actionpack
|
@@ -130,6 +129,20 @@ dependencies:
|
|
130
129
|
- - "<"
|
131
130
|
- !ruby/object:Gem::Version
|
132
131
|
version: '9.0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: jbuilder
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
133
146
|
description: The only agent-oriented AI framework designed for Rails, where Agents
|
134
147
|
are Controllers. Build AI features with less complexity using the MVC conventions
|
135
148
|
you love.
|
@@ -140,10 +153,9 @@ extra_rdoc_files: []
|
|
140
153
|
files:
|
141
154
|
- CHANGELOG.md
|
142
155
|
- lib/active_agent.rb
|
143
|
-
- lib/active_agent/README.md
|
144
156
|
- lib/active_agent/action_prompt.rb
|
145
|
-
- lib/active_agent/action_prompt/README.md
|
146
157
|
- lib/active_agent/action_prompt/action.rb
|
158
|
+
- lib/active_agent/action_prompt/base.rb
|
147
159
|
- lib/active_agent/action_prompt/message.rb
|
148
160
|
- lib/active_agent/action_prompt/prompt.rb
|
149
161
|
- lib/active_agent/base.rb
|
@@ -154,7 +166,6 @@ files:
|
|
154
166
|
- lib/active_agent/generation_job.rb
|
155
167
|
- lib/active_agent/generation_methods.rb
|
156
168
|
- lib/active_agent/generation_provider.rb
|
157
|
-
- lib/active_agent/generation_provider/README.md
|
158
169
|
- lib/active_agent/generation_provider/anthropic_provider.rb
|
159
170
|
- lib/active_agent/generation_provider/base.rb
|
160
171
|
- lib/active_agent/generation_provider/ollama_provider.rb
|
@@ -194,7 +205,6 @@ metadata:
|
|
194
205
|
documentation_uri: https://github.com/activeagents/activeagent
|
195
206
|
source_code_uri: https://github.com/activeagents/activeagent
|
196
207
|
rubygems_mfa_required: 'true'
|
197
|
-
post_install_message:
|
198
208
|
rdoc_options: []
|
199
209
|
require_paths:
|
200
210
|
- lib
|
@@ -209,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
219
|
- !ruby/object:Gem::Version
|
210
220
|
version: '0'
|
211
221
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
213
|
-
signing_key:
|
222
|
+
rubygems_version: 3.6.9
|
214
223
|
specification_version: 4
|
215
224
|
summary: Rails AI Agents Framework
|
216
225
|
test_files: []
|
data/lib/active_agent/README.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# Active Agent
|
2
|
-
Active Agent is a Rails framework for creating and managing AI agents. It provides a structured way to interact with generation providers through agents with context including prompts, tools, and messages. It includes two core modules, Generation Provider and Action Prompt, along with several support classes to handle different aspects of agent creation and management.
|
3
|
-
|
4
|
-
## Core Modules
|
5
|
-
|
6
|
-
- Generation Provider - module for configuring and interacting with generation providers through Prompts and Responses.
|
7
|
-
- Action Prompt - module for defining prompts, tools, and messages. The Base class implements an AbstractController to render prompts and actions. Prompts are Action Views that provide instructions for the agent to generate content, formatted messages for the agent and users including **streaming generative UI**.
|
8
|
-
|
9
|
-
## Main Components
|
10
|
-
|
11
|
-
- Base class - for creating and configuring agents.
|
12
|
-
- Queued Generation - module for managing queued generation requests and responses. Using the Generation Job class to perform asynchronous generation requests, it provides a way to **stream generation** requests back to the Job, Agent, or User.
|
13
|
-
|
14
|
-
### ActiveAgent::Base
|
15
|
-
|
16
|
-
The Base class is used to create agents that interact with generation providers through prompts and messages. It includes methods for configuring and interacting with generation providers using Prompts and Responses. The Base class also provides a structured way to render prompts and actions.
|
17
|
-
|
18
|
-
#### Core Methods
|
19
|
-
|
20
|
-
- `generate_with(provider, options = {})` - Configures the agent to generate content using the specified generation provider and options.
|
21
|
-
- `streams_with(provider, options = {})` - Configures the agent to stream content using the specified generation provider's stream option.
|
File without changes
|
File without changes
|