Class: ActiveAgent::Providers::RubyLLMProvider
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- ActiveAgent::Providers::RubyLLMProvider
- 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.
Class Method Summary collapse
-
.embed_request_type ⇒ RubyLLM::EmbeddingRequestType
Embedding request type.
Methods inherited from BaseProvider
#embed, #initialize, namespace, options_klass, #preview, #prompt, prompt_request_type, service_name, tag_name
Methods included from ToolChoiceClearing
Methods included from Previewable
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_type ⇒ RubyLLM::EmbeddingRequestType
Returns embedding request type.
22 23 24 |
# File 'lib/active_agent/providers/ruby_llm_provider.rb', line 22 def self. RubyLLM::EmbeddingRequestType.new end |