agentsml-impl 0.2.0__py3-none-any.whl

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.
Files changed (129) hide show
  1. agentsml_impl/__init__.py +3 -0
  2. agentsml_impl/cli.py +472 -0
  3. agentsml_impl/compiler/__init__.py +1 -0
  4. agentsml_impl/compiler/capabilities.py +330 -0
  5. agentsml_impl/compiler/conditions.py +177 -0
  6. agentsml_impl/compiler/diagnostics.py +112 -0
  7. agentsml_impl/compiler/durations.py +31 -0
  8. agentsml_impl/compiler/expressions.py +123 -0
  9. agentsml_impl/compiler/identifiers.py +60 -0
  10. agentsml_impl/compiler/ir.py +391 -0
  11. agentsml_impl/compiler/limits.py +28 -0
  12. agentsml_impl/compiler/loader.py +83 -0
  13. agentsml_impl/compiler/naming.py +87 -0
  14. agentsml_impl/compiler/planner.py +79 -0
  15. agentsml_impl/compiler/render.py +90 -0
  16. agentsml_impl/compiler/schema_validation.py +121 -0
  17. agentsml_impl/compiler/semantic_validation.py +424 -0
  18. agentsml_impl/protocols/__init__.py +1 -0
  19. agentsml_impl/runtime/__init__.py +1 -0
  20. agentsml_impl/runtime/events.py +59 -0
  21. agentsml_impl/runtime/json_schema.py +138 -0
  22. agentsml_impl/runtime/tools.py +145 -0
  23. agentsml_impl/schemas/agentsml.schema.json +406 -0
  24. agentsml_impl/schemas/v0.1/agentsml.schema.json +628 -0
  25. agentsml_impl/schemas/v0.2/agentsml.schema.json +363 -0
  26. agentsml_impl/schemas/v0.3/agentsml.schema.json +406 -0
  27. agentsml_impl/targets/__init__.py +1 -0
  28. agentsml_impl/targets/a2a/__init__.py +0 -0
  29. agentsml_impl/targets/a2a/adapter.py +94 -0
  30. agentsml_impl/targets/a2a/capabilities.yaml +25 -0
  31. agentsml_impl/targets/ag2/__init__.py +0 -0
  32. agentsml_impl/targets/ag2/adapter.py +655 -0
  33. agentsml_impl/targets/ag2/capabilities.yaml +37 -0
  34. agentsml_impl/targets/ag_ui/__init__.py +0 -0
  35. agentsml_impl/targets/ag_ui/adapter.py +123 -0
  36. agentsml_impl/targets/ag_ui/capabilities.yaml +25 -0
  37. agentsml_impl/targets/agno/__init__.py +0 -0
  38. agentsml_impl/targets/agno/adapter.py +191 -0
  39. agentsml_impl/targets/agno/capabilities.yaml +26 -0
  40. agentsml_impl/targets/ap2/__init__.py +0 -0
  41. agentsml_impl/targets/ap2/adapter.py +84 -0
  42. agentsml_impl/targets/ap2/capabilities.yaml +25 -0
  43. agentsml_impl/targets/base.py +157 -0
  44. agentsml_impl/targets/bedrock_agentcore/__init__.py +0 -0
  45. agentsml_impl/targets/bedrock_agentcore/adapter.py +592 -0
  46. agentsml_impl/targets/bedrock_agentcore/capabilities.yaml +26 -0
  47. agentsml_impl/targets/claude_agent_sdk/__init__.py +0 -0
  48. agentsml_impl/targets/claude_agent_sdk/adapter.py +178 -0
  49. agentsml_impl/targets/claude_agent_sdk/capabilities.yaml +26 -0
  50. agentsml_impl/targets/crewai/__init__.py +0 -0
  51. agentsml_impl/targets/crewai/adapter.py +441 -0
  52. agentsml_impl/targets/crewai/capabilities.yaml +30 -0
  53. agentsml_impl/targets/databricks/__init__.py +0 -0
  54. agentsml_impl/targets/databricks/adapter.py +427 -0
  55. agentsml_impl/targets/databricks/capabilities.yaml +26 -0
  56. agentsml_impl/targets/flowise/__init__.py +0 -0
  57. agentsml_impl/targets/flowise/adapter.py +71 -0
  58. agentsml_impl/targets/flowise/capabilities.yaml +26 -0
  59. agentsml_impl/targets/google_adk/__init__.py +0 -0
  60. agentsml_impl/targets/google_adk/adapter.py +589 -0
  61. agentsml_impl/targets/google_adk/capabilities.yaml +36 -0
  62. agentsml_impl/targets/langchain/__init__.py +1 -0
  63. agentsml_impl/targets/langchain/adapter.py +351 -0
  64. agentsml_impl/targets/langchain/capabilities.yaml +30 -0
  65. agentsml_impl/targets/langflow/__init__.py +0 -0
  66. agentsml_impl/targets/langflow/adapter.py +147 -0
  67. agentsml_impl/targets/langflow/capabilities.yaml +26 -0
  68. agentsml_impl/targets/langgraph/__init__.py +0 -0
  69. agentsml_impl/targets/langgraph/adapter.py +911 -0
  70. agentsml_impl/targets/langgraph/capabilities.yaml +33 -0
  71. agentsml_impl/targets/llamaindex/__init__.py +1 -0
  72. agentsml_impl/targets/llamaindex/adapter.py +406 -0
  73. agentsml_impl/targets/llamaindex/capabilities.yaml +31 -0
  74. agentsml_impl/targets/lyzr/__init__.py +0 -0
  75. agentsml_impl/targets/lyzr/adapter.py +146 -0
  76. agentsml_impl/targets/lyzr/capabilities.yaml +26 -0
  77. agentsml_impl/targets/mastra/__init__.py +0 -0
  78. agentsml_impl/targets/mastra/adapter.py +635 -0
  79. agentsml_impl/targets/mastra/capabilities.yaml +32 -0
  80. agentsml_impl/targets/mcp_server/__init__.py +0 -0
  81. agentsml_impl/targets/mcp_server/adapter.py +141 -0
  82. agentsml_impl/targets/mcp_server/capabilities.yaml +25 -0
  83. agentsml_impl/targets/microsoft_agent_framework/__init__.py +0 -0
  84. agentsml_impl/targets/microsoft_agent_framework/adapter.py +563 -0
  85. agentsml_impl/targets/microsoft_agent_framework/capabilities.yaml +26 -0
  86. agentsml_impl/targets/n8n/__init__.py +0 -0
  87. agentsml_impl/targets/n8n/adapter.py +139 -0
  88. agentsml_impl/targets/n8n/capabilities.yaml +26 -0
  89. agentsml_impl/targets/openai_agents/__init__.py +0 -0
  90. agentsml_impl/targets/openai_agents/adapter.py +175 -0
  91. agentsml_impl/targets/openai_agents/capabilities.yaml +27 -0
  92. agentsml_impl/targets/pydantic_ai/__init__.py +0 -0
  93. agentsml_impl/targets/pydantic_ai/adapter.py +922 -0
  94. agentsml_impl/targets/pydantic_ai/capabilities.yaml +37 -0
  95. agentsml_impl/targets/registry.py +290 -0
  96. agentsml_impl/targets/relevance_ai/__init__.py +0 -0
  97. agentsml_impl/targets/relevance_ai/adapter.py +66 -0
  98. agentsml_impl/targets/relevance_ai/capabilities.yaml +26 -0
  99. agentsml_impl/targets/smolagents/__init__.py +0 -0
  100. agentsml_impl/targets/smolagents/adapter.py +210 -0
  101. agentsml_impl/targets/smolagents/capabilities.yaml +27 -0
  102. agentsml_impl/targets/snowflake_cortex/__init__.py +0 -0
  103. agentsml_impl/targets/snowflake_cortex/adapter.py +167 -0
  104. agentsml_impl/targets/snowflake_cortex/capabilities.yaml +26 -0
  105. agentsml_impl/targets/spring_ai/__init__.py +1 -0
  106. agentsml_impl/targets/spring_ai/adapter.py +626 -0
  107. agentsml_impl/targets/spring_ai/capabilities.yaml +31 -0
  108. agentsml_impl/targets/strands_agents/__init__.py +1 -0
  109. agentsml_impl/targets/strands_agents/adapter.py +309 -0
  110. agentsml_impl/targets/strands_agents/capabilities.yaml +29 -0
  111. agentsml_impl/targets/support_matrix.py +91 -0
  112. agentsml_impl/targets/ucp/__init__.py +0 -0
  113. agentsml_impl/targets/ucp/adapter.py +86 -0
  114. agentsml_impl/targets/ucp/capabilities.yaml +25 -0
  115. agentsml_impl/targets/vercel_ai/__init__.py +1 -0
  116. agentsml_impl/targets/vercel_ai/adapter.py +349 -0
  117. agentsml_impl/targets/vercel_ai/capabilities.yaml +30 -0
  118. agentsml_impl/targets/vertex_agent_engine/__init__.py +0 -0
  119. agentsml_impl/targets/vertex_agent_engine/adapter.py +407 -0
  120. agentsml_impl/targets/vertex_agent_engine/capabilities.yaml +26 -0
  121. agentsml_impl/targets/zapier_agents/__init__.py +0 -0
  122. agentsml_impl/targets/zapier_agents/adapter.py +106 -0
  123. agentsml_impl/targets/zapier_agents/capabilities.yaml +26 -0
  124. agentsml_impl-0.2.0.dist-info/METADATA +109 -0
  125. agentsml_impl-0.2.0.dist-info/RECORD +129 -0
  126. agentsml_impl-0.2.0.dist-info/WHEEL +5 -0
  127. agentsml_impl-0.2.0.dist-info/entry_points.txt +3 -0
  128. agentsml_impl-0.2.0.dist-info/licenses/LICENSE +28 -0
  129. agentsml_impl-0.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,363 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsml.org/schemas/agentsml-0.2.schema.json",
