Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java
Ambito
api, backend

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di volcengine/veadk-java

Tutte le issue di volcengine/veadk-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.