| 1116 | return out; |
| 1117 | } |
| 1118 | |
| 1119 | static char *agent_build_tools_prompt(ds4_engine *engine, bool edit_upto) { |
| 1120 | if (agent_tool_syntax_for_engine(engine) == AGENT_TOOL_SYNTAX_GLM) |
| 1121 | return agent_build_glm_tools_prompt(edit_upto); |
| 1122 | return agent_build_dsml_tools_prompt(edit_upto); |
| 1123 | } |
| 1124 | |
| 1125 | static const char agent_dsml_syntax_reminder[] = |
| 1126 | "DSML syntax reminder:\n" |
| 1127 | "<|DSML|tool_calls>\n" |
| 1128 | "<|DSML|invoke name=\"$TOOL_NAME\">\n" |
| 1129 | "<|DSML|parameter name=\"$PARAMETER_NAME\" string=\"true|false\">$PARAMETER_VALUE</|DSML|parameter>\n" |
| 1130 | "</|DSML|invoke>\n" |
no test coverage detected