Class: RubyLLM::Evals::RunsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RubyLLM::Evals::RunsController
- Defined in:
- app/controllers/ruby_llm/evals/runs_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 |
# File 'app/controllers/ruby_llm/evals/runs_controller.rb', line 15 def create PerformRunJob.perform_later prompt_id: @prompt.id redirect_to runs_path(filter: { ruby_llm_evals_prompt_id: @prompt.id }), notice: "Prompt is being evaluated." end |
#destroy ⇒ Object
20 21 22 23 |
# File 'app/controllers/ruby_llm/evals/runs_controller.rb', line 20 def destroy @run.destroy! redirect_to prompt_runs_path(@run.prompt), notice: "Run was successfully destroyed.", status: :see_other end |
#index ⇒ Object
8 9 10 |
# File 'app/controllers/ruby_llm/evals/runs_controller.rb', line 8 def index @runs = Page.new Run.where(@filters), page: params[:page].to_i end |
#show ⇒ Object
12 13 |
# File 'app/controllers/ruby_llm/evals/runs_controller.rb', line 12 def show end |