Class: ActiveAgent::Providers::OpenAI::ChatProvider
- Inherits:
-
Base
- Object
- BaseProvider
- Base
- ActiveAgent::Providers::OpenAI::ChatProvider
- Includes:
- ToolChoiceClearing
- Defined in:
- lib/active_agent/providers/open_ai/chat_provider.rb
Overview
Provider implementation for OpenAI’s Chat Completions API
Handles chat-based interactions including streaming responses, function/tool calling, and message management.
Direct Known Subclasses
ActiveAgent::Providers::OllamaProvider, ActiveAgent::Providers::OpenRouterProvider
Class Method Summary collapse
-
.options_klass ⇒ Class
The options class for this provider.
-
.prompt_request_type ⇒ Chat::RequestType
Request type instance for chat completions.
Methods included from ToolChoiceClearing
Methods inherited from Base
Methods inherited from BaseProvider
#embed, embed_request_type, #initialize, namespace, #preview, #prompt, service_name, 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
.options_klass ⇒ Class
Returns the options class for this provider.
18 19 20 |
# File 'lib/active_agent/providers/open_ai/chat_provider.rb', line 18 def self. Options end |
.prompt_request_type ⇒ Chat::RequestType
Returns request type instance for chat completions.
23 24 25 |
# File 'lib/active_agent/providers/open_ai/chat_provider.rb', line 23 def self.prompt_request_type Chat::RequestType.new end |