Building an AWS Solution Architect Agent with Generative AI
Tips and guidance on building a Generative AI Agent.

- Role: How the agent should behave, explanation of the concept of tools.
- Instructions: Provides examples of tasks and their solutions
<<all_tools>>
, which is replaced at runtime with the tools specified by the user.{}
. The variable response
is placed within these braces, meaning its value will be inserted into the string when it's printed.<<prompt>>
directive, a placeholder that instructs the model on how to respond to a new, user-supplied prompt, thereby demonstrating the flexibility and adaptability of our Agent.- AWS Well-Architected Framework Query Tool: This tool will allow your agent to interact directly with the AWS Well-Architected Framework, extracting valuable data to inform architectural decisions.
- Code Generation Tool: This tool will generate code from AWS CloudFormation scripts to Python code.
- Diagram Creation Tool: This tool will create AWS diagrams.
- name: This is the name of the tool.
- description: This will be used to populate the prompt of the agent.
- inputs and outputs: These aid the interpreter in making informed decisions regarding data types. They both consist of a list of possible values which could be text, image, or audio.
- 'text': This type would be used when the input or output is a string of words, like a question to the tool or an answer from it.
- 'image': This would be chosen if the input or output is a picture or diagram. For example, if the user wanted to analyze an architectural diagram or if the tool needed to output a diagram to illustrate its answer.
- 'audio': This type would be selected when the input or output is a sound or speech, which might be useful for voice-based interaction scenarios.
- A call method: This contains the inference code.


Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.