工具调用能力太差,基本稳定复现
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
调用一个天气查询,执行后将天气查询结果放在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"
}
}
}
]
}
- Lingua principale
- Java
- Stelle
- 110
- Fork
- 7
- Merge medio
- 5m
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di volcengine/veadk-java
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
volcengine/veadk-java#4 ·
-
ArkLlm中不支持图片上传吗Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
volcengine/veadk-java#3 · 1 commento ·
Tutte le issue di volcengine/veadk-java
Issue simili
-
Update license yearAperta0 - Backlog 1 - Ready documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
cbor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
FasterXML/jackson-dataformats-binary#844 ·
I maintainer di solito rispondono entro 1 giorno
-
Issue: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenAPITools/openapi-generator#25107 ·
I maintainer di solito rispondono entro 1 giorno
-
improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/iceberg#18351 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
repowise-dev/repowise#2945 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno