Class: Agents::PromptlessGptAgent
- Defined in:
- lib/agents/gpt_agents/promptless_gpt_agent.rb
Overview
An agent that does not add a prompt to the request, but simply passes it through. Use if your test _is _the prompt, for example.
Instance Attribute Summary
Attributes inherited from GptAgent
#description, #gpt_client, #system_prompt
Attributes inherited from Agent
Instance Method Summary collapse
Methods inherited from GptAgent
Methods inherited from Agent
#initialize, #register, #unregister
Constructor Details
This class inherits a constructor from Agents::GptAgent
Instance Method Details
#handle(request:) ⇒ Object
5 6 7 |
# File 'lib/agents/gpt_agents/promptless_gpt_agent.rb', line 5 def handle(request:) Response.new(response_text: gpt_client.chat(prompt: request.request_text)) end |