Class: LLMs::Adapters::AnthropicToolCallAdapter
- Inherits:
-
Object
- Object
- LLMs::Adapters::AnthropicToolCallAdapter
- Defined in:
- lib/llms/adapters/anthropic_tool_call_adapter.rb
Class Method Summary collapse
Class Method Details
.from_api_format(api_response_format_part, index) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/llms/adapters/anthropic_tool_call_adapter.rb', line 7 def self.from_api_format(api_response_format_part, index) LLMs::ConversationToolCall.new( index, api_response_format_part['id'], api_response_format_part['type'], api_response_format_part['name'], api_response_format_part['input'], ) end |