Class: RubyBots::OpenAIStreamingTool
- Inherits:
-
OpenAIChatTool
- Object
- Tool
- OpenAITool
- OpenAIChatTool
- RubyBots::OpenAIStreamingTool
- Defined in:
- lib/ruby_bots/tools/openai_streaming_tool.rb
Constant Summary
Constants inherited from OpenAIChatTool
RubyBots::OpenAIChatTool::DEFAULT_DESCRIPTION
Constants inherited from OpenAITool
RubyBots::OpenAITool::DEFAULT_DESCRIPTION
Instance Attribute Summary
Attributes inherited from Tool
Instance Method Summary collapse
-
#initialize(name: 'OpenAI Streaming Tool', description: DEFAULT_DESCRIPTION, messages: nil) ⇒ OpenAIStreamingTool
constructor
A new instance of OpenAIStreamingTool.
- #response ⇒ Object
Methods inherited from OpenAIChatTool
Methods inherited from OpenAITool
#client, #default_params, #system_instructions
Methods inherited from Tool
validate_input, validate_output
Constructor Details
#initialize(name: 'OpenAI Streaming Tool', description: DEFAULT_DESCRIPTION, messages: nil) ⇒ OpenAIStreamingTool
Returns a new instance of OpenAIStreamingTool.
3 4 5 6 |
# File 'lib/ruby_bots/tools/openai_streaming_tool.rb', line 3 def initialize(name: 'OpenAI Streaming Tool', description: DEFAULT_DESCRIPTION, messages: nil) @messages = || [] super(name:, description:) end |
Instance Method Details
#response ⇒ Object
8 9 10 |
# File 'lib/ruby_bots/tools/openai_streaming_tool.rb', line 8 def response super('') end |