工具调用能力太差,基本稳定复现

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api, backend

Research direction

Start by reproducing the weather-tool workflow described in the issue and inspect the generated messages payload, especially the empty assistant content and subsequent weather result. Trace where tool results are converted into messages; done means the request no longer returns the missing messages.content 400 error and the workflow completes normally.

Written by the indexing model from the issue text.

Description

调用一个天气查询,执行后将天气查询结果放在text中,然后模型报400,missing messages.content parameter,进而工作流异常结束
{
"model": "doubao-seed-1-8-251228",
"messages": [
{
"role": "system",
"content": "Answer user questions to the best of your knowledge.\n1. use the 'getCurrentTime' tool to query the city...s current time.\n2. use the 'getWeather' tool to query the city...s current weather.\n\n\nYou are an agent. Your internal name is "ark_agent". The description about you is "A helpful assistant for user questions."."
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "............"
}
]
},
{
"role": "assistant",
"content": []
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "{"status":"success","report":"The weather in ...... is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit)."}"
}
]
}
],
"tools": [
{
"type": "function",
"function": {
"name": "getWeather",
"description": "Get the weather for a given city",
"parameters": {
"properties": {
"city": {
"description": "The name of the city for which to retrieve the weather report",
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "getCurrentTime",
"description": "Get the current time for a given city",
"parameters": {
"properties": {
"city": {
"description": "Name of the city to get the time for",
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
}
]
}

Dominant language
Java
Stars
110
Forks
7
Avg merge
8m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from volcengine/veadk-java

All issues in volcengine/veadk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.