MCPcopy Index your code
hub / github.com/appdevforall/CodeOnTheGo / simple_assist_msg

Function simple_assist_msg

subprojects/llama.cpp/tests/test-chat.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252};
253
254static 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
265static delta_data init_delta(const struct common_chat_templates * tmpls, const std::vector<std::string> & end_tokens,
266 const common_chat_msg & user_message,

Callers 3

test-chat.cppFile · 0.85

Calls 2

emptyMethod · 0.65
push_backMethod · 0.45

Tested by

no test coverage detected