Module: LLM::Google::ResponseAdapter::File

Defined in:
lib/llm/providers/google/response_adapter/file.rb

Instance Method Summary collapse

Instance Method Details

#display_nameObject



6
# File 'lib/llm/providers/google/response_adapter/file.rb', line 6

def display_name = respond_to?(:file) ? file.displayName : body.displayName

#file?Boolean

Returns:

  • (Boolean)


9
# File 'lib/llm/providers/google/response_adapter/file.rb', line 9

def file? = true

#mime_typeObject



7
# File 'lib/llm/providers/google/response_adapter/file.rb', line 7

def mime_type = respond_to?(:file) ? file.mimeType : body.mimeType

#nameObject



5
# File 'lib/llm/providers/google/response_adapter/file.rb', line 5

def name = respond_to?(:file) ? file.name : body.name

#uriObject



8
# File 'lib/llm/providers/google/response_adapter/file.rb', line 8

def uri = respond_to?(:file) ? file.uri : body.uri