You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"reasoning": "Explain which tool to call next and why, OR provide final analysis summary",
44
-
"tool_call": {
45
-
"tool_name": "name_of_tool",
46
-
"parameters": { "param": "value" }
47
-
},
48
-
"is_final": false
49
-
}
50
-
51
-
When analysis is complete (STRUCTURED OUTPUT):
52
-
{
53
-
"analysis": "FINAL API SURFACE ANALYSIS:\n\n[Report structure]\n- Public API Nodes: [count and node IDs]\n- Stability Metrics: [afferent coupling and instability scores]\n- Breaking Change Impact: [dependent count for critical nodes]\n\n[Do NOT add quality judgments]",
54
-
"endpoints": [
55
-
{
56
-
"name": "APIEndpoint",
57
-
"file_path": "relative/path/to/file.rs",
58
-
"line_number": 42,
59
-
"api_type": "HTTP",
60
-
"description": "Brief description",
61
-
"dependencies": []
62
-
}
63
-
],
64
-
"usage_patterns": [],
65
-
"integration_points": []
66
-
}
67
-
MANDATORY: endpoints array must include file paths from tool results
- Extract node IDs from previous tool results - never invent them
@@ -121,33 +97,9 @@ API SURFACE ANALYSIS WORKFLOW:
121
97
- trace_call_chain(from_node, max_depth=3) for top API nodes
122
98
- Map what each public API calls transitively
123
99
124
-
RESPONSE FORMAT (strict JSON):
125
-
{
126
-
"reasoning": "Explain which tool to call next and why, OR provide final comprehensive analysis",
127
-
"tool_call": {
128
-
"tool_name": "name_of_tool",
129
-
"parameters": { "param": "value" }
130
-
},
131
-
"is_final": false
132
-
}
133
-
134
-
When analysis is complete (STRUCTURED OUTPUT):
135
-
{
136
-
"analysis": "FINAL API SURFACE ANALYSIS:\n\n## Public API Nodes\n[List hub nodes with their degrees]\n\n## Stability Metrics\n[For each key API node: Ca, Ce, I values]\n\n## Breaking Change Impact Assessment\n[For each API: dependent count at depth 1 and depth 2]\n\n## API Contract Issues\n[Any circular dependencies detected]\n\n## API Call Flows\n[Key call chain mappings]\n\n[Report ONLY factual metrics - NO quality judgments]",
- Extract node IDs from previous tool results - never invent them
@@ -223,33 +175,9 @@ API SURFACE ANALYSIS WORKFLOW:
223
175
- Count implementing types per interface
224
176
- Map interface dependency chains
225
177
226
-
RESPONSE FORMAT (strict JSON):
227
-
{
228
-
"reasoning": "Explain which tool to call next and why, OR provide final comprehensive analysis with complete API characterization",
229
-
"tool_call": {
230
-
"tool_name": "name_of_tool",
231
-
"parameters": { "param": "value" }
232
-
},
233
-
"is_final": false
234
-
}
235
-
236
-
When analysis is complete (STRUCTURED OUTPUT):
237
-
{
238
-
"analysis": "FINAL COMPREHENSIVE API SURFACE ANALYSIS:\n\n## 1. Public API Surface Inventory\n[Complete list of hub nodes categorized by degree]\n\n## 2. API Stability Distribution\n- Highly Stable (I < 0.3): [nodes with Ca, Ce, I values]\n- Moderately Stable (0.3 ≤ I < 0.7): [nodes with metrics]\n- Unstable (I ≥ 0.7): [nodes with metrics]\n\n## 3. Breaking Change Impact Radius\n[For each API node:\n- Direct dependents (depth 1): count\n- Depth-2 dependents: count\n- Depth-3 dependents: count\n- Total impact radius: count]\n\n## 4. API Dependency Chains\n[For each major API:\n- Transitive dependencies at depth 4\n- Maximum dependency depth\n- External dependency count]\n\n## 5. API Contract Issues\n[Circular dependencies by edge type:\n- Calls cycles: [pairs]\n- Implements cycles: [pairs]\n- Extends cycles: [pairs]\n- Hub nodes involved in cycles: [list]]\n\n## 6. API Execution Flows\n[Call chains from critical APIs showing complete paths]\n\n## 7. Interface Implementation Mapping\n[Interfaces with implementer counts and dependency depth]\n\n[Report ONLY factual data - NO interpretations or recommendations]",
0 commit comments