Class: ApplicationAgent
- Inherits:
-
Ask::Agent::Definition
- Object
- Ask::Agent::Definition
- ApplicationAgent
- Defined in:
- lib/ask/rails/generators/install/templates/application_agent.rb
Overview
Base class for your application's AI agents.
Subclass this to define agents:
class Agents::SupportBot < ApplicationAgent
model "gpt-4o"
system_prompt "You help users with support questions."
tool :search_knowledge_base
end
Then run:
agent = Ask::Agent.new("support_bot")
agent.run("How do I reset my password?")