read_traces() dumps a super long text and floods the context. This API needs redesign.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- ai, observability
Línea de trabajo
Comienza con el punto de entrada read_traces() y el ejemplo de trace adjunto para problem_id pod_failure_hotel_res-detection-1. Sigue cómo se pasa su salida al contexto del agente y, a continuación, define y valida una respuesta rediseñada que evite inundar el contexto y conserve la información útil del trace.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
5830ef09-c739-4bd4-a4cc-65023b65fd84_1758781933.3274791.json
ReAct(with Openrouter/GPT-4-mini)
Problem_id: pod_failure_hotel_res-detection-1 (this is just one example; the same issue happens in other problems too).
As shown in the trace below, the long trace makes the agent completely forget the initial instructions.
Agent action
get_traces("test-hotel-reservation", 10)
read_traces("/proj/aiopslabeval-PG0/AIOpsLab/trace_output/traces_1758815340.csv")
# Dumps a super long text
{
"role": "assistant",
"content": "It seems you've provided a large dataset related to traces of various operations, likely from a distributed system or microservices architecture. Each entry includes identifiers for trace and spans, service names, operation names, timestamps, durations, error flags, and response codes. \n\nIf you need help analyzing this data or extracting specific insights, please specify what you would like to know or what kind of analysis you're interested in. Here are a few examples of what I can help you with:\n\n1. **Error Analysis**: Identify any operations that resulted in errors.\n2. **Performance Metrics**: Calculate average durations for specific operations or services.\n3. **Service Dependency Mapping**: Analyze the relationships between services based on the trace data.\n4. **Response Codes**: Summarize the response codes for different operations.\n\nLet me know how you'd like to proceed!"
},
{
"role": "env",
"content": "Error parsing response: \nFormat validation failure. Only have one pair of three ticks in your block and check the ticks. \nCorrect example 1:\nI should run:\n```\nls\n```\n\nCorrect example 2:\nCheck k8s info \n```\nkubectl get services --all-namespaces\n```\n "
},
{
"role": "assistant",
"content": "Thought: The previous output indicates that there was an issue with the formatting of the code block, specifically that it needs to have three backticks at the beginning and end to properly format the content as a code block.\n\nAction: I will ensure to format any future code snippets correctly with three backticks to avoid parsing issues. Here\u2019s the corrected format:\n\n```\nYour code or command here\n```"
},
{
"role": "env",
"content": "Error parsing response: No API call found!"
},
{
"role": "assistant",
"content": "Thought: The error indicates that there was an expectation for an API call in the response, but none was found. This suggests that the response may not be in the correct format or that the necessary information was missing.\n\nAction: I will review the previous context or data to ensure that an appropriate API call is included in the next response. If needed, I will provide an example of a valid API call to meet the expected format."
},
{
"role": "env",
"content": "Error parsing response: \nFormat validation failure. Only have one pair of three ticks in your block and check the ticks. \nCorrect example 1:\nI should run:\n```\nls\n```\n\nCorrect example 2:\nCheck k8s info \n```\nkubectl get services --all-namespaces\n```\n "
},
- Lenguaje dominante
- Python
- Estrellas
- 989
- Forks
- 176
- Merge medio
- 7 d 15 h
- PR fusionados (30 d)
- 3
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 microsoft/AIOpsLab
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Regarding to the case #162 Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de microsoft/AIOpsLab
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stephrobert/dsoxlab#238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
sublimehq/package_control#1780 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nwg-piotr/nwg-displays#145 ·