[Bug] Runtime-only tag list in core_agent.py prompt names OUTPUT_REF/CODE_EXEC_RESULT but omits completed_action_history and completed_action
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- ai, backend-api-design
Línea de trabajo
Lee la lista de etiquetas en tiempo de ejecución en sdk/nexent/core/agents/cores/smolagents/core_agent.py y compárala con las etiquetas que se muestran en sdk/nexent/core/agents/context/rendering.py y se rechazan en sdk/nexent/core/agents/cores/smolagents/output_protocol.py. Actualiza la lista del prompt para que coincida con los registros y las vistas previas en tiempo de ejecución; después, comprueba que incluya todas las etiquetas emitidas y omita CODE_EXEC_RESULT.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Nexent Version
68da442425
Problem Description
The system prompt text in sdk/nexent/core/agents/cores/smolagents/core_agent.py:682 tells the model which tags only the runtime emits:
"Only the runtime emits CODE_EXEC_RESULT, SUMMARIED_RESULT and OUTPUT_REF tags; "
This list no longer matches what the runtime does:
- It names
CODE_EXEC_RESULT, which the runtime does not emit anymore. - It leaves out the tags the runtime does emit now.
sdk/nexent/core/agents/context/rendering.py:111,114,155,167-168renderscompleted_action_history,completed_action,<OUTPUT preview="head_tail">previews andOUTPUT_REF. - The output protocol rejects model output that contains these runtime record tags (
sdk/nexent/core/agents/cores/smolagents/output_protocol.py:93-96,286-288).
Why it matters: the model sees completed_action_history blocks in its own assistant history, and the prompt never tells it not to write these tags. It can copy that format into a reply. When it does, classify_model_output raises UNSUPPORTED_OR_TAG_ONLY_OUTPUT. That forces a protocol-repair retry, or uses up all the retries and the step fails. The format notice inside the record lowers the chance of this, but the prompt still names the wrong tags.
Expected: the list of runtime-only tags in the prompt should match the tags that rendering.py emits and output_protocol.py rejects.
Suggested text:
"Only the runtime emits completed_action_history, completed_action, SUMMARIED_RESULT, OUTPUT_REF and <OUTPUT preview=\"head_tail\"> tags; "
Reproduction Steps
- Open
sdk/nexent/core/agents/cores/smolagents/core_agent.py:682and read the list of runtime-only tags. - Compare it with the tags rendered in
sdk/nexent/core/agents/context/rendering.py:111,114,155,167-168. - Compare it with the tags rejected in
sdk/nexent/core/agents/cores/smolagents/output_protocol.py:93-96,286-288. - Run an agent long enough that
completed_action_historyshows up in the history. If the model copies that block into its reply,classify_model_outputraisesUNSUPPORTED_OR_TAG_ONLY_OUTPUTand a protocol-repair retry starts.
- Lenguaje dominante
- Python
- Estrellas
- 6.2k
- Forks
- 785
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 123
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ModelEngine-Group/nexent
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ModelEngine-Group/nexent#4428 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Port 3000 forwards any path containing `/attachments/` to MinIO, so northbound uploads through 3000 failPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ModelEngine-Group/nexent#4423 ·
Los mantenedores suelen responder en 1 día
-
OpenAIModel: default observer is the class, not an instance — TypeError on any call that omits itPosiblemente ocupada @XixianWasTaken la tomó hace 67 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ModelEngine-Group/nexent#3921 ·
Los mantenedores suelen responder en 1 día
-
`convert_string_to_list` silently drops negative integers and non-digit entriesPosiblemente ocupada @original4422 la tomó hace 86 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ModelEngine-Group/nexent#3818 ·
Los mantenedores suelen responder en 1 día
-
Improvement: `sort_models_by_id` only sorts by the **first** character of the idPosiblemente ocupada @ump45nose la tomó hace 19 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
ModelEngine-Group/nexent#3817 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ModelEngine-Group/nexent
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
volcengine/OpenViking#8432 ·
Los mantenedores suelen responder en 1 día
-
Failed chat turns are passed to the follow-up rewrite as completed historyPosiblemente ocupada @hskhyl la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA/auto-ontology#683 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation task
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Implement parse_url and accept http URLs for Pear backendPosiblemente ocupada @muskan-creates352 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fedora-infra/anitya#2231 ·
Los mantenedores suelen responder en 2 días
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
docling-project/docling-core#1067 ·
Los mantenedores suelen responder en 3 días