Module: LLM::Anthropic::Format
- Included in:
- LLM::Anthropic
- Defined in:
- lib/llm/providers/anthropic/format.rb
Instance Method Summary collapse
Instance Method Details
#format(messages) ⇒ Array<Hash>
9 10 11 |
# File 'lib/llm/providers/anthropic/format.rb', line 9 def format() .map { {role: _1.role, content: format_content(_1.content)} } end |