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,628 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsml.org/schemas/v0.1/agentsml.schema.json",
4
+ "title": "AgentsML",
5
+ "type": "object",
6
+ "required": [
7
+ "agentsml",
8
+ "kind",
9
+ "metadata"
10
+ ],
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "agentsml": {
14
+ "type": "string",
15
+ "enum": [
16
+ "0.1"
17
+ ]
18
+ },
19
+ "kind": {
20
+ "type": "string",
21
+ "const": "AgentSystem"
22
+ },
23
+ "metadata": {
24
+ "type": "object",
25
+ "required": [
26
+ "name"
27
+ ],
28
+ "additionalProperties": true,
29
+ "properties": {
30
+ "name": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "version": {
35
+ "type": "string"
36
+ },
37
+ "description": {
38
+ "type": "string"
39
+ },
40
+ "tags": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "string"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "profiles": {
49
+ "oneOf": [
50
+ {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "properties": {
60
+ "required": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "optional": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "extensions": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string"
76
+ }
77
+ }
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ "models": {
83
+ "type": "object",
84
+ "additionalProperties": {
85
+ "$ref": "#/$defs/model"
86
+ }
87
+ },
88
+ "tools": {
89
+ "type": "object",
90
+ "additionalProperties": {
91
+ "$ref": "#/$defs/tool"
92
+ }
93
+ },
94
+ "resources": {
95
+ "type": "object",
96
+ "additionalProperties": {
97
+ "$ref": "#/$defs/resource"
98
+ }
99
+ },
100
+ "prompts": {
101
+ "type": "object",
102
+ "additionalProperties": {
103
+ "$ref": "#/$defs/prompt"
104
+ }
105
+ },
106
+ "agents": {
107
+ "type": "object",
108
+ "additionalProperties": {
109
+ "$ref": "#/$defs/agent"
110
+ }
111
+ },
112
+ "workflows": {
113
+ "type": "object",
114
+ "additionalProperties": {
115
+ "$ref": "#/$defs/workflow"
116
+ }
117
+ },
118
+ "schemas": {
119
+ "type": "object",
120
+ "additionalProperties": {
121
+ "type": "object"
122
+ }
123
+ },
124
+ "policies": {
125
+ "type": "object",
126
+ "additionalProperties": {
127
+ "$ref": "#/$defs/policy"
128
+ }
129
+ },
130
+ "deployments": {
131
+ "type": "object",
132
+ "additionalProperties": {
133
+ "type": "object"
134
+ }
135
+ },
136
+ "events": {
137
+ "$ref": "#/$defs/events_config"
138
+ },
139
+ "mcp_servers": {
140
+ "type": "object",
141
+ "additionalProperties": {
142
+ "$ref": "#/$defs/mcp_server"
143
+ }
144
+ },
145
+ "a2a_agents": {
146
+ "type": "object",
147
+ "additionalProperties": {
148
+ "$ref": "#/$defs/a2a_agent"
149
+ }
150
+ },
151
+ "a2a_server": {
152
+ "$ref": "#/$defs/a2a_server"
153
+ },
154
+ "ui": {
155
+ "$ref": "#/$defs/ui"
156
+ }
157
+ },
158
+ "$defs": {
159
+ "model": {
160
+ "type": "object",
161
+ "required": [
162
+ "provider",
163
+ "name"
164
+ ],
165
+ "additionalProperties": true,
166
+ "properties": {
167
+ "provider": {
168
+ "type": "string"
169
+ },
170
+ "name": {
171
+ "type": "string"
172
+ },
173
+ "version": {
174
+ "type": "string"
175
+ },
176
+ "parameters": {
177
+ "type": "object"
178
+ },
179
+ "fallbacks": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string"
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "tool": {
188
+ "type": "object",
189
+ "required": [
190
+ "description",
191
+ "source"
192
+ ],
193
+ "additionalProperties": true,
194
+ "properties": {
195
+ "description": {
196
+ "type": "string"
197
+ },
198
+ "source": {
199
+ "type": "string"
200
+ },
201
+ "input_schema": {
202
+ "type": "object"
203
+ },
204
+ "output_schema": {
205
+ "type": "object"
206
+ },
207
+ "auth": {
208
+ "type": "object"
209
+ },
210
+ "permissions": {
211
+ "type": "object"
212
+ },
213
+ "side_effect": {
214
+ "type": "string",
215
+ "enum": [
216
+ "read",
217
+ "write",
218
+ "delete",
219
+ "payment",
220
+ "browser",
221
+ "external",
222
+ "unknown"
223
+ ]
224
+ },
225
+ "timeout": {
226
+ "type": [
227
+ "number",
228
+ "string"
229
+ ]
230
+ },
231
+ "error_policy": {
232
+ "type": "object"
233
+ }
234
+ }
235
+ },
236
+ "resource": {
237
+ "type": "object",
238
+ "additionalProperties": true,
239
+ "properties": {
240
+ "description": {
241
+ "type": "string"
242
+ },
243
+ "source": {
244
+ "type": "string"
245
+ },
246
+ "schema": {
247
+ "type": "object"
248
+ },
249
+ "auth": {
250
+ "type": "object"
251
+ },
252
+ "permissions": {
253
+ "type": "object"
254
+ }
255
+ }
256
+ },
257
+ "prompt": {
258
+ "type": "object",
259
+ "required": [
260
+ "template"
261
+ ],
262
+ "additionalProperties": true,
263
+ "properties": {
264
+ "description": {
265
+ "type": "string"
266
+ },
267
+ "template": {
268
+ "type": "string"
269
+ },
270
+ "input_schema": {
271
+ "type": "object"
272
+ },
273
+ "metadata": {
274
+ "type": "object"
275
+ }
276
+ }
277
+ },
278
+ "agent": {
279
+ "type": "object",
280
+ "required": [
281
+ "model",
282
+ "instructions"
283
+ ],
284
+ "additionalProperties": true,
285
+ "properties": {
286
+ "description": {
287
+ "type": "string"
288
+ },
289
+ "role": {
290
+ "type": "string"
291
+ },
292
+ "model": {
293
+ "type": "string"
294
+ },
295
+ "instructions": {
296
+ "type": "string"
297
+ },
298
+ "tools": {
299
+ "type": "array",
300
+ "items": {
301
+ "type": "string"
302
+ }
303
+ },
304
+ "resources": {
305
+ "type": "array",
306
+ "items": {
307
+ "type": "string"
308
+ }
309
+ },
310
+ "prompts": {
311
+ "type": "array",
312
+ "items": {
313
+ "type": "string"
314
+ }
315
+ },
316
+ "memory": {
317
+ "type": "object"
318
+ },
319
+ "knowledge": {
320
+ "type": "object"
321
+ },
322
+ "output_schema": {
323
+ "type": "object"
324
+ },
325
+ "policies": {
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string"
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "workflow": {
334
+ "type": "object",
335
+ "required": [
336
+ "steps"
337
+ ],
338
+ "additionalProperties": true,
339
+ "properties": {
340
+ "description": {
341
+ "type": "string"
342
+ },
343
+ "input_schema": {
344
+ "type": "object"
345
+ },
346
+ "output_schema": {
347
+ "type": "object"
348
+ },
349
+ "state": {
350
+ "type": "object"
351
+ },
352
+ "steps": {
353
+ "type": "array",
354
+ "items": {
355
+ "$ref": "#/$defs/step"
356
+ }
357
+ },
358
+ "edges": {
359
+ "type": "array",
360
+ "items": {
361
+ "$ref": "#/$defs/edge"
362
+ }
363
+ },
364
+ "events": {
365
+ "type": "array"
366
+ },
367
+ "error_policy": {
368
+ "type": "object"
369
+ }
370
+ }
371
+ },
372
+ "step": {
373
+ "type": "object",
374
+ "required": [
375
+ "id"
376
+ ],
377
+ "additionalProperties": true,
378
+ "properties": {
379
+ "id": {
380
+ "type": "string"
381
+ },
382
+ "agent": {
383
+ "type": "string"
384
+ },
385
+ "tool": {
386
+ "type": "string"
387
+ },
388
+ "workflow": {
389
+ "type": "string"
390
+ },
391
+ "a2a_agent": {
392
+ "type": "string"
393
+ },
394
+ "skill": {
395
+ "type": "string"
396
+ },
397
+ "input": {},
398
+ "output": {},
399
+ "condition": {},
400
+ "depends_on": {
401
+ "type": "array",
402
+ "items": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "join": {
407
+ "type": "string",
408
+ "enum": [
409
+ "wait_all",
410
+ "wait_any"
411
+ ]
412
+ },
413
+ "parallel": {
414
+ "oneOf": [
415
+ {
416
+ "type": "boolean"
417
+ },
418
+ {
419
+ "type": "array",
420
+ "items": {
421
+ "type": "string"
422
+ }
423
+ }
424
+ ]
425
+ },
426
+ "retry": {
427
+ "type": "object"
428
+ },
429
+ "timeout": {
430
+ "type": [
431
+ "number",
432
+ "string"
433
+ ]
434
+ },
435
+ "approval": {
436
+ "type": [
437
+ "string",
438
+ "object"
439
+ ]
440
+ },
441
+ "events": {
442
+ "type": "array",
443
+ "items": {
444
+ "oneOf": [
445
+ {
446
+ "type": "string"
447
+ },
448
+ {
449
+ "type": "object"
450
+ }
451
+ ]
452
+ }
453
+ }
454
+ }
455
+ },
456
+ "edge": {
457
+ "type": "object",
458
+ "required": [
459
+ "from",
460
+ "to"
461
+ ],
462
+ "additionalProperties": true,
463
+ "properties": {
464
+ "from": {
465
+ "type": "string"
466
+ },
467
+ "to": {
468
+ "type": "string"
469
+ },
470
+ "condition": {},
471
+ "label": {
472
+ "type": "string"
473
+ }
474
+ }
475
+ },
476
+ "policy": {
477
+ "type": "object",
478
+ "additionalProperties": true,
479
+ "properties": {
480
+ "description": {
481
+ "type": "string"
482
+ },
483
+ "applies_to": {
484
+ "type": "array",
485
+ "items": {
486
+ "type": "string"
487
+ }
488
+ },
489
+ "permissions": {
490
+ "type": "object"
491
+ },
492
+ "guardrails": {
493
+ "type": "object"
494
+ },
495
+ "approval": {
496
+ "type": "object"
497
+ },
498
+ "audit": {
499
+ "type": "object"
500
+ }
501
+ }
502
+ },
503
+ "events_config": {
504
+ "type": "object",
505
+ "additionalProperties": true,
506
+ "properties": {
507
+ "emit": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "export": {
514
+ "type": "object"
515
+ },
516
+ "redaction": {
517
+ "type": "object"
518
+ }
519
+ }
520
+ },
521
+ "mcp_server": {
522
+ "type": "object",
523
+ "additionalProperties": true,
524
+ "properties": {
525
+ "description": {
526
+ "type": "string"
527
+ },
528
+ "transport": {
529
+ "type": "string",
530
+ "enum": [
531
+ "stdio",
532
+ "streamable_http",
533
+ "sse",
534
+ "http",
535
+ "websocket"
536
+ ]
537
+ },
538
+ "command": {
539
+ "type": "string"
540
+ },
541
+ "args": {
542
+ "type": "array",
543
+ "items": {
544
+ "type": "string"
545
+ }
546
+ },
547
+ "url": {
548
+ "type": "string"
549
+ },
550
+ "capabilities": {
551
+ "type": "array",
552
+ "items": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ "auth": {
557
+ "type": "object"
558
+ }
559
+ }
560
+ },
561
+ "a2a_agent": {
562
+ "type": "object",
563
+ "additionalProperties": true,
564
+ "properties": {
565
+ "description": {
566
+ "type": "string"
567
+ },
568
+ "agent_card_url": {
569
+ "type": "string"
570
+ },
571
+ "skills": {
572
+ "type": "array",
573
+ "items": {
574
+ "type": "string"
575
+ }
576
+ },
577
+ "auth": {
578
+ "type": "object"
579
+ }
580
+ }
581
+ },
582
+ "a2a_server": {
583
+ "type": "object",
584
+ "additionalProperties": true,
585
+ "properties": {
586
+ "name": {
587
+ "type": "string"
588
+ },
589
+ "description": {
590
+ "type": "string"
591
+ },
592
+ "version": {
593
+ "type": "string"
594
+ },
595
+ "skills": {
596
+ "type": "array",
597
+ "items": {
598
+ "type": "object"
599
+ }
600
+ },
601
+ "auth": {
602
+ "type": "object"
603
+ }
604
+ }
605
+ },
606
+ "ui": {
607
+ "type": "object",
608
+ "additionalProperties": true,
609
+ "properties": {
610
+ "protocol": {
611
+ "type": "string"
612
+ },
613
+ "transport": {
614
+ "type": "string"
615
+ },
616
+ "session_model": {
617
+ "type": "string"
618
+ },
619
+ "events": {
620
+ "$ref": "#/$defs/events_config"
621
+ },
622
+ "state_schema": {
623
+ "type": "object"
624
+ }
625
+ }
626
+ }
627
+ }
628
+ }