read_traces() dumps a super long text and floods the context. This API needs redesign.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- ai, observability
Hướng nghiên cứu
Bắt đầu với entry point read_traces() và ví dụ trace đính kèm cho problem_id pod_failure_hotel_res-detection-1. Theo dõi cách output của nó được truyền vào context của agent, sau đó định nghĩa và xác thực một response được thiết kế lại nhằm tránh làm ngập context trong khi vẫn bảo toàn thông tin trace hữu ích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 "
},
- Ngôn ngữ chính
- Python
- Star
- 989
- Fork
- 176
- Merge trung bình
- 7 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/AIOpsLab
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Regarding to the case #162 Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của microsoft/AIOpsLab
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·