Class: LLMs::Adapters::GoogleGeminiToolCallAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/llms/adapters/google_gemini_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/google_gemini_tool_call_adapter.rb', line 7

def self.from_api_format(api_response_format_part, index)
  LLMs::ConversationToolCall.new(
    index,
    nil,
    nil,
    api_response_format_part['name'],
    api_response_format_part['args'],
  )
end