Problems using Tools in Agents.

Aperta
#1,182 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
json, kotlin, ollama

Direzione di ricerca

Start with TodoWriteTool.kt and TaskTool.kt, where the logged argument serializers reject the model-generated fields. Compare their declared tool schemas with the TodoWrite, Task, and assistant<|channel|>commentary calls in the issue, then reproduce the agent requests with Ollama. Done means valid model arguments deserialize into the expected argument classes and execute without missing-field or unknown-tool errors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
What happened?

In the current version of IntelliJ:
IntelliJ IDEA 2025.3.2
Build #IU-253.30387.90, built on January 22, 2026

Some problems exists while using the ProxyAI plugin.
It appears that any of the tools are working properly as the logs that I pasted shows.
I currently use ProxyAI with a local installation of Ollama with gpt-oss:20b model.

Relevant log output or stack trace
TodoWrite Tool:

2026-02-13 12:37:58,677 [  87442]   INFO - #c.i.c.ComponentStoreImpl - Saving appFileTypeManager took 14 ms
2026-02-13 12:38:11,499 [ 100264]   INFO - STDERR - [DefaultDispatcher-worker-61] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: TodoWrite, args: {"action":"add","items":["Document goals, conventions, risky areas, review rules"]})
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - [DefaultDispatcher-worker-61] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'TodoWrite' failed to parse arguments: {"action":"add","items":["Document goals, conventions, risky areas, review rules"]}
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - kotlinx.serialization.MissingFieldException: Fields [title, todos] are required for type with serial name 'ee.carlrobert.codegpt.agent.tools.TodoWriteTool.Args', but they were missing
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args.<init>(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args$$serializer.deserialize(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args$$serializer.deserialize(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.tools.SerialToToolDescriptionKt$asToolDescriptorSerializer$1.deserialize(SerialToToolDescription.kt:208)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.tools.Tool.decodeArgs(Tool.kt:105)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.GenericAgentEnvironment.processToolCall(GenericAgentEnvironment.kt:84)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.GenericAgentEnvironment.executeTool(GenericAgentEnvironment.kt:27)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.ContextualAgentEnvironment.executeTool(ContextualAgentEnvironment.kt:81)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.AIAgentEnvironmentKt$executeTools$results$1$1$1.invokeSuspend(AIAgentEnvironment.kt:51)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1188)
2026-02-13 12:38:11,503 [ 100268]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
2026-02-13 12:38:11,503 [ 100268]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
2026-02-13 12:38:13,111 [ 101876]   INFO - #c.i.o.p.DumbServiceImpl - enter dumb mode [02_fontes]
2026-02-13 12:38:13,111 [ 101876]   INFO - #c.i.o.p.DumbServiceImpl - enter dumb mode [02_fontes]
2026-02-13 12:38:13,141 [ 101906]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Running task: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@3603a305 (reason: Push on VFS changes)
2026-02-13 12:38:13,145 [ 101910]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Running task: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@20b57732 (reason: Push on VFS changes)
2026-02-13 12:38:13,163 [ 101928]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@3603a305 (reason: Push on VFS changes)
2026-02-13 12:38:13,171 [ 101936]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@20b57732 (reason: Push on VFS changes)
2026-02-13 12:38:13,263 [ 102028]   INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [02_fontes]
2026-02-13 12:38:13,311 [ 102076]   INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [02_fontes]
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] WARN ee.carlrobert.codegpt.agent.ProxyAIAgent - Ignoring undefined tool call: assistant<|channel|>commentary
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: assistant<|channel|>commentary, args: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]})
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'assistant<|channel|>commentary' not found in the tool registry.
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - [DefaultDispatcher-worker-21] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: TodoWrite, args: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]})
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - [DefaultDispatcher-worker-21] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'TodoWrite' failed to parse arguments: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]}
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - kotlinx.serialization.json.internal.JsonDecodingException: Expected JsonObject, but had JsonLiteral as the serialized body of ee.carlrobert.codegpt.agent.tools.TodoWriteTool.TodoItem at element: $.0
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - JSON input: "Describe overall goals of ProxyAI"


Task Tool:

2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - [DefaultDispatcher-worker-31] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: e007ed90-1076-4f49-bf8b-433a7dd2dd94) Executing tool (name: Task, args: {"subagent_type":"Explore","query":"TODO"})
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - [DefaultDispatcher-worker-31] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: e007ed90-1076-4f49-bf8b-433a7dd2dd94) Tool with name 'Task' failed to parse arguments: {"subagent_type":"Explore","query":"TODO"}
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - kotlinx.serialization.MissingFieldException: Fields [description, prompt] are required for type with serial name 'ee.carlrobert.codegpt.agent.tools.TaskTool.Args', but they were missing
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args.<init>(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args$$serializer.deserialize(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args$$serializer.deserialize(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ai.koog.agents.core.tools.SerialToToolDescriptionKt$asToolDescriptorSerializer$1.deserialize(SerialToToolDescription.kt:208)
Steps to reproduce

In the Agent tab ask question to create a TodoList of actions, or execute any Tasks.

CodeGPT version

3.7.3-241.1

Operating System

Windows

Lingua principale
Kotlin
Stelle
1.9k
Fork
401
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 carlrobertoh/ProxyAI

Tutte le issue di carlrobertoh/ProxyAI

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.