Skip to content

Commit 3c70713

Browse files
committed
Merge branch 'feature/error-analyzer-9' into 'develop'
Enhanced Error Analyzer Tools See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!404
2 parents bf1ba2b + b426268 commit 3c70713

File tree

11 files changed

+1323
-1554
lines changed

11 files changed

+1323
-1554
lines changed

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

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

1616
from ..common.strands_bedrock_model import create_strands_bedrock_model
1717
from .tools import (
18-
cloudwatch_document_logs,
19-
cloudwatch_logs,
20-
dynamodb_query,
21-
dynamodb_record,
22-
dynamodb_status,
23-
lambda_lookup,
24-
stepfunction_details,
25-
xray_performance_analysis,
26-
xray_trace,
18+
analyze_document_trace,
19+
analyze_system_performance,
20+
analyze_workflow_execution,
21+
fetch_document_record,
22+
fetch_recent_records,
23+
retrieve_document_context,
24+
search_cloudwatch_logs,
2725
)
2826

2927
logger = logging.getLogger(__name__)
@@ -51,15 +49,13 @@ def create_error_analyzer_agent(
5149

5250
# Create agent with specific tools - let LLM choose directly
5351
tools = [
54-
cloudwatch_document_logs,
55-
cloudwatch_logs,
56-
dynamodb_record,
57-
dynamodb_status,
58-
dynamodb_query,
59-
lambda_lookup,
60-
stepfunction_details,
61-
xray_trace,
62-
xray_performance_analysis,
52+
search_cloudwatch_logs,
53+
fetch_document_record,
54+
fetch_recent_records,
55+
retrieve_document_context,
56+
analyze_workflow_execution,
57+
analyze_document_trace,
58+
analyze_system_performance,
6359
]
6460
bedrock_model = create_strands_bedrock_model(
6561
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: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,24 @@
1313
- Lambda function context extraction
1414
"""
1515

16-
from .cloudwatch_tool import cloudwatch_document_logs, cloudwatch_logs
16+
from .cloudwatch_tool import search_cloudwatch_logs
1717
from .dynamodb_tool import (
18-
dynamodb_query,
19-
dynamodb_record,
20-
dynamodb_status,
18+
fetch_document_record,
19+
fetch_recent_records,
2120
)
22-
from .lambda_tool import lambda_lookup
23-
from .stepfunction_tool import stepfunction_details
21+
from .lambda_tool import retrieve_document_context
22+
from .stepfunction_tool import analyze_workflow_execution
2423
from .xray_tool import (
25-
xray_performance_analysis,
26-
xray_trace,
24+
analyze_document_trace,
25+
analyze_system_performance,
2726
)
2827

2928
__all__ = [
30-
"cloudwatch_document_logs",
31-
"cloudwatch_logs",
32-
"lambda_lookup",
33-
"dynamodb_record",
34-
"dynamodb_status",
35-
"dynamodb_query",
36-
"stepfunction_details",
37-
"xray_trace",
38-
"xray_performance_analysis",
29+
"search_cloudwatch_logs",
30+
"retrieve_document_context",
31+
"fetch_document_record",
32+
"fetch_recent_records",
33+
"analyze_workflow_execution",
34+
"analyze_document_trace",
35+
"analyze_system_performance",
3936
]

0 commit comments

Comments
 (0)