Class: ActiveAgent::Providers::RubyLLMProvider

Inherits:
BaseProvider
  • Object
show all
Defined in:
lib/active_agent/providers/ruby_llm_provider.rb

Overview

Provider for RubyLLM’s unified API, supporting 15+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, Ollama, etc.).

Uses RubyLLM’s provider-level API (provider.complete()) rather than the high-level Chat object to avoid conflicts with ActiveAgent’s own conversation management and tool execution loop.

See Also:

Class Method Summary collapse

Methods inherited from BaseProvider

#embed, #initialize, namespace, options_klass, #preview, #prompt, prompt_request_type, service_name, tag_name

Methods included from ToolChoiceClearing

#prepare_prompt_request_tools

Methods included from Previewable

#preview_prompt

Methods included from Instrumentation

#instrumentation_prompt_payload

Methods included from ExceptionHandler

#configure_exception_handler, #rescue_with_handler, #with_exception_handling

Constructor Details

This class inherits a constructor from ActiveAgent::Providers::BaseProvider

Class Method Details

.embed_request_typeRubyLLM::EmbeddingRequestType

Returns embedding request type.

Returns:



22
23
24
# File 'lib/active_agent/providers/ruby_llm_provider.rb', line 22

def self.embed_request_type
  RubyLLM::EmbeddingRequestType.new
end