Class: Relay::Tools::AddSong

Inherits:
LLM::Tool
  • Object
show all
Includes:
Relay::Tool
Defined in:
app/tools/add_song.rb

Instance Method Summary collapse

Methods included from Relay::Tool

#root

Instance Method Details

#call(name:, title:, url:) ⇒ Object



13
14
15
16
17
18
19
# File 'app/tools/add_song.rb', line 13

def call(name:, title:, url:)
  entry = jukebox.add(name:, title:, track: url)
  {
    message: "Added jukebox entry",
    entry:
  }
end