Class: LLM::OpenAI::Format::RespondFormat
- Inherits:
-
Object
- Object
- LLM::OpenAI::Format::RespondFormat
- Defined in:
- lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/respond_format.rb
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(message) ⇒ RespondFormat
constructor
A new instance of RespondFormat.
Constructor Details
#initialize(message) ⇒ RespondFormat
Returns a new instance of RespondFormat.
7 8 9 |
# File 'lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/respond_format.rb', line 7 def initialize() @message = end |
Instance Method Details
#format ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/respond_format.rb', line 11 def format catch(:abort) do if Hash === {role: [:role], content: format_content([:content])} else end end end |