| 3575 | } |
| 3576 | } else if (sr->parser->state == AGENT_DSML_ERROR) { |
| 3577 | if (sr->dsml_ignored) { |
| 3578 | agent_stream_finish_ignored_dsml( |
| 3579 | sr, "malformed tool call inside <think></think>"); |
| 3580 | } else { |
| 3581 | char status[220]; |
| 3582 | snprintf(status, sizeof(status), "[invalid tool call: %s]\n", |
| 3583 | sr->parser->error[0] ? sr->parser->error : "parse error"); |
| 3584 | agent_trace(sr->renderer->worker, "dsml error %s", |
| 3585 | sr->parser->error[0] ? sr->parser->error : "parse error"); |
no test coverage detected