Tool messages
# support
p
Can we make tool messages dynamic, based on the function response, instead of defining them on tool creation? When the function was successful I want the assistant to tell about the result, not just give the generic pre-made response https://cdn.discordapp.com/attachments/1288064955530088509/1288064955886735370/image.png?ex=66f3d378&is=66f281f8&hm=b44a68f072ba0c13fbfea8db70d6bf88565ad2d6e846f192eafeda3f5112c564&
v
You can continue this conversation by mentioning me in the message.
@pawel_magdanski Absolutely! Tool messages can be made dynamic by programmatically setting them based on the function's response. This way, the assistant can provide a tailored message that reflects the outcome of the function. If you have a specific function in mind, please provide more details or let me know how I can assist you further with this.
p
How can I do that? I only see an option to set them when I'm creating, updating tool, I don't see how I can replace the default message with a dynamic ones in my tool response https://cdn.discordapp.com/attachments/1288064955530088509/1288065922426339388/image.png?ex=66f3d45f&is=66f282df&hm=0991b5a6ab24db7c73de11d766a5c71258ff1a3310ca3eb08a09f264b9a1b8aa&
@Sahil can I get any help here?
s
Yeah, you just need to sent back the result and based on it assistant will automatically will reply
it will dynamic message
s
set the messages array to empty and after that assistant will use tool call response to generate a response.
p
Ok
3 Views