| 252 | }; |
| 253 | |
| 254 | static common_chat_msg simple_assist_msg(const std::string & content, const std::string & reasoning_content = "", const std::string & tool_name = "", const std::string & arguments = "", const std::string & id = "") { |
| 255 | common_chat_msg msg; |
| 256 | msg.role = "assistant"; |
| 257 | msg.content = content; |
| 258 | msg.reasoning_content = reasoning_content; |
| 259 | if (!tool_name.empty()) { |
| 260 | msg.tool_calls.push_back({ tool_name, arguments, id }); |
| 261 | } |
| 262 | return msg; |
| 263 | } |
| 264 | |
| 265 | static delta_data init_delta(const struct common_chat_templates * tmpls, const std::vector<std::string> & end_tokens, |
| 266 | const common_chat_msg & user_message, |
no test coverage detected