Skip to content

Commit 82bb4c6

Browse files
committed
Renamed and consolidated cloudwatch tool
1 parent a356836 commit 82bb4c6

File tree

5 files changed

+502
-334
lines changed

5 files changed

+502
-334
lines changed

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

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

1616
from ..common.strands_bedrock_model import create_strands_bedrock_model
1717
from .tools import (
18-
cloudwatch_document_logs,
19-
cloudwatch_logs,
2018
dynamodb_query,
2119
dynamodb_record,
2220
dynamodb_status,
2321
lambda_lookup,
22+
search_cloudwatch_logs,
2423
stepfunction_details,
2524
xray_performance_analysis,
2625
xray_trace,
@@ -51,8 +50,7 @@ def create_error_analyzer_agent(
5150

5251
# Create agent with specific tools - let LLM choose directly
5352
tools = [
54-
cloudwatch_document_logs,
55-
cloudwatch_logs,
53+
search_cloudwatch_logs,
5654
dynamodb_record,
5755
dynamodb_status,
5856
dynamodb_query,

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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 (
1818
dynamodb_query,
1919
dynamodb_record,
@@ -27,8 +27,7 @@
2727
)
2828

2929
__all__ = [
30-
"cloudwatch_document_logs",
31-
"cloudwatch_logs",
30+
"search_cloudwatch_logs",
3231
"lambda_lookup",
3332
"dynamodb_record",
3433
"dynamodb_status",

0 commit comments

Comments
 (0)