Skip to content

Commit 44f7bd9

Browse files
committed
Updated xray tool implementation
1 parent 6c62b86 commit 44f7bd9

File tree

4 files changed

+269
-194
lines changed

4 files changed

+269
-194
lines changed

lib/idp_common_pkg/idp_common/agents/error_analyzer/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
from ..common.strands_bedrock_model import create_strands_bedrock_model
1717
from .tools import (
18+
analyze_document_trace,
19+
analyze_system_performance,
1820
analyze_workflow_execution,
1921
fetch_document_record,
2022
fetch_recent_records,
2123
lambda_lookup,
2224
search_cloudwatch_logs,
23-
xray_performance_analysis,
24-
xray_trace,
2525
)
2626

2727
logger = logging.getLogger(__name__)
@@ -54,8 +54,8 @@ def create_error_analyzer_agent(
5454
fetch_recent_records,
5555
lambda_lookup,
5656
analyze_workflow_execution,
57-
xray_trace,
58-
xray_performance_analysis,
57+
analyze_document_trace,
58+
analyze_system_performance,
5959
]
6060
bedrock_model = create_strands_bedrock_model(
6161
model_id=config.agents.error_analyzer.model_id, boto_session=session

lib/idp_common_pkg/idp_common/agents/error_analyzer/tools/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from .lambda_tool import lambda_lookup
2222
from .stepfunction_tool import analyze_workflow_execution
2323
from .xray_tool import (
24-
xray_performance_analysis,
25-
xray_trace,
24+
analyze_document_trace,
25+
analyze_system_performance,
2626
)
2727

2828
__all__ = [
@@ -31,6 +31,6 @@
3131
"fetch_document_record",
3232
"fetch_recent_records",
3333
"analyze_workflow_execution",
34-
"xray_trace",
35-
"xray_performance_analysis",
34+
"analyze_document_trace",
35+
"analyze_system_performance",
3636
]

0 commit comments

Comments
 (0)