Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

read_traces() dumps a super long text and floods the context. This API needs redesign.

オープン
#91 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
ai, observability

調査の方向性

read_traces() のエントリーポイントと、problem_id pod_failure_hotel_res-detection-1 の添付されたトレース例から始めます。その出力がエージェントコンテキストに渡される流れを追い、コンテキストを大量の情報で埋め尽くすことを避けつつ有用なトレース情報を保持する、再設計されたレスポンスを定義して検証します。

索引モデルが issue の本文から書いたものです。

説明

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            "
        },

主要言語
Python
スター
989
フォーク
176
平均マージ
7日 15時間
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/AIOpsLab のほかの issue

microsoft/AIOpsLab の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。