fix: resolve reviewer feedback for agentcore icons

- Resize all agentcore icons to 256x256 pixels (were oversized)
- Resize Nova icon to 256x256 pixels (was 80x80, too small)
- Add aliases: PEAG for PolicyEngineAgenticGuardrails, OBS for Observability
- Update UPPER_WORDS to ensure proper capitalization (AiAgent, AGENTCORE)
- Run autogen.sh to regenerate Python classes with new icons and aliases
- Apply black formatting to generated code

All 11 agentcore icons now properly sized and integrated:
agentcore, ai-agent, runtime, gateway, identity, code-interpreter,
observability, browser-tool, memory, evaluations, policy-engine-agentic-guardrails
pull/1157/head
Michael Tran 3 weeks ago
parent 1d295d8f5f
commit dbda400360

@ -76,7 +76,7 @@ TMPL_APIDOC = "apidoc.tmpl"
TMPL_MODULE = "module.tmpl" TMPL_MODULE = "module.tmpl"
UPPER_WORDS = { UPPER_WORDS = {
"aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "nat", "vpc", "waf", "sdk"), "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "nat", "vpc", "waf", "sdk", "aiagent", "agentcore"),
"azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm", "vpn", "vpc"), "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm", "vpn", "vpc"),
"gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "iap", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"), "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "iap", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
"firebase": ("ab", "fcm", "ml"), "firebase": ("ab", "fcm", "ml"),
@ -242,6 +242,8 @@ ALIASES = {
}, },
"ml": { "ml": {
"DeepLearningContainers": "DLC", "DeepLearningContainers": "DLC",
"PolicyEngineAgenticGuardrails": "PEAG",
"Observability": "OBS",
}, },
"network": { "network": {
"CloudFront": "CF", "CloudFront": "CF",

@ -139,8 +139,7 @@ class Diagram:
if isinstance(outformat, list): if isinstance(outformat, list):
for one_format in outformat: for one_format in outformat:
if not self._validate_outformat(one_format): if not self._validate_outformat(one_format):
raise ValueError( raise ValueError(f'"{one_format}" is not a valid output format')
f'"{one_format}" is not a valid output format')
else: else:
if not self._validate_outformat(outformat): if not self._validate_outformat(outformat):
raise ValueError(f'"{outformat}" is not a valid output format') raise ValueError(f'"{outformat}" is not a valid output format')
@ -492,8 +491,7 @@ class Edge:
"""Implement Self - Node or Edge and Self - [Nodes]""" """Implement Self - Node or Edge and Self - [Nodes]"""
return self.connect(other) return self.connect(other)
def __rsub__(self, other: Union[List["Node"], def __rsub__(self, other: Union[List["Node"], List["Edge"]]) -> List["Edge"]:
List["Edge"]]) -> List["Edge"]:
"""Called for [Nodes] or [Edges] - Self because list don't have __sub__ operators.""" """Called for [Nodes] or [Edges] - Self because list don't have __sub__ operators."""
return self.append(other) return self.append(other)
@ -507,23 +505,15 @@ class Edge:
self.reverse = True self.reverse = True
return self.connect(other) return self.connect(other)
def __rrshift__(self, def __rrshift__(self, other: Union[List["Node"], List["Edge"]]) -> List["Edge"]:
other: Union[List["Node"],
List["Edge"]]) -> List["Edge"]:
"""Called for [Nodes] or [Edges] >> Self because list of Edges don't have __rshift__ operators.""" """Called for [Nodes] or [Edges] >> Self because list of Edges don't have __rshift__ operators."""
return self.append(other, forward=True) return self.append(other, forward=True)
def __rlshift__(self, def __rlshift__(self, other: Union[List["Node"], List["Edge"]]) -> List["Edge"]:
other: Union[List["Node"],
List["Edge"]]) -> List["Edge"]:
"""Called for [Nodes] or [Edges] << Self because list of Edges don't have __lshift__ operators.""" """Called for [Nodes] or [Edges] << Self because list of Edges don't have __lshift__ operators."""
return self.append(other, reverse=True) return self.append(other, reverse=True)
def append(self, def append(self, other: Union[List["Node"], List["Edge"]], forward=None, reverse=None) -> List["Edge"]:
other: Union[List["Node"],
List["Edge"]],
forward=None,
reverse=None) -> List["Edge"]:
result = [] result = []
for o in other: for o in other:
if isinstance(o, Edge): if isinstance(o, Edge):
@ -532,12 +522,7 @@ class Edge:
self._attrs = o.attrs.copy() self._attrs = o.attrs.copy()
result.append(o) result.append(o)
else: else:
result.append( result.append(Edge(o, forward=forward, reverse=reverse, **self._attrs))
Edge(
o,
forward=forward,
reverse=reverse,
**self._attrs))
return result return result
def connect(self, other: Union["Node", "Edge", List["Node"]]): def connect(self, other: Union["Node", "Edge", List["Node"]]):

@ -8,7 +8,7 @@ class _ML(_AWS):
_icon_dir = "resources/aws/ml" _icon_dir = "resources/aws/ml"
class Agentcore(_ML): class AGENTCORE(_ML):
_icon = "agentcore.png" _icon = "agentcore.png"
@ -191,3 +191,5 @@ class Translate(_ML):
# Aliases # Aliases
DLC = DeepLearningContainers DLC = DeepLearningContainers
PEAG = PolicyEngineAgenticGuardrails
OBS = Observability

@ -24,7 +24,7 @@ def run() -> int:
args = parser.parse_args() args = parser.parse_args()
for path in args.paths: for path in args.paths:
with open(path, encoding='utf-8') as f: with open(path, encoding="utf-8") as f:
exec(f.read()) exec(f.read())
return 0 return 0

@ -1091,15 +1091,39 @@ Node classes list of the aws provider.
## aws.ml ## aws.ml
<img width="30" src="/img/resources/aws/ml/agentcore.png" alt="AGENTCORE" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AGENTCORE**
<img width="30" src="/img/resources/aws/ml/ai-agent.png" alt="AiAgent" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AiAgent**
<img width="30" src="/img/resources/aws/ml/amazon-codewhisperer.png" alt="AmazonCodewhisperer" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AmazonCodewhisperer**
<img width="30" src="/img/resources/aws/ml/amazon-nova.png" alt="AmazonNova" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AmazonNova**
<img width="30" src="/img/resources/aws/ml/apache-mxnet-on-aws.png" alt="ApacheMxnetOnAWS" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/apache-mxnet-on-aws.png" alt="ApacheMxnetOnAWS" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.ApacheMxnetOnAWS** **diagrams.aws.ml.ApacheMxnetOnAWS**
<img width="30" src="/img/resources/aws/ml/augmented-ai.png" alt="AugmentedAi" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/augmented-ai.png" alt="AugmentedAi" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AugmentedAi** **diagrams.aws.ml.AugmentedAi**
<img width="30" src="/img/resources/aws/ml/aws-app-studio.png" alt="AWSAppStudio" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AWSAppStudio**
<img width="30" src="/img/resources/aws/ml/aws-neuron.png" alt="AWSNeuron" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.AWSNeuron**
<img width="30" src="/img/resources/aws/ml/bedrock.png" alt="Bedrock" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/bedrock.png" alt="Bedrock" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Bedrock** **diagrams.aws.ml.Bedrock**
<img width="30" src="/img/resources/aws/ml/browser-tool.png" alt="BrowserTool" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.BrowserTool**
<img width="30" src="/img/resources/aws/ml/code-interpreter.png" alt="CodeInterpreter" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.CodeInterpreter**
<img width="30" src="/img/resources/aws/ml/comprehend.png" alt="Comprehend" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/comprehend.png" alt="Comprehend" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Comprehend** **diagrams.aws.ml.Comprehend**
@ -1121,12 +1145,21 @@ Node classes list of the aws provider.
<img width="30" src="/img/resources/aws/ml/elastic-inference.png" alt="ElasticInference" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/elastic-inference.png" alt="ElasticInference" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.ElasticInference** **diagrams.aws.ml.ElasticInference**
<img width="30" src="/img/resources/aws/ml/evaluations.png" alt="Evaluations" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Evaluations**
<img width="30" src="/img/resources/aws/ml/forecast.png" alt="Forecast" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/forecast.png" alt="Forecast" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Forecast** **diagrams.aws.ml.Forecast**
<img width="30" src="/img/resources/aws/ml/fraud-detector.png" alt="FraudDetector" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/fraud-detector.png" alt="FraudDetector" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.FraudDetector** **diagrams.aws.ml.FraudDetector**
<img width="30" src="/img/resources/aws/ml/gateway.png" alt="Gateway" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Gateway**
<img width="30" src="/img/resources/aws/ml/identity.png" alt="Identity" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Identity**
<img width="30" src="/img/resources/aws/ml/kendra.png" alt="Kendra" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/kendra.png" alt="Kendra" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Kendra** **diagrams.aws.ml.Kendra**
@ -1136,9 +1169,18 @@ Node classes list of the aws provider.
<img width="30" src="/img/resources/aws/ml/machine-learning.png" alt="MachineLearning" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/machine-learning.png" alt="MachineLearning" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.MachineLearning** **diagrams.aws.ml.MachineLearning**
<img width="30" src="/img/resources/aws/ml/memory.png" alt="Memory" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Memory**
<img width="30" src="/img/resources/aws/ml/observability.png" alt="Observability" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Observability**, **OBS** (alias)
<img width="30" src="/img/resources/aws/ml/personalize.png" alt="Personalize" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/personalize.png" alt="Personalize" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Personalize** **diagrams.aws.ml.Personalize**
<img width="30" src="/img/resources/aws/ml/policy-engine-agentic-guardrails.png" alt="PolicyEngineAgenticGuardrails" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.PolicyEngineAgenticGuardrails**, **PEAG** (alias)
<img width="30" src="/img/resources/aws/ml/polly.png" alt="Polly" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/polly.png" alt="Polly" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Polly** **diagrams.aws.ml.Polly**
@ -1154,6 +1196,9 @@ Node classes list of the aws provider.
<img width="30" src="/img/resources/aws/ml/rekognition.png" alt="Rekognition" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/rekognition.png" alt="Rekognition" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Rekognition** **diagrams.aws.ml.Rekognition**
<img width="30" src="/img/resources/aws/ml/runtime.png" alt="Runtime" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.Runtime**
<img width="30" src="/img/resources/aws/ml/sagemaker-ground-truth.png" alt="SagemakerGroundTruth" style="float: left; padding-right: 5px;" > <img width="30" src="/img/resources/aws/ml/sagemaker-ground-truth.png" alt="SagemakerGroundTruth" style="float: left; padding-right: 5px;" >
**diagrams.aws.ml.SagemakerGroundTruth** **diagrams.aws.ml.SagemakerGroundTruth**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Loading…
Cancel
Save