Merge b6142a41b6
into 1e26cfedaa
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 24 KiB |
@ -0,0 +1,58 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
Test script for AWS Agentcore Bedrock icons
|
||||||
|
Validates that all 11 new Agentcore icons can be imported and used correctly.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from diagrams import Diagram
|
||||||
|
from diagrams.aws.ml import (
|
||||||
|
Agentcore,
|
||||||
|
AiAgent,
|
||||||
|
Runtime,
|
||||||
|
Gateway,
|
||||||
|
Identity,
|
||||||
|
CodeInterpreter,
|
||||||
|
Observability,
|
||||||
|
BrowserTool,
|
||||||
|
Memory,
|
||||||
|
Evaluations,
|
||||||
|
PolicyEngineAgenticGuardrails
|
||||||
|
)
|
||||||
|
|
||||||
|
def test_agentcore_icons():
|
||||||
|
"""Test all Agentcore icons in a sample diagram"""
|
||||||
|
|
||||||
|
with Diagram("AWS Agentcore Bedrock Icons Test", show=False, filename="agentcore_test"):
|
||||||
|
# Core Agentcore components
|
||||||
|
agentcore = Agentcore("Agentcore")
|
||||||
|
ai_agent = AiAgent("AI Agent")
|
||||||
|
runtime = Runtime("Runtime")
|
||||||
|
gateway = Gateway("Gateway")
|
||||||
|
|
||||||
|
# Identity and security
|
||||||
|
identity = Identity("Identity")
|
||||||
|
policy_engine = PolicyEngineAgenticGuardrails("Policy Engine")
|
||||||
|
|
||||||
|
# Tools and capabilities
|
||||||
|
code_interpreter = CodeInterpreter("Code Interpreter")
|
||||||
|
browser_tool = BrowserTool("Browser Tool")
|
||||||
|
memory = Memory("Memory")
|
||||||
|
|
||||||
|
# Monitoring and evaluation
|
||||||
|
observability = Observability("Observability")
|
||||||
|
evaluations = Evaluations("Evaluations")
|
||||||
|
|
||||||
|
# Create a flow showing the relationships
|
||||||
|
agentcore >> ai_agent >> runtime
|
||||||
|
ai_agent >> [code_interpreter, browser_tool, memory]
|
||||||
|
gateway >> identity >> policy_engine
|
||||||
|
[runtime, code_interpreter, browser_tool] >> observability
|
||||||
|
observability >> evaluations
|
||||||
|
|
||||||
|
print("✅ Test diagram created successfully!")
|
||||||
|
print("📁 Generated file: agentcore_test.png")
|
||||||
|
print("🔍 Please verify the icons render correctly in the diagram")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
test_agentcore_icons()
|
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
Test script for new AWS AI/ML service icons
|
||||||
|
Tests Amazon Nova, AWS App Studio, Amazon CodeWhisperer, and AWS Neuron
|
||||||
|
"""
|
||||||
|
|
||||||
|
from diagrams import Diagram
|
||||||
|
from diagrams.aws.ml import AmazonNova, AWSAppStudio, AWSNeuron
|
||||||
|
|
||||||
|
def test_nova_icons():
|
||||||
|
"""Test the new Nova and AI service icons"""
|
||||||
|
|
||||||
|
with Diagram("New AWS AI/ML Services", show=False, filename="nova_test"):
|
||||||
|
# Create instances of the new services
|
||||||
|
nova = AmazonNova("Amazon Nova")
|
||||||
|
app_studio = AWSAppStudio("AWS App Studio")
|
||||||
|
neuron = AWSNeuron("AWS Neuron")
|
||||||
|
|
||||||
|
# Create a simple flow
|
||||||
|
nova >> app_studio >> neuron
|
||||||
|
|
||||||
|
print("✅ Test diagram created successfully!")
|
||||||
|
print("📁 Generated file: nova_test.png")
|
||||||
|
print("🔍 Please verify the icons render correctly in the diagram")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
test_nova_icons()
|