4
+ "title": "AgentsML",
5
+ "type": "object",
6
+ "required": ["agentsml", "kind", "metadata"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "agentsml": {
10
+ "type": "string",
11
+ "enum": ["0.1", "0.2"]
12
+ },
13
+ "kind": {
14
+ "type": "string",
15
+ "const": "AgentSystem"
16
+ },
17
+ "metadata": {
18
+ "type": "object",
19
+ "required": ["name"],
20
+ "additionalProperties": true,
21
+ "properties": {
22
+ "name": { "type": "string", "minLength": 1 },
23
+ "version": { "type": "string" },
24
+ "description": { "type": "string" },
25
+ "tags": {
26
+ "type": "array",
27
+ "items": { "type": "string" }
28
+ }
29
+ }
30
+ },
31
+ "profiles": {
32
+ "oneOf": [
33
+ {
34
+ "type": "array",
35
+ "items": { "type": "string" }
36
+ },
37
+ {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "required": {
42
+ "type": "array",
43
+ "items": { "type": "string" }
44
+ },
45
+ "optional": {
46
+ "type": "array",
47
+ "items": { "type": "string" }
48
+ },
49
+ "extensions": {
50
+ "type": "array",
51
+ "items": { "type": "string" }
52
+ }
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ "models": {
58
+ "type": "object",
59
+ "additionalProperties": { "$ref": "#/$defs/model" }
60
+ },
61
+ "tools": {
62
+ "type": "object",
63
+ "additionalProperties": { "$ref": "#/$defs/tool" }
64
+ },
65
+ "resources": {
66
+ "type": "object",
67
+ "additionalProperties": { "$ref": "#/$defs/resource" }
68
+ },
69
+ "prompts": {
70
+ "type": "object",
71
+ "additionalProperties": { "$ref": "#/$defs/prompt" }
72
+ },
73
+ "agents": {
74
+ "type": "object",
75
+ "additionalProperties": { "$ref": "#/$defs/agent" }
76
+ },
77
+ "workflows": {
78
+ "type": "object",
79
+ "additionalProperties": { "$ref": "#/$defs/workflow" }
80
+ },
81
+ "schemas": {
82
+ "type": "object",
83
+ "additionalProperties": { "type": "object" }
84
+ },
85
+ "policies": {
86
+ "type": "object",
87
+ "additionalProperties": { "$ref": "#/$defs/policy" }
88
+ },
89
+ "deployments": {
90
+ "type": "object",
91
+ "additionalProperties": { "type": "object" }
92
+ },
93
+ "events": {
94
+ "$ref": "#/$defs/events_config"
95
+ },
96
+ "mcp_servers": {
97
+ "type": "object",
98
+ "additionalProperties": { "$ref": "#/$defs/mcp_server" }
99
+ },
100
+ "a2a_agents": {
101
+ "type": "object",
102
+ "additionalProperties": { "$ref": "#/$defs/a2a_agent" }
103
+ },
104
+ "a2a_server": {
105
+ "$ref": "#/$defs/a2a_server"
106
+ },
107
+ "ui": {
108
+ "$ref": "#/$defs/ui"
109
+ }
110
+ },
111
+ "$defs": {
112
+ "model": {
113
+ "type": "object",
114
+ "required": ["provider", "name"],
115
+ "additionalProperties": true,
116
+ "properties": {
117
+ "provider": { "type": "string" },
118
+ "name": { "type": "string" },
119
+ "version": { "type": "string" },
120
+ "parameters": { "type": "object" },
121
+ "fallbacks": {
122
+ "type": "array",
123
+ "items": { "type": "string" }
124
+ }
125
+ }
126
+ },
127
+ "tool": {
128
+ "type": "object",
129
+ "required": ["description", "source"],
130
+ "additionalProperties": true,
131
+ "properties": {
132
+ "description": { "type": "string" },
133
+ "source": { "type": "string" },
134
+ "input_schema": { "type": "object" },
135
+ "output_schema": { "type": "object" },
136
+ "auth": { "type": "object" },
137
+ "permissions": { "type": "object" },
138
+ "side_effect": {
139
+ "type": "string",
140
+ "enum": ["read", "write", "delete", "payment", "browser", "external", "unknown"]
141
+ },
142
+ "timeout": { "type": ["number", "string"] },
143
+ "error_policy": { "type": "object" }
144
+ }
145
+ },
146
+ "resource": {
147
+ "type": "object",
148
+ "additionalProperties": true,
149
+ "properties": {
150
+ "description": { "type": "string" },
151
+ "source": { "type": "string" },
152
+ "schema": { "type": "object" },
153
+ "auth": { "type": "object" },
154
+ "permissions": { "type": "object" }
155
+ }
156
+ },
157
+ "prompt": {
158
+ "type": "object",
159
+ "required": ["template"],
160
+ "additionalProperties": true,
161
+ "properties": {
162
+ "description": { "type": "string" },
163
+ "template": { "type": "string" },
164
+ "input_schema": { "type": "object" },
165
+ "metadata": { "type": "object" }
166
+ }
167
+ },
168
+ "agent": {
169
+ "type": "object",
170
+ "required": ["model", "instructions"],
171
+ "additionalProperties": true,
172
+ "properties": {
173
+ "description": { "type": "string" },
174
+ "role": { "type": "string" },
175
+ "model": { "type": "string" },
176
+ "instructions": { "type": "string" },
177
+ "tools": {
178
+ "type": "array",
179
+ "items": { "type": "string" }
180
+ },
181
+ "resources": {
182
+ "type": "array",
183
+ "items": { "type": "string" }
184
+ },
185
+ "prompts": {
186
+ "type": "array",
187
+ "items": { "type": "string" }
188
+ },
189
+ "memory": { "type": "object" },
190
+ "knowledge": { "type": "object" },
191
+ "output_schema": { "type": "object" },
192
+ "policies": {
193
+ "type": "array",
194
+ "items": { "type": "string" }
195
+ }
196
+ }
197
+ },
198
+ "workflow": {
199
+ "type": "object",
200
+ "required": ["steps"],
201
+ "additionalProperties": true,
202
+ "properties": {
203
+ "description": { "type": "string" },
204
+ "input_schema": { "type": "object" },
205
+ "output_schema": { "type": "object" },
206
+ "state": { "type": "object" },
207
+ "steps": {
208
+ "type": "array",
209
+ "items": { "$ref": "#/$defs/step" }
210
+ },
211
+ "edges": {
212
+ "type": "array",
213
+ "items": { "$ref": "#/$defs/edge" }
214
+ },
215
+ "events": { "type": "array" },
216
+ "error_policy": { "type": "object" }
217
+ }
218
+ },
219
+ "step": {
220
+ "type": "object",
221
+ "required": ["id"],
222
+ "additionalProperties": true,
223
+ "properties": {
224
+ "id": { "type": "string" },
225
+ "agent": { "type": "string" },
226
+ "tool": { "type": "string" },
227
+ "workflow": { "type": "string" },
228
+ "a2a_agent": { "type": "string" },
229
+ "skill": { "type": "string" },
230
+ "input": {},
231
+ "output": {},
232
+ "condition": {},
233
+ "depends_on": {
234
+ "type": "array",
235
+ "items": { "type": "string" }
236
+ },
237
+ "join": {
238
+ "type": "string",
239
+ "enum": ["wait_all", "wait_any"]
240
+ },
241
+ "parallel": {
242
+ "oneOf": [
243
+ { "type": "boolean" },
244
+ {
245
+ "type": "array",
246
+ "items": { "type": "string" }
247
+ }
248
+ ]
249
+ },
250
+ "retry": { "type": "object" },
251
+ "timeout": { "type": ["number", "string"] },
252
+ "approval": { "type": ["string", "object"] },
253
+ "events": {
254
+ "type": "array",
255
+ "items": {
256
+ "oneOf": [
257
+ { "type": "string" },
258
+ { "type": "object" }
259
+ ]
260
+ }
261
+ }
262
+ }
263
+ },
264
+ "edge": {
265
+ "type": "object",
266
+ "required": ["from", "to"],
267
+ "additionalProperties": true,
268
+ "properties": {
269
+ "from": { "type": "string" },
270
+ "to": { "type": "string" },
271
+ "condition": {},
272
+ "label": { "type": "string" }
273
+ }
274
+ },
275
+ "policy": {
276
+ "type": "object",
277
+ "additionalProperties": true,
278
+ "properties": {
279
+ "description": { "type": "string" },
280
+ "applies_to": {
281
+ "type": "array",
282
+ "items": { "type": "string" }
283
+ },
284
+ "permissions": { "type": "object" },
285
+ "guardrails": { "type": "object" },
286
+ "approval": { "type": "object" },
287
+ "audit": { "type": "object" }
288
+ }
289
+ },
290
+ "events_config": {
291
+ "type": "object",
292
+ "additionalProperties": true,
293
+ "properties": {
294
+ "emit": {
295
+ "type": "array",
296
+ "items": { "type": "string" }
297
+ },
298
+ "export": { "type": "object" },
299
+ "redaction": { "type": "object" }
300
+ }
301
+ },
302
+ "mcp_server": {
303
+ "type": "object",
304
+ "additionalProperties": true,
305
+ "properties": {
306
+ "description": { "type": "string" },
307
+ "transport": {
308
+ "type": "string",
309
+ "enum": ["stdio", "streamable_http", "sse", "http", "websocket"]
310
+ },
311
+ "command": { "type": "string" },
312
+ "args": {
313
+ "type": "array",
314
+ "items": { "type": "string" }
315
+ },
316
+ "url": { "type": "string" },
317
+ "capabilities": {
318
+ "type": "array",
319
+ "items": { "type": "string" }
320
+ },
321
+ "auth": { "type": "object" }
322
+ }
323
+ },
324
+ "a2a_agent": {
325
+ "type": "object",
326
+ "additionalProperties": true,
327
+ "properties": {
328
+ "description": { "type": "string" },
329
+ "agent_card_url": { "type": "string" },
330
+ "skills": {
331
+ "type": "array",
332
+ "items": { "type": "string" }
333
+ },
334
+ "auth": { "type": "object" }
335
+ }
336
+ },
337
+ "a2a_server": {
338
+ "type": "object",
339
+ "additionalProperties": true,
340
+ "properties": {
341
+ "name": { "type": "string" },
342
+ "description": { "type": "string" },
343
+ "version": { "type": "string" },
344
+ "skills": {
345
+ "type": "array",
346
+ "items": { "type": "object" }
347
+ },
348
+ "auth": { "type": "object" }
349
+ }
350
+ },
351
+ "ui": {
352
+ "type": "object",
353
+ "additionalProperties": true,
354
+ "properties": {
355
+ "protocol": { "type": "string" },
356
+ "transport": { "type": "string" },
357
+ "session_model": { "type": "string" },
358
+ "events": { "$ref": "#/$defs/events_config" },
359
+ "state_schema": { "type": "object" }
360
+ }
361
+ }
362
+ }
363
+ }