{ "openapi": "3.0.0", "info": { "title": "Agent AWS API", "version": "1.0.0", "description": "APIs helping customers with knowledge of AWS by querying the AWS Well-Architected Framework, writing Terraform code." }, "paths": { "/answer_query": { "get": { "summary": "Query the AWS Well-Architected Framework to answer a customer question.", "description": "Query the AWS Well-Architected Framework to answer a customer question. The API takes in the customer query then returns the answer and a list of documents.", "operationId": "queryWellArch", "parameters": [ { "name": "query", "in": "path", "description": "Customer query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Response containing the answer to the customer query and a list of documents.", "content": { "application/json": { "schema": { "type": "object", "properties": { "answer": { "type": "string", "description": "The response to the customer query and list of documents cited." } } } } } } } } }, "/iac_gen": { "get": { "summary": "Generate IaC code for the customer", "description": "Write Terraform code for the customer. The API takes in the customer query and returns the code for the customer.", "operationId": "iac_gen_tool", "parameters": [ { "name": "query", "in": "path", "description": "Customer query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "The Terraform code requested by the customer.", "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "string", "description": "The Terraform code requested by the customer." } } } } } } } } }, "/iac_estimate_tool": { "get": { "summary": "Estimate infrastructure costs.", "description": "Estimate the cost of infrastructure based on the generated Terraform code. The API takes the customer request and returns the estimated cost.", "operationId": "iac_estimate_tool", "parameters": [ { "name": "query", "in": "path", "description": "Customer query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Estimated cost of the infrastructure based on the generated Terraform code.", "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "string", "description": "The estimated cost of the infrastructure based on the generated Terraform code." } } } } } } } } } } }