Class: ActiveAgent::Providers::OllamaProvider
- Inherits:
-
ActiveAgent::Providers::OpenAI::ChatProvider
- Object
- BaseProvider
- ActiveAgent::Providers::OpenAI::Base
- ActiveAgent::Providers::OpenAI::ChatProvider
- ActiveAgent::Providers::OllamaProvider
- Defined in:
- lib/active_agent/providers/ollama_provider.rb
Overview
Connects to local Ollama instances via OpenAI-compatible API.
Provides chat completion and embedding functionality through locally-hosted Ollama models. Handles connection errors specific to local deployments.
Class Method Summary collapse
- .embed_request_type ⇒ ActiveModel::Type::Value
- .options_klass ⇒ Class
- .prompt_request_type ⇒ ActiveModel::Type::Value
- .service_name ⇒ String
Methods included from ToolChoiceClearing
Methods inherited from ActiveAgent::Providers::OpenAI::Base
Methods inherited from BaseProvider
#embed, #initialize, namespace, #preview, #prompt, tag_name
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 ⇒ ActiveModel::Type::Value
33 34 35 |
# File 'lib/active_agent/providers/ollama_provider.rb', line 33 def self. namespace::Embedding::RequestType.new end |
.options_klass ⇒ Class
23 24 25 |
# File 'lib/active_agent/providers/ollama_provider.rb', line 23 def self. namespace::Options end |
.prompt_request_type ⇒ ActiveModel::Type::Value
28 29 30 |
# File 'lib/active_agent/providers/ollama_provider.rb', line 28 def self.prompt_request_type namespace::Chat::RequestType.new end |
.service_name ⇒ String
18 19 20 |
# File 'lib/active_agent/providers/ollama_provider.rb', line 18 def self.service_name "Ollama" end |