Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How can we enable the text reply with a function call? Usually the message returned is a tool call only when it calls a tool?


There's no special interface, but you can write an instruction in a system message in the first position. E.g., "Before each function call, explain to the user what you're about to do." It's not super reliable, but the model can do it. Few-shot prompting might help as well.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: