#Tools being used inconsistently

1 messages · Page 1 of 1 (latest)

zenith hedge
#

Hi,

I am creating a bot that will respond to tickets via the GPT API to users so it can gather relevant data before passing the ticket to a human.

The goal for the bot is that when it thinks it has all the data necessary, it sends a message saying that it will pass the ticket to a human, as well as executing a function that will effectively do that.

My problem is that it seems to want to do one or the other, but not really both. Either it calls the function and does not send a message, or it sends a message and does not call the function, or worse, sends a message, and at the end of the message adds some weird code-looking stuff like [tools.send_to_human()].

Is there a way to consistently get it to do both?
Thank you.

grave socket
#

it won't send a text message and a tool call in 1 response. Claude does this though

zenith hedge
#

Yyyyeah that's what I've come to realize with more search x_x
Thank you though

vapid musk
#

I think that was true of the old "functions" system, but not with the tools system.

Both of those tool requests (AND the message) are part of the same response from the model.