Method: Boxcars::Cohere#initialize
- Defined in:
- lib/boxcars/engine/cohere.rb
#initialize(name: DEFAULT_NAME, description: DEFAULT_DESCRIPTION, prompts: [], **kwargs) ⇒ Cohere
A engine is the driver for a single tool to run.
30 31 32 33 34 35 36 |
# File 'lib/boxcars/engine/cohere.rb', line 30 def initialize(name: DEFAULT_NAME, description: DEFAULT_DESCRIPTION, prompts: [], **kwargs) user_id = kwargs.delete(:user_id) @llm_params = DEFAULT_PARAMS.merge(kwargs) @prompts = prompts @batch_size = 20 super(description:, name:, user_id:) end |