active_harness 0.2.5 → 0.2.6

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: 01f74d69e91e8afbc6073f9095152f43f9e942db987357bcb912d6662eaf6423
4
- data.tar.gz: e984545ee51b3fd4f9b2d98f09c767e35a81a137324b6c867366220207e2bce5
3
+ metadata.gz: c32abcde2f732633681db8c314c0066d668a6e90818d0bb10324f7c4fcb26f20
4
+ data.tar.gz: 32081332c6997ef6bc1296008b1841be30c333afa7ffd8d1701af1a7f182d718
5
5
  SHA512:
6
- metadata.gz: 4b505afe51d47e4567df0fb0114c12c30ff838193cc958ae7ca10f94d466949295e86b296ea3d7681a6d616f3c358f3f3f738bd9e3b5707104130bb48933d674
7
- data.tar.gz: 8f9d550df43a425e424b0144bcb38bd2be89da9b56b554926561155dc2f973e084dd0408c590c1a98543c0d6ea9e79b13347c3cc746942adc651868df311e2dc
6
+ metadata.gz: 469e75529882ee17fb2610aad11823fab222cd3c060cb6a583990e1b22c4d9b8d1af5173b4158ef8ded2facb11b0ad6cb3fd9101be213e7327ca464106b720b6
7
+ data.tar.gz: 291624ff7f7765ae5af466d8417cee75e66596b604afefc01263771c091c738f5739dd8ead25712075e4e1a32f28252c475b62ae0942e02ce62d2eb483f42eff
@@ -2,7 +2,7 @@ module ActiveHarness
2
2
  class Railtie < Rails::Railtie
3
3
  APP_AI_DIRS = %w[agents prompts tribunals pipelines memory].freeze
4
4
 
5
- initializer "active_harness.autoload_paths" do |app|
5
+ initializer "active_harness.autoload_paths", before: :set_autoload_paths do |app|
6
6
  APP_AI_DIRS.each do |dir|
7
7
  path = Rails.root.join("app", "ai", dir)
8
8
  app.config.autoload_paths << path.to_s if path.exist?
@@ -1,6 +1,8 @@
1
1
  class AiSupportController < ApplicationController
2
2
  include ActionController::Live
3
3
 
4
+ skip_before_action :verify_authenticity_token
5
+
4
6
  # ---------------------------------------------------------------------------
5
7
  # POST /ai/agent
6
8
  # body: { input: "What is your return policy?" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_harness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - the-teacher