Class: ActiveAgent::Providers::OpenRouter::Requests::Plugin

Inherits:
Common::BaseModel show all
Defined in:
lib/active_agent/providers/open_router/requests/plugin.rb

Overview

Plugin configuration for OpenRouter requests

OpenRouter supports plugins that enhance model capabilities. Currently supports the file-parser plugin for processing PDF documents.

Examples:

File parser plugin with PDF text extraction

plugin = Plugin.new(
  id: 'file-parser',
  pdf: { engine: 'pdf-text' }
)

File parser plugin with OCR

plugin = Plugin.new(
  id: 'file-parser',
  pdf: { engine: 'mistral-ocr' }
)

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Common::BaseModel

#<=>, #==, attribute, #deep_compact, #deep_dup, delegate_attributes, drop_attributes, inherited, #initialize, #inspect, keys, #merge!, required_attributes, #serialize, #to_h, #to_hash

Constructor Details

This class inherits a constructor from ActiveAgent::Providers::Common::BaseModel

Instance Attribute Details

#idString

Returns plugin identifier (currently only ‘file-parser’ is supported).

Returns:

  • (String)

    plugin identifier (currently only ‘file-parser’ is supported)



29
# File 'lib/active_agent/providers/open_router/requests/plugin.rb', line 29

attribute :id, :string

#pdfPlugins::PdfConfig?

Returns PDF processing configuration.

Returns:



33
# File 'lib/active_agent/providers/open_router/requests/plugin.rb', line 33

attribute :pdf, Plugins::PdfConfigType.new