Class: Agents::GptClient

Inherits:
Object
  • Object
show all
Defined in:
lib/gpt_clients/gpt_client.rb

Direct Known Subclasses

EchoGptClient, OpenAiGptClient

Instance Method Summary collapse

Constructor Details

#initializeGptClient

Returns a new instance of GptClient.



5
6
# File 'lib/gpt_clients/gpt_client.rb', line 5

def initialize()
end

Instance Method Details

#chat(prompt: "", **args) ⇒ GPTResponse

Chats via the GPT Client, returns a GPTResponse

Returns:

  • (GPTResponse)

    response



10
11
12
# File 'lib/gpt_clients/gpt_client.rb', line 10

def chat(prompt: "", **args)
  GptResponse.new("Error: No GPT Client Setup.")
end