Class: ActiveAgent::Providers::OpenAI::ResponsesProvider

Inherits:
Base show all
Includes:
ToolChoiceClearing
Defined in:
lib/active_agent/providers/open_ai/responses_provider.rb

Overview

Provider implementation for OpenAI’s Responses API

Uses the responses endpoint for improved streaming and structured function calling compared to the chat completions endpoint.

Class Method Summary collapse

Methods included from ToolChoiceClearing

#prepare_prompt_request_tools

Methods inherited from Base

#client, service_name

Methods inherited from BaseProvider

#embed, embed_request_type, #initialize, namespace, #preview, #prompt, service_name, tag_name

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

.options_klassClass

Returns:

  • (Class)


19
20
21
# File 'lib/active_agent/providers/open_ai/responses_provider.rb', line 19

def self.options_klass
  Options
end

.prompt_request_typeResponses::RequestType



24
25
26
# File 'lib/active_agent/providers/open_ai/responses_provider.rb', line 24

def self.prompt_request_type
  Responses::RequestType.new
end