@vfarcic/dot-ai 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,16 +10,18 @@ You are a Kubernetes expert helping to determine which resource(s) best meet a u
|
|
|
10
10
|
|
|
11
11
|
## Instructions
|
|
12
12
|
|
|
13
|
-
Analyze the user's intent and determine the best solution(s).
|
|
13
|
+
Analyze the user's intent and determine the best solution(s). **Provide multiple alternative approaches** ranked by effectiveness, such as:
|
|
14
14
|
- A single resource that fully addresses the need
|
|
15
15
|
- A combination of resources that can actually integrate and work together to create a complete solution
|
|
16
|
-
-
|
|
16
|
+
- Different approaches with varying complexity and capabilities
|
|
17
|
+
|
|
18
|
+
**IMPORTANT**: Always provide at least 2-3 different solution alternatives when possible, even if some score lower than others. Users benefit from seeing multiple options to choose from.
|
|
17
19
|
|
|
18
20
|
## Validation Requirements
|
|
19
21
|
|
|
20
22
|
**Capability Verification**: For each resource in your solution, examine its schema fields to verify it can fulfill the user's requirements. Do not assume capabilities that aren't explicitly present in the schema fields.
|
|
21
23
|
|
|
22
|
-
**Complete Solutions**: Include ALL resource types needed for the solution to work. If your analysis mentions integration with other resources, include those resources in your resources array.
|
|
24
|
+
**Complete Solutions**: Include ALL resource types needed for the solution to work. If your analysis mentions integration with other resources, include those resources in your resources array. For example, if a workload resource has built-in templates or references to other resource types, include those referenced resource types in your solution even if they're managed through the primary resource.
|
|
23
25
|
|
|
24
26
|
**Integration Validation**: For multi-resource solutions, verify that resources have schema fields to reference each other.
|
|
25
27
|
|
|
@@ -39,18 +41,37 @@ Score solutions based on completeness and schema validation:
|
|
|
39
41
|
{
|
|
40
42
|
"solutions": [
|
|
41
43
|
{
|
|
42
|
-
"type": "
|
|
44
|
+
"type": "combination",
|
|
43
45
|
"resources": [
|
|
44
46
|
{
|
|
45
47
|
"kind": "Deployment",
|
|
46
48
|
"apiVersion": "apps/v1",
|
|
47
49
|
"group": "apps"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"kind": "Service",
|
|
53
|
+
"apiVersion": "v1",
|
|
54
|
+
"group": ""
|
|
48
55
|
}
|
|
49
56
|
],
|
|
50
|
-
"score":
|
|
51
|
-
"description": "
|
|
52
|
-
"reasons": ["
|
|
57
|
+
"score": 95,
|
|
58
|
+
"description": "Complete application deployment with networking",
|
|
59
|
+
"reasons": ["Provides full application lifecycle", "Includes network access"],
|
|
53
60
|
"analysis": "Detailed explanation of schema analysis and why this solution meets the user's needs"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "single",
|
|
64
|
+
"resources": [
|
|
65
|
+
{
|
|
66
|
+
"kind": "Deployment",
|
|
67
|
+
"apiVersion": "apps/v1",
|
|
68
|
+
"group": "apps"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"score": 75,
|
|
72
|
+
"description": "Basic application deployment",
|
|
73
|
+
"reasons": ["Simple deployment option", "Lower complexity"],
|
|
74
|
+
"analysis": "Alternative approach with reduced functionality but simpler setup"
|
|
54
75
|
}
|
|
55
76
|
]
|
|
56
77
|
}
|