Skip to content

Commit 7f38f97

Browse files
Merge pull request #1875 from isuruRuhu/PE-branch-architect
Add documentation for the architect agent
2 parents 6ea8982 + 6e57af2 commit 7f38f97

File tree

4 files changed

+173
-0
lines changed

4 files changed

+173
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Choreo Architect Agent (API Compliance)
2+
3+
## Overview
4+
5+
The **Choreo Architect Agent** is an AI-powered assistant that evaluates your APIs against industry standards and guidelines provided by the user. It acts as an **AI consultant for API design and compliance**, providing deep insights into API structure, design conventions, and security best practices.
6+
7+
When triggered, the Architect Agent automatically analyzes all published API specifications in your project and generates structured output with compliance scores, rule violations, and improvement suggestions.
8+
9+
It helps ensure **consistency, security, and quality** in every API that your teams build on Choreo.
10+
11+
> **Note:**
12+
> This feature has been verified to work optimally with the **GPT-4.1** model, which delivers the most accurate and detailed API design analyses.
13+
> The Architect Agent has a limit of **3 successful analyses per organization, per month**.
14+
> Please note that AI can make mistakes. Always review the recommendations carefully before implementing changes.
15+
> To run unlimited analyses and achieve the highest-quality results, configure your LLM credentials (see [Step 3: Add Your LLM Model Configuration](#step-3-optional-add-your-llm-model-configuration)).
16+
17+
---
18+
19+
## Setup and Configuration
20+
21+
### Step 1: Access the Architect Agent
22+
23+
You can access the Architect Agent under your project’s **Insights → Compliance** section in the Choreo Console.
24+
25+
### Step 2: Trigger an Analysis
26+
27+
To start a compliance check:
28+
29+
1. Navigate to **Insights → Compliance**.
30+
2. Click **Trigger Analysis**.
31+
3. The Architect Agent will automatically fetch your organization’s APIs and analyze their OpenAPI specifications.
32+
33+
Once complete, console will display compliance results at the Project, and Component levels.
34+
35+
### Step 3 (Optional): Add Your LLM Model Configuration
36+
37+
If you want to run more analyses without monthly limits, connect your own LLM credentials:
38+
39+
1. Go to **Settings → Credentials → AI Configuration**.
40+
2. Choose your provider (**OpenAI** or **Azure OpenAI**).
41+
3. Set it as the **default AI model** for all analyses.
42+
4. Enter your API key and save.
43+
44+
---
45+
46+
## Compliance Reports
47+
48+
The Architect Agent generates comprehensive compliance reports at multiple levels to help teams understand their API design adherence:
49+
50+
### Project-Level Analysis
51+
52+
At the **project level**, the Architect Agent generates a summarized compliance report for all APIs defined within the project. This report provides an aggregated view of design and security compliance across your APIs and highlights areas that need improvement.
53+
54+
The project-level report includes:
55+
56+
- **Overall Project Compliance Rating** – The compliance rating from all APIs in the project, representing their adherence to the defined guidelines. Ratings range from Excellent, Good, Fair, Poor, to Very Poor.
57+
- **Project Analysis Summary** - A summary of the key findings from the project-level analysis.
58+
- **Area Analysis** – A breakdown of the most common areas, including guideline categories with both compliant and violated rules (e.g., Status codes, Pagination, Error responses).
59+
- **Individual API Scores** – A list of APIs and their respective analysis, allowing you to identify which APIs require the most attention.
60+
61+
This report helps teams quickly understand how well their APIs align with organizational design standards and where corrective action is required.
62+
63+
### Component-Level Analysis
64+
65+
At the **component level**, the Architect Agent provides a detailed compliance report for each individual API. This report represents the most granular level of analysis and includes all findings and recommendations for that specific API.
66+
67+
The component-level report includes:
68+
69+
- **Overall API Compliance Rating** – Indicates how well the API adheres to the defined design and security guidelines. Ratings range from Excellent, Good, Fair, Poor, to Very Poor.
70+
- **Guideline Category Breakdown** – Compliance categories such as *Security*, *Conventions*, *Best Practices*, and *Warnings*.
71+
- **Detailed Violations** - Descriptions of violated guidelines, the nature of each issue, and AI-generated suggestions or practical examples for improvement.
72+
- **Compliant categories** – Sections where the API meets the expected standards, demonstrating adherence to best practices and design conventions.
73+
74+
The Architect Agent always displays the **most recent report**, ensuring that teams act on up-to-date findings and recommendations.
75+
76+
---
77+
78+
## Conclusion
79+
80+
The **Choreo Architect Agent** empowers your teams to deliver **consistent, secure, and well-designed APIs** across your organization.
81+
With real-time AI-driven compliance checks, semantic recommendations, and multi-level dashboards, you can:
82+
83+
- Detect design and security violations.
84+
- Standardize API design practices across teams.
85+
- Continuously improve API quality through measurable scores.
86+
- Integrate guideline compliance into your development lifecycle.
87+
88+
---
89+

en/developer-docs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ nav:
225225
- Insights Overview: monitoring-and-insights/insights-overview.md
226226
- Generate Custom Reports: monitoring-and-insights/generate-custom-reports.md
227227
- Cost Insights: monitoring-and-insights/cost-optimization.md
228+
- Compliance: monitoring-and-insights/compliance.md
228229
- View Logs: monitoring-and-insights/view-logs.md
229230
- Work with the Choreo Insights API:
230231
- Access the Choreo Insights API: monitoring-and-insights/work-with-choreo-insights-api/access-the-choreo-insights-api.md
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Guideline Documents
2+
3+
Guideline documents are essential resources that inform the architect agent's analysis and recommendations. They help ensure consistency, compliance, and best practices across your organization's software architecture decisions.
4+
5+
## Overview
6+
7+
The Guideline Documents feature allows you to maintain a centralized repository of architectural guidelines, standards, and policies that the architect agent uses when analyzing your systems. You can view shared documents provided by the system and upload custom documents tailored to your organization's specific requirements.
8+
9+
## Key Features
10+
11+
- **shared Guidelines**: Access system-provided architectural guidelines that the architect agent uses by default
12+
- **Custom Document Upload**: Upload your organization's specific architectural guidelines and standards
13+
- **Document Management**: Edit or delete your uploaded documents to keep your guidelines current
14+
- **Architect Agent Integration**: Your guideline documents are automatically considered during architect agent analysis
15+
- **Read-Only shared documents**: System-provided shared documents cannot be modified or deleted to maintain consistency
16+
17+
## Working with Guideline Documents
18+
19+
### Viewing Guideline Documents
20+
21+
When you navigate to the Guideline Documents section, you'll see:
22+
23+
1. **shared Documents** - System-provided architectural guidelines (read-only)
24+
2. **Custom Documents** - Documents you've uploaded for your organization
25+
26+
### Uploading Custom Documents
27+
28+
To upload a guideline document for your architect agent to use:
29+
30+
1. Navigate to the Guideline Documents section
31+
2. Click the **Add Document** button
32+
3. Provide the document name
33+
4. Select your document file from your system
34+
5. Optionally add a description to help identify the document's purpose
35+
6. Click **Create** to save the document
36+
37+
**Supported formats**: PDF, Word documents, and text files
38+
39+
**Best practices for document uploads**:
40+
- Use clear, descriptive names for your documents
41+
- Include a brief description of the document's purpose
42+
- Ensure documents contain relevant architectural guidelines and standards
43+
- Keep documents organized by category or domain
44+
45+
### Editing Custom Documents
46+
47+
You can modify custom documents you've uploaded to keep them current with your organization's evolving standards:
48+
49+
1. Locate your custom document in the list
50+
2. Click the **Edit** button (pencil icon)
51+
3. Update the document metadata such as:
52+
- Document name
53+
- Description
54+
- Or re-upload a new version of the document
55+
4. Click **Update** to apply changes
56+
57+
**Note**: You cannot edit system-provided shared documents. These are maintained by the system to ensure baseline consistency.
58+
59+
### Deleting Custom Documents
60+
61+
If a custom document is no longer needed:
62+
63+
1. Locate the custom document in the list
64+
2. Click the **Delete** button (trash icon)
65+
3. Confirm the deletion when prompted
66+
4. The document will be removed and no longer used by the architect agent
67+
68+
**Important**:
69+
- Only custom documents you uploaded can be deleted
70+
- shared system documents cannot be deleted
71+
- Deleted documents cannot be recovered, so ensure you have backups if needed
72+
73+
## How Architect Agent Uses Guideline Documents
74+
75+
The architect agent considers all available guideline documents (both shared and custom) when:
76+
77+
- Analyzing your current architecture
78+
- Providing recommendations for improvements
79+
- Suggesting compliance and best practice alignments
80+
- Evaluating design patterns and standards adherence
81+
82+
By maintaining comprehensive and up-to-date guideline documents, you ensure that the architect agent's recommendations align with your organization's standards and requirements.

en/pe-docs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ nav:
122122
- Control Egress Traffic for Your Choreo Organization: governance/egress-control/control-egress-traffic-for-your-organization.md
123123
- Approvals:
124124
- Review Workflow Approval Requests: governance/approvals/review-workflow-approval-requests.md
125+
- Guideline Documents: governance/guideline-documents/architect-agent-guideline-documents.md
125126
- DB & Services:
126127
- Database & Vector Databases:
127128
- Overview: db-and-services/databases/choreo-managed-databases-and-caches.md

0 commit comments

Comments
 (0)