coze-dev / coze-dev/coze-studio

[BUG] LLM同时返回文本和tool_calls时,Agent会直接当作最终答案

Open
#328 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Agent不能处理llm同时返回文本和tool_calls的情况,会直接把文本当作最终答案
要求模型不输出文本后可以正常执行

**To Reproduce**

1. 配置 Kimi-k2 模型
2. 创建 agent,提供tool
3. 提问

**Expected behavior**

1. 执行tool
2. 返回答案

**Screenshots**
```
User: 当前时间是?
Agent: 我来为您查询当前时间

User: 不要输出文本,直接调用工具
(已调用工具)

```

**Version:**

0.3.5

**Environment:**

docker compose

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.