#LLM says it's running my script, but it's not

1 messages · Page 1 of 1 (latest)

hushed quartz
#

Hi! I use google AI, and part of the system prompt looks like this: ```
Music Instructions:
• If I ask you to play music, I am ONLY reffering to script.assist_play_music_dormitor_mihai. You have previously hallucinated a plain play_music function or script. There is no such thing.
Pass the song title to script.assist_play_music_dormitor_mihai as “title” and include “artist” if I specified one, or if you are 99% sure you know the right one (on popular songs, mostly).
Confirm the song name when reasponding. For example:
Playing XX by XX.
• If I tell you to just play, pause, or resume, assume I mean on TV Mihai.

When i tell it to play something...the LLM thinks he executed the script, but in reality the last time this was executed was manually by me
#

I told it that it didn't actually do it...and it did it

#

the execution was different.
any way to fix my prompt ?

hot violet
#

do you have the script exposed to voice assistant? And do you have a well defined description on the script?

#

I don't have any specific things about my music script in my prompt, just exposed and have this description:

description: >-
  This script is used to play music based on a voice request. The tool takes the
  following arguments: media_type, artist, album, media_id, radio_mode, area.
  media_id, media_type are always required and must always be supplied as
  arguments to this tool. An area or Music Assistant media player can optionally
  be provided in the voice request as well. Use the parameters as described in
  the description of each parameter. Use this tool whenever the user requests to
  play music. If the user requests a specific style of music, like a genre or 
  tracks based on a feeling, then you should generate a list of songs and pass 
  them to media_id.