Commit d818575
authored
Major Framework Refactor: ActiveAgent v1.0.0 (#259)
* Add ENV to .gitignore
* Rename Provider "Base" to "BaseProvider"
* Move Provider Concerns into folder
* Improve Provider Deps Loading
* Refactor Provider Options
* [WIP] Refactor Providers
* Refactor Anthropic Options & Provider clients
* [WIP] Boil the Ocean - OpenAI Responses API Basic Support
* [WIP] Boil the Ocean - OpenAI Chat API Basic Support
* [WIP] Boil the Ocean - OpenAI Chat API Streaming Support
* [WIP] Boil the Ocean - Refactor OpenAI Specs
* [WIP] Boil the Ocean - OpenAI Chat API Web Search Support
* [WIP] Boil the Ocean - OpenAI Responses API Streaming Support
* [WIP] Boil the Ocean - OpenAI Responses & Chat API Streaming Functions Resolving
* [WIP] Boil the Ocean - OpenAI Responses & Chat API > Defer Client & Context Resolving
* [WIP] Boil the Ocean - OpenAI Stabilized (Native Format)
* [WIP] Boil the Ocean - Add Basic [Native Format] OpenRouter Support
* [WIP] Boil the Ocean - Full Core Native Format Support For OpenAI, Ollama, OpenRouter
* [WIP] Boil the Ocean - Core Native Format Support For Anthropic
* [WIP] Provider Cleanup
* [WIP] Improve Streaming API
* [WIP] Refactor Rescuable
* [WIP] Add OpenAI & Ollama Embedding
* [WIP] Improve comments
* [WIP] Move Observers to a Concern
* [WIP] Add Support for Common Instructions Formats
* [WIP] Create Updated Common Response Format
* [WIP] Improve Embedding Response parsing
* [WIP] Improve Instructions rendering from symbols to match Rails
* [WIP] Cleanups
* [WIP] Improve Retries and Configuration
* [WIP] Add improved logging
* [WIP] Cleanups
* [WIP] Fix Tests
* [WIP] Fix logging & Add Trace IDs
* [WIP] Create Improved Messages Common Format - Anthropic
* [WIP] Create Improved Messages Common Format - OpenAI
* [WIP] Create Improved Messages Common Format - OpenRouter & Ollama
* [WIP] Setup Action-level template rendering
* [WIP] Add tests for Structured Ouputs
* [WIP] Cleanups
* [WIP] Improve prompt_context api with .prompt(...)
* [WIP] Docs
* [WIP] Create Mock Provider
* [WIP] Get Docs to Build Again
* [WIP] Docs - Overview
* [WIP] Docs - Framework
* [WIP] Add/Fix md template rendering
* [WIP] Docs - Agent Instructions
* [WIP] Dep injection fixes
* [WIP] Fix Anthropic Error Handling
* [WIP] Add response_type json_object emulated support for Anthropic
* [WIP] Fix agent template loading paths
* [WIP] OpenAI Responses API json_object support
* [WIP] Fix Direct Parameterized Calls
* [WIP] Create Streaming Docs
* [WIP] Update Generation Docs
* [WIP] Improve Callbacks Docs
* [WIP] Improve Error Handling Docs
* [WIP] Update OpenAI Provider Docs
* [WIP] Improve Ollama Support & Docs
* [WIP] Improve OpenRouter Support & Docs
* [WIP] Finish Provider Docs
* [WIP] Fix Instrumentation
* [WIP] Update Embedding Docs
* [WIP] Prune Docs
* [WIP] Update Messages Docs
* [WIP] Fix Docs/Tests
* [WIP] Improve and Document Structured Output Support
* [WIP] Update Tools Docs
* [WIP] Update Actions Docs
* [WIP] Update Agents Docs
* [WIP] Update Framework Docs
* [WIP] Improve Rails Docs, Generators, and Schema Loading
* Fix tests & Cleanups
* Bump Version to 1.0.0 and Update CHANGELOG
* Fix CI
* Migrate to official OpenAI SDK
* Replace custom retries with provider SDK retry mechanisms
* Avoid bug in AbstractController::Collector by using .json instead of .schema.json for JSON Schema loading
* Improve Callbacks verbage
* Fix Message Comparisons
* Fix proc parameters resolving leaking into agent context
* Fix Instructions rendering bugs
* Fix callbacks vs proc resolving execution order
* Add missing Callback control methods
* Fix OpenAI Responses API Base64 Document Support
* Fix inconsistent Model schema generation format
* Update Data Extraction Example
* Improve Docs Site Indexing & Navigation
* Uplevel Provider context methods to class-level
* Fix issue with double error handling by removing top-level redundant handler
* Refactor Providers api_prompt_execute
* Add the ability to render prompt previews
* Improve Generation Callbacks & Instructions Template
* Improve Preview formatting1 parent d8fb8f0 commit d818575
1,026 files changed
Lines changed: 188258 additions & 96893 deletions
File tree
- .github/workflows
- bin
- docs
- .vitepress
- actions
- agents
- contributing
- docs
- action-prompt
- active-agent
- agents
- framework
- generation-providers
- examples
- framework
- parts/examples
- structured-output-json-parsing-test.rb-test-structured-output-sets-content-type-to-application
- structured-output-json-parsing-test.rb-test-without-structured-output-uses-text
- providers
- lib
- active_agent
- action_prompt
- concerns
- generation_provider
- open_router
- providers
- anthropic
- requests
- content
- sources
- messages
- content
- sources
- thinking_config
- tool_choice
- common
- messages
- responses
- concerns
- mock
- messages
- ollama
- chat
- requests
- messages
- embedding
- requests
- open_ai
- chat
- requests
- messages
- content
- files
- tools
- embedding
- requests
- responses
- requests
- inputs
- content
- text
- tools
- open_router
- requests
- messages
- content
- files
- plugins
- provider_preferences
- generators
- active_agent
- agent
- install
- templates
- erb
- templates
- test_unit
- templates
- test
- action_prompt
- agents
- scoped_agents
- docs
- actions
- agents
- examples
- framework
- providers
- dummy
- app
- agents
- concerns
- overview
- providers
- scoped_agents
- controllers
- concerns
- models
- concerns
- views
- agents
- actions_examples_test/data_extraction
- application
- browser
- data_extraction
- docs
- actions/structured_output_examples
- data_extraction
- document
- inline_schema
- examples/data_extraction_agent_examples
- consensus_validation/resume_extractor
- quick_start/resume_extractor
- framework_examples_test/quick_example_test/support
- integration
- anthropic/common_format
- instructions_test/auto_template
- messages_test/test
- response_format_test/test
- mock
- common_format/messages_test/test
- embedding/common_format_test/test
- ollama/embedding/common_format_test/test
- open_ai
- chat/common_format
- instructions_test/auto_template
- response_format_test/test
- embedding/common_format_test/test
- responses/common_format
- instructions_test/auto_template
- response_format_test/test
- open_router/common_format
- instructions_test/auto_template
- response_format_test/test
- research
- support
- translation
- view_test
- test_instructions_markdown
- test_instructions_text
- test
- calculator_agent
- docs/agents/instructions
- custom_template/agent
- default_template/agent
- template_binding_at/agent
- template_binding_controller/agent
- template_binding_locals/agent
- template_binding_params/agent
- open_router_integration_agent
- overview/agents/support
- providers/agents
- anthropic
- mock
- ollama
- open_ai
- open_router
- scoped_agents
- translation_agent_with_custom_instructions_template
- translation_agent_with_default_instructions_template
- scraping_agent
- streaming_agent
- translation_agent
- travel_agent
- view_test/agents
- test_instructions_markdown
- test_instructions_text
- test
- weather_agent
- config
- features
- fixtures/vcr_cassettes
- docs
- actions_examples
- actions
- messages
- structured_output
- tools
- agents_examples
- agents
- embeddings_examples
- error_handling_examples
- streaming_examples
- examples/data_extraction_agent
- framework_examples
- framework/providers_examples
- providers
- anthropic
- response_format
- ollama
- open_router
- openai
- integration
- anthropic
- common_format
- instructions_test
- messages_test
- response_format_test
- native_format_test
- ollama
- chat
- common_format
- instructions_test
- messages_test
- response_format_test
- native_format_test
- embedding
- common_format_test
- native_format_test
- open_ai
- chat
- common_format
- instructions_test
- messages_test
- response_format_test
- native_format_test
- embedding
- common_format_test
- native_format_test
- responses
- common_format
- instructions_test
- messages_test
- response_format_test
- native_format_test
- open_router
- common_format
- instructions_test
- messages_test
- response_format_test
- native_format_test
- generation_provider
- generators
- active_agent
- erb
- test_unit
- integration
- anthropic
- common_format
- mock
- common_format
- embedding
- ollama
- chat
- common_format
- embedding
- open_ai
- chat
- common_format
- embedding
- responses
- common_format
- open_router
- common_format
- providers
- common/messages
- concerns
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| 8 | + | |
4 | 9 | | |
5 | | - | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
8 | 216 | | |
9 | 217 | | |
10 | 218 | | |
| |||
13 | 221 | | |
14 | 222 | | |
15 | 223 | | |
16 | | - | |
17 | | - | |
| 224 | + | |
| 225 | + | |
0 commit comments