Class: RubyBots::PipelineBot

Inherits:
Bot
  • Object
show all
Defined in:
lib/ruby_bots/bots/pipeline_bot.rb

Overview

Class to provide a pipeline of tools to solve a problem. This bot will call the tools provided in order until each tool has responded. The bot will respond with the last tool’s response.

Constant Summary collapse

DEFAULT_DESCRIPTION =
<<~DESCRIPTION.strip_heredoc
  This bot will utilize all of its tools in a syncronouse pipeline based on the order the tools are provided."
DESCRIPTION

Instance Attribute Summary

Attributes inherited from Bot

#tools

Attributes inherited from Tool

#description, #errors, #name

Instance Method Summary collapse

Methods inherited from Tool

#response, validate_input, validate_output

Constructor Details

#initialize(tools:, name: 'Pipeline bot', description: DEFAULT_DESCRIPTION) ⇒ PipelineBot

Returns a new instance of PipelineBot.



10
11
12
# File 'lib/ruby_bots/bots/pipeline_bot.rb', line 10

def initialize(tools:, name: 'Pipeline bot', description: DEFAULT_DESCRIPTION)
  super(tools:, name:, description:)
end