Class: Roast::Workflow::PromptStep

Inherits:
BaseStep
  • Object
show all
Defined in:
lib/roast/workflow/prompt_step.rb

Instance Attribute Summary

Attributes inherited from BaseStep

#auto_loop, #context_path, #json, #model, #name, #params, #print_response, #resource, #workflow

Instance Method Summary collapse

Constructor Details

#initialize(workflow, **kwargs) ⇒ PromptStep

Returns a new instance of PromptStep.



6
7
8
# File 'lib/roast/workflow/prompt_step.rb', line 6

def initialize(workflow, **kwargs)
  super(workflow, **kwargs)
end

Instance Method Details

#callObject



10
11
12
13
# File 'lib/roast/workflow/prompt_step.rb', line 10

def call
  prompt(name)
  chat_completion(auto_loop: false, print_response: true)
end