@digipair/skill-dsp 0.98.0 → 0.98.3

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/schema.json CHANGED
@@ -43,833 +43,778 @@
43
43
  "schema": {
44
44
  "$ref": "#/components/schemas/AxAIModelInstance"
45
45
  }
46
- "name": "gpt-4o-mini",
47
- "config": {},
48
- "options": {}
49
46
  }
50
47
  }
51
48
  }
52
49
  }
53
50
  }
54
- }
55
- },
56
- "/modelOpenAI": {
57
- "post": {
58
- "tags": [
59
- "service"
60
- ],
61
- "summary": "OpenAI Model",
62
- "parameters": [
63
- {
64
- "name": "apiKey",
65
- "summary": "API Key",
66
- "required": false,
67
- "description": "OpenAI API Key",
68
- "schema": {
69
- "type": "string"
51
+ },
52
+ "/modelOpenAI": {
53
+ "post": {
54
+ "tags": [
55
+ "service"
56
+ ],
57
+ "summary": "OpenAI Model",
58
+ "parameters": [
59
+ {
60
+ "name": "apiKey",
61
+ "summary": "API Key",
62
+ "required": false,
63
+ "description": "OpenAI API Key",
64
+ "schema": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ {
69
+ "name": "apiURL",
70
+ "summary": "Server Address",
71
+ "required": false,
72
+ "description": "OpenAI server address",
73
+ "schema": {
74
+ "type": "object"
75
+ }
76
+ },
77
+ {
78
+ "name": "config",
79
+ "summary": "Configuration",
80
+ "required": false,
81
+ "description": "OpenAI model configuration",
82
+ "schema": {
83
+ "type": "object"
84
+ }
85
+ },
86
+ {
87
+ "name": "options",
88
+ "summary": "Options",
89
+ "required": false,
90
+ "description": "OpenAI model options",
91
+ "schema": {
92
+ "type": "object"
93
+ }
94
+ },
95
+ {
96
+ "name": "supportFor",
97
+ "summary": "Support for",
98
+ "required": false,
99
+ "description": "OpenAI model support for specific features",
100
+ "schema": {
101
+ "type": "object"
102
+ }
70
103
  }
71
- },
72
- {
73
- "name": "apiURL",
74
- "summary": "Server Address",
75
- "required": false,
76
- "description": "OpenAI server address",
77
- "schema": {
78
- "type": "object"
104
+ ],
105
+ "x-events": [],
106
+ "responses": {
107
+ "200": {
108
+ "description": "Successful response",
109
+ "content": {
110
+ "application/json": {
111
+ "schema": {
112
+ "$ref": "#/components/schemas/AxAIOpenAIModelInstance"
113
+ }
114
+ }
115
+ }
79
116
  }
80
- },
81
- {
82
- "name": "config",
83
- "summary": "Configuration",
84
- "required": false,
85
- "description": "OpenAI model configuration",
86
- "schema": {
87
- "type": "object"
117
+ }
118
+ }
119
+ },
120
+ "/modelAzureOpenAi": {
121
+ "post": {
122
+ "tags": [
123
+ "service"
124
+ ],
125
+ "summary": "Azure OpenAI Model",
126
+ "parameters": [
127
+ {
128
+ "name": "apiKey",
129
+ "summary": "API Key",
130
+ "required": false,
131
+ "description": "Azure OpenAI API Key",
132
+ "schema": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ {
137
+ "name": "resourceName",
138
+ "summary": "Resource Name",
139
+ "required": false,
140
+ "description": "Azure OpenAI resource name",
141
+ "schema": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ {
146
+ "name": "deploymentName",
147
+ "summary": "Deployment Name",
148
+ "required": false,
149
+ "description": "Azure OpenAI deployment name",
150
+ "schema": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ {
155
+ "name": "version",
156
+ "summary": "Version",
157
+ "required": false,
158
+ "description": "OpenAI API version",
159
+ "schema": {
160
+ "type": "string"
161
+ }
162
+ },
163
+ {
164
+ "name": "config",
165
+ "summary": "Configuration",
166
+ "required": false,
167
+ "description": "OpenAI model configuration",
168
+ "schema": {
169
+ "type": "object"
170
+ }
171
+ },
172
+ {
173
+ "name": "options",
174
+ "summary": "Options",
175
+ "required": false,
176
+ "description": "OpenAI model options",
177
+ "schema": {
178
+ "type": "object"
179
+ }
88
180
  }
89
- },
90
- {
91
- "name": "options",
92
- "summary": "Options",
93
- "required": false,
94
- "description": "OpenAI model options",
95
- "schema": {
96
- "type": "object"
181
+ ],
182
+ "x-events": [],
183
+ "responses": {
184
+ "200": {
185
+ "description": "Successful response",
186
+ "content": {
187
+ "application/json": {
188
+ "schema": {
189
+ "$ref": "#/components/schemas/AxAIAzureOpenAIModelInstance"
190
+ }
191
+ }
192
+ }
97
193
  }
98
- },
99
- {
100
- "name": "supportFor",
101
- "summary": "Support for",
102
- "required": false,
103
- "description": "OpenAI model support for specific features",
104
- "schema": {
105
- "type": "object"
194
+ }
195
+ }
196
+ },
197
+ "/modelOllama": {
198
+ "post": {
199
+ "tags": [
200
+ "service"
201
+ ],
202
+ "summary": "Ollama Model",
203
+ "parameters": [
204
+ {
205
+ "name": "model",
206
+ "summary": "Model",
207
+ "required": true,
208
+ "description": "Name of the Ollama model to use for generation",
209
+ "schema": {
210
+ "type": "string"
211
+ }
212
+ },
213
+ {
214
+ "name": "url",
215
+ "summary": "Server Address",
216
+ "required": false,
217
+ "description": "Address of the Ollama server to use for generation",
218
+ "schema": {
219
+ "type": "string"
220
+ }
221
+ },
222
+ {
223
+ "name": "apiKey",
224
+ "summary": "API Key",
225
+ "required": false,
226
+ "description": "Ollama API Key",
227
+ "schema": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ {
232
+ "name": "config",
233
+ "summary": "Configuration",
234
+ "required": false,
235
+ "description": "Ollama model configuration",
236
+ "schema": {
237
+ "type": "object"
238
+ }
239
+ },
240
+ {
241
+ "name": "options",
242
+ "summary": "Options",
243
+ "required": false,
244
+ "description": "Ollama model options",
245
+ "schema": {
246
+ "type": "object"
247
+ }
248
+ }
249
+ ],
250
+ "x-events": [],
251
+ "responses": {
252
+ "200": {
253
+ "description": "Successful response",
254
+ "content": {
255
+ "application/json": {
256
+ "schema": {
257
+ "$ref": "#/components/schemas/AxAIOllamaModelInstance"
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+ },
265
+ "/generate": {
266
+ "post": {
267
+ "tags": [
268
+ "service"
269
+ ],
270
+ "summary": "DSP Generation",
271
+ "parameters": [
272
+ {
273
+ "name": "model",
274
+ "summary": "Model",
275
+ "required": false,
276
+ "description": "LLM model to use for generation",
277
+ "schema": {
278
+ "type": "array",
279
+ "items": {
280
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "name": "streaming",
286
+ "summary": "Streaming",
287
+ "required": false,
288
+ "description": "Streaming event for the generation",
289
+ "schema": {
290
+ "type": "array",
291
+ "items": {
292
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
293
+ }
294
+ }
295
+ },
296
+ {
297
+ "name": "signature",
298
+ "summary": "Signature",
299
+ "required": true,
300
+ "description": "Signature of the data to extract",
301
+ "schema": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ {
306
+ "name": "input",
307
+ "summary": "Data to Process",
308
+ "required": true,
309
+ "description": "Input data to process",
310
+ "schema": {
311
+ "type": "object"
312
+ }
313
+ },
314
+ {
315
+ "name": "functions",
316
+ "summary": "DSP Functions",
317
+ "required": false,
318
+ "description": "Functions usable for generation",
319
+ "schema": {
320
+ "type": "array",
321
+ "items": {
322
+ "$ref": "#/components/schemas/Function"
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "name": "options",
328
+ "summary": "Options",
329
+ "required": false,
330
+ "description": "Generation options",
331
+ "schema": {
332
+ "type": "object"
333
+ }
334
+ }
335
+ ],
336
+ "x-events": [],
337
+ "responses": {
338
+ "200": {
339
+ "description": "Successful response",
340
+ "content": {
341
+ "application/json": {
342
+ "schema": {
343
+ "$ref": "#/components/schemas/GenerationResult"
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ }
350
+ },
351
+ "/chainOfThought": {
352
+ "post": {
353
+ "tags": [
354
+ "service"
355
+ ],
356
+ "summary": "DSP Chain of Thought",
357
+ "parameters": [
358
+ {
359
+ "name": "model",
360
+ "summary": "Model",
361
+ "required": false,
362
+ "description": "LLM model to use for generation",
363
+ "schema": {
364
+ "type": "array",
365
+ "items": {
366
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
367
+ }
368
+ }
369
+ },
370
+ {
371
+ "name": "streaming",
372
+ "summary": "Streaming",
373
+ "required": false,
374
+ "description": "Streaming event for the generation",
375
+ "schema": {
376
+ "type": "array",
377
+ "items": {
378
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
379
+ }
380
+ }
381
+ },
382
+ {
383
+ "name": "signature",
384
+ "summary": "Signature",
385
+ "required": true,
386
+ "description": "Signature of the data to extract",
387
+ "schema": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ {
392
+ "name": "input",
393
+ "summary": "Data to Process",
394
+ "required": true,
395
+ "description": "Input data to process",
396
+ "schema": {
397
+ "type": "object"
398
+ }
399
+ },
400
+ {
401
+ "name": "functions",
402
+ "summary": "DSP Functions",
403
+ "required": false,
404
+ "description": "Functions usable for the chain of thought",
405
+ "schema": {
406
+ "type": "array",
407
+ "items": {
408
+ "$ref": "#/components/schemas/Function"
409
+ }
410
+ }
411
+ },
412
+ {
413
+ "name": "options",
414
+ "summary": "Options",
415
+ "required": false,
416
+ "description": "Generation options",
417
+ "schema": {
418
+ "type": "object"
419
+ }
420
+ }
421
+ ],
422
+ "x-events": [],
423
+ "responses": {
424
+ "200": {
425
+ "description": "Successful response",
426
+ "content": {
427
+ "application/json": {
428
+ "schema": {
429
+ "$ref": "#/components/schemas/ChainOfThoughtResult"
430
+ }
431
+ }
432
+ }
106
433
  }
107
434
  }
108
- ],
109
- "x-events": [],
110
- "responses": {
111
- "200": {
112
- "description": "Successful response",
113
- "content": {
114
- "application/json": {
115
- "schema": {
116
- "$ref": "#/components/schemas/AxAIOpenAIModelInstance"
435
+ }
436
+ },
437
+ "/agent": {
438
+ "post": {
439
+ "tags": [
440
+ "service"
441
+ ],
442
+ "summary": "DSP Agent",
443
+ "parameters": [
444
+ {
445
+ "name": "model",
446
+ "summary": "Model",
447
+ "required": false,
448
+ "description": "LLM model to use for generation",
449
+ "schema": {
450
+ "type": "array",
451
+ "items": {
452
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
453
+ }
454
+ }
455
+ },
456
+ {
457
+ "name": "streaming",
458
+ "summary": "Streaming",
459
+ "required": false,
460
+ "description": "Streaming event for the generation",
461
+ "schema": {
462
+ "type": "array",
463
+ "items": {
464
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
465
+ }
466
+ }
467
+ },
468
+ {
469
+ "name": "name",
470
+ "summary": "Name",
471
+ "required": true,
472
+ "description": "Name of the agent",
473
+ "schema": {
474
+ "type": "string"
475
+ }
476
+ },
477
+ {
478
+ "name": "description",
479
+ "summary": "Description",
480
+ "required": true,
481
+ "description": "Description of the agent",
482
+ "schema": {
483
+ "type": "string"
484
+ }
485
+ },
486
+ {
487
+ "name": "signature",
488
+ "summary": "Signature",
489
+ "required": true,
490
+ "description": "Signature of the data to extract",
491
+ "schema": {
492
+ "type": "string"
493
+ }
494
+ },
495
+ {
496
+ "name": "input",
497
+ "summary": "Data to Process",
498
+ "required": false,
499
+ "description": "Input data to process",
500
+ "schema": {
501
+ "type": "object"
502
+ }
503
+ },
504
+ {
505
+ "name": "functions",
506
+ "summary": "DSP Functions",
507
+ "required": false,
508
+ "description": "Functions usable for generation",
509
+ "schema": {
510
+ "type": "array",
511
+ "items": {
512
+ "$ref": "#/components/schemas/Function"
117
513
  }
118
- "apiKey": "sk-...",
119
- "apiURL": "https://api.openai.com/v1",
120
- "modelInfo": {},
121
- "config": {
122
- "model": "gpt-4o-mini"
123
- },
124
- "supportFor": {
125
- "functions": true,
126
- "streaming": true,
127
- "hasThinkingBudget": false,
128
- "hasShowThoughts": false
514
+ }
515
+ },
516
+ {
517
+ "name": "agents",
518
+ "summary": "DSP Agents",
519
+ "required": false,
520
+ "description": "Other agents usable by the agent",
521
+ "schema": {
522
+ "type": "array",
523
+ "items": {
524
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
525
+ }
526
+ }
527
+ },
528
+ {
529
+ "name": "options",
530
+ "summary": "Options",
531
+ "required": false,
532
+ "description": "Generation options",
533
+ "schema": {
534
+ "type": "object"
535
+ }
536
+ }
537
+ ],
538
+ "x-events": [],
539
+ "responses": {
540
+ "200": {
541
+ "description": "Successful response",
542
+ "content": {
543
+ "application/json": {
544
+ "schema": {
545
+ "oneOf": [
546
+ {
547
+ "$ref": "#/components/schemas/AgentResult"
548
+ },
549
+ {
550
+ "$ref": "#/components/schemas/AxAgentInstance"
551
+ }
552
+ ]
553
+ }
129
554
  }
130
555
  }
131
556
  }
132
557
  }
133
558
  }
134
559
  }
135
- }
136
- },
137
- "/modelAzureOpenAi": {
138
- "post": {
139
- "tags": [
140
- "service"
141
- ],
142
- "summary": "Azure OpenAI Model",
143
- "parameters": [
144
- {
145
- "name": "apiKey",
146
- "summary": "API Key",
147
- "required": false,
148
- "description": "Azure OpenAI API Key",
149
- "schema": {
150
- "type": "string"
560
+ },
561
+ "components": {
562
+ "schemas": {
563
+ "Function": {
564
+ "tags": [
565
+ "service"
566
+ ],
567
+ "summary": "DSP Function",
568
+ "type": "object",
569
+ "properties": {
570
+ "name": {
571
+ "type": "string"
572
+ },
573
+ "description": {
574
+ "type": "string"
575
+ },
576
+ "parameters": {
577
+ "type": "object"
578
+ },
579
+ "func": {
580
+ "type": "array",
581
+ "items": {
582
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
583
+ }
584
+ }
585
+ },
586
+ "required": [
587
+ "name",
588
+ "description",
589
+ "parameters",
590
+ "func"
591
+ ]
592
+ },
593
+ "AxAIModelInstance": {
594
+ "tags": [],
595
+ "type": "object",
596
+ "description": "Generic AxAI model instance",
597
+ "properties": {
598
+ "name": {
599
+ "type": "string",
600
+ "description": "Model name"
601
+ },
602
+ "config": {
603
+ "type": "object",
604
+ "description": "Model configuration"
605
+ },
606
+ "options": {
607
+ "type": "object",
608
+ "description": "Model options"
609
+ }
151
610
  }
152
611
  },
153
- {
154
- "name": "resourceName",
155
- "summary": "Resource Name",
156
- "required": false,
157
- "description": "Azure OpenAI resource name",
158
- "schema": {
159
- "type": "string"
612
+ "AxAIOpenAIModelInstance": {
613
+ "tags": [],
614
+ "type": "object",
615
+ "description": "OpenAI model instance",
616
+ "properties": {
617
+ "apiKey": {
618
+ "type": "string",
619
+ "description": "OpenAI API key"
620
+ },
621
+ "apiURL": {
622
+ "type": "string",
623
+ "description": "OpenAI API URL"
624
+ },
625
+ "modelInfo": {
626
+ "type": "object",
627
+ "description": "Model information"
628
+ },
629
+ "config": {
630
+ "type": "object",
631
+ "description": "Model configuration"
632
+ },
633
+ "supportFor": {
634
+ "type": "object",
635
+ "description": "Supported features"
636
+ }
160
637
  }
161
638
  },
162
- {
163
- "name": "deploymentName",
164
- "summary": "Deployment Name",
165
- "required": false,
166
- "description": "Azure OpenAI deployment name",
167
- "schema": {
168
- "type": "string"
639
+ "AxAIAzureOpenAIModelInstance": {
640
+ "tags": [],
641
+ "type": "object",
642
+ "description": "Azure OpenAI model instance",
643
+ "properties": {
644
+ "apiKey": {
645
+ "type": "string",
646
+ "description": "Azure OpenAI API key"
647
+ },
648
+ "resourceName": {
649
+ "type": "string",
650
+ "description": "Azure resource name"
651
+ },
652
+ "deploymentName": {
653
+ "type": "string",
654
+ "description": "Deployment name"
655
+ },
656
+ "version": {
657
+ "type": "string",
658
+ "description": "API version"
659
+ },
660
+ "config": {
661
+ "type": "object",
662
+ "description": "Model configuration"
663
+ },
664
+ "options": {
665
+ "type": "object",
666
+ "description": "Model options"
667
+ }
169
668
  }
170
669
  },
171
- {
172
- "name": "version",
173
- "summary": "Version",
174
- "required": false,
175
- "description": "OpenAI API version",
176
- "schema": {
177
- "type": "string"
670
+ "AxAIOllamaModelInstance": {
671
+ "tags": [],
672
+ "type": "object",
673
+ "description": "Ollama model instance",
674
+ "properties": {
675
+ "model": {
676
+ "type": "string",
677
+ "description": "Model name"
678
+ },
679
+ "url": {
680
+ "type": "string",
681
+ "description": "Ollama server URL"
682
+ },
683
+ "apiKey": {
684
+ "type": [
685
+ "string",
686
+ "null"
687
+ ],
688
+ "description": "API key (if required)"
689
+ },
690
+ "config": {
691
+ "type": "object",
692
+ "description": "Model configuration"
693
+ },
694
+ "options": {
695
+ "type": "object",
696
+ "description": "Model options"
697
+ }
178
698
  }
179
699
  },
180
- {
181
- "name": "config",
182
- "summary": "Configuration",
183
- "required": false,
184
- "description": "OpenAI model configuration",
185
- "schema": {
186
- "type": "object"
700
+ "GenerationResult": {
701
+ "tags": [],
702
+ "type": "object",
703
+ "description": "Generation result from DSP",
704
+ "properties": {
705
+ "text": {
706
+ "type": "string",
707
+ "description": "Generated text"
708
+ },
709
+ "data": {
710
+ "type": "object",
711
+ "description": "Extracted structured data"
712
+ },
713
+ "functions": {
714
+ "type": "array",
715
+ "description": "Function calls made during generation",
716
+ "items": {
717
+ "type": "object"
718
+ }
719
+ },
720
+ "reasoning": {
721
+ "type": "string",
722
+ "description": "Reasoning process"
723
+ }
187
724
  }
188
725
  },
189
- {
190
- "name": "options",
191
- "summary": "Options",
192
- "required": false,
193
- "description": "OpenAI model options",
194
- "schema": {
195
- "type": "object"
726
+ "ChainOfThoughtResult": {
727
+ "tags": [],
728
+ "type": "object",
729
+ "description": "Chain of thought result from DSP",
730
+ "properties": {
731
+ "text": {
732
+ "type": "string",
733
+ "description": "Generated text with reasoning"
734
+ },
735
+ "data": {
736
+ "type": "object",
737
+ "description": "Extracted structured data"
738
+ },
739
+ "thoughts": {
740
+ "type": "array",
741
+ "description": "Chain of thought steps",
742
+ "items": {
743
+ "type": "string"
744
+ }
745
+ },
746
+ "functions": {
747
+ "type": "array",
748
+ "description": "Function calls made during generation",
749
+ "items": {
750
+ "type": "object"
751
+ }
752
+ }
196
753
  }
197
- }
198
- ],
199
- "x-events": [],
200
- "responses": {
201
- "200": {
202
- "description": "Successful response",
203
- "content": {
204
- "application/json": {
205
- "schema": {
206
- "$ref": "#/components/schemas/AxAIAzureOpenAIModelInstance"
207
- }
208
- "apiKey": "your-azure-api-key",
209
- "resourceName": "your-azure-resource",
210
- "deploymentName": "your-deployment",
211
- "version": "2023-05-15",
212
- "config": {},
213
- "options": {}
754
+ },
755
+ "AgentResult": {
756
+ "tags": [],
757
+ "type": "object",
758
+ "description": "Agent execution result",
759
+ "properties": {
760
+ "text": {
761
+ "type": "string",
762
+ "description": "Agent response text"
763
+ },
764
+ "data": {
765
+ "type": "object",
766
+ "description": "Task result data"
767
+ },
768
+ "agents_used": {
769
+ "type": "array",
770
+ "description": "Other agents used in execution",
771
+ "items": {
772
+ "type": "string"
773
+ }
774
+ },
775
+ "functions": {
776
+ "type": "array",
777
+ "description": "Function calls made during execution",
778
+ "items": {
779
+ "type": "object"
780
+ }
214
781
  }
215
782
  }
216
- }
217
- }
218
- }
219
- }
220
- },
221
- "/modelOllama": {
222
- "post": {
223
- "tags": [
224
- "service"
225
- ],
226
- "summary": "Ollama Model",
227
- "parameters": [
228
- {
229
- "name": "model",
230
- "summary": "Model",
231
- "required": true,
232
- "description": "Name of the Ollama model to use for generation",
233
- "schema": {
234
- "type": "string"
235
- }
236
- },
237
- {
238
- "name": "url",
239
- "summary": "Server Address",
240
- "required": false,
241
- "description": "Address of the Ollama server to use for generation",
242
- "schema": {
243
- "type": "string"
244
- }
245
- },
246
- {
247
- "name": "apiKey",
248
- "summary": "API Key",
249
- "required": false,
250
- "description": "Ollama API Key",
251
- "schema": {
252
- "type": "string"
253
- }
254
- },
255
- {
256
- "name": "config",
257
- "summary": "Configuration",
258
- "required": false,
259
- "description": "Ollama model configuration",
260
- "schema": {
261
- "type": "object"
262
- }
263
- },
264
- {
265
- "name": "options",
266
- "summary": "Options",
267
- "required": false,
268
- "description": "Ollama model options",
269
- "schema": {
270
- "type": "object"
271
- }
272
- }
273
- ],
274
- "x-events": [],
275
- "responses": {
276
- "200": {
277
- "description": "Successful response",
278
- "content": {
279
- "application/json": {
280
- "schema": {
281
- "$ref": "#/components/schemas/AxAIOllamaModelInstance"
783
+ },
784
+ "AxAgentInstance": {
785
+ "tags": [],
786
+ "type": "object",
787
+ "description": "Agent instance (when forward=false)",
788
+ "properties": {
789
+ "name": {
790
+ "type": "string",
791
+ "description": "Agent name"
792
+ },
793
+ "description": {
794
+ "type": "string",
795
+ "description": "Agent description"
796
+ },
797
+ "signature": {
798
+ "type": "string",
799
+ "description": "Agent signature"
800
+ },
801
+ "functions": {
802
+ "type": "array",
803
+ "description": "Available functions",
804
+ "items": {
805
+ "$ref": "#/components/schemas/Function"
806
+ }
807
+ },
808
+ "agents": {
809
+ "type": "array",
810
+ "description": "Sub-agents",
811
+ "items": {
812
+ "type": "object"
813
+ }
282
814
  }
283
- "model": "llama2",
284
- "url": "http://localhost:11434/v1",
285
- "apiKey": null,
286
- "config": {},
287
- "options": {}
288
815
  }
289
816
  }
290
817
  }
291
- }
292
- }
293
- }
294
- },
295
- "/generate": {
296
- "post": {
297
- "tags": [
298
- "service"
299
- ],
300
- "summary": "DSP Generation",
301
- "parameters": [
302
- {
303
- "name": "model",
304
- "summary": "Model",
305
- "required": false,
306
- "description": "LLM model to use for generation",
307
- "schema": {
308
- "type": "array",
309
- "items": {
310
- "$ref": "https://schemas.digipair.ai/pinsSettings"
311
- }
312
- }
313
- },
314
- {
315
- "name": "streaming",
316
- "summary": "Streaming",
317
- "required": false,
318
- "description": "Streaming event for the generation",
319
- "schema": {
320
- "type": "array",
321
- "items": {
322
- "$ref": "https://schemas.digipair.ai/pinsSettings"
323
- }
324
- }
325
- },
326
- {
327
- "name": "signature",
328
- "summary": "Signature",
329
- "required": true,
330
- "description": "Signature of the data to extract",
331
- "schema": {
332
- "type": "string"
333
- }
334
- },
335
- {
336
- "name": "input",
337
- "summary": "Data to Process",
338
- "required": true,
339
- "description": "Input data to process",
340
- "schema": {
341
- "type": "object"
342
- }
343
- },
344
- {
345
- "name": "functions",
346
- "summary": "DSP Functions",
347
- "required": false,
348
- "description": "Functions usable for generation",
349
- "schema": {
350
- "type": "array",
351
- "items": {
352
- "$ref": "#/components/schemas/Function"
353
- }
354
- }
355
818
  },
356
- {
357
- "name": "options",
358
- "summary": "Options",
359
- "required": false,
360
- "description": "Generation options",
361
- "schema": {
362
- "type": "object"
363
- }
364
- }
365
- ],
366
- "x-events": [],
367
- "responses": {
368
- "200": {
369
- "description": "Successful response",
370
- "content": {
371
- "application/json": {
372
- "schema": {
373
- "$ref": "#/components/schemas/GenerationResult"
374
- }
375
- "text": "Generated response text",
376
- "data": {
377
- "field1": "extracted value 1",
378
- "field2": "extracted value 2"
379
- },
380
- "functions": [],
381
- "reasoning": "Step-by-step reasoning process"
382
- }
383
- }
384
- }
385
- }
386
- }
387
- }
388
- },
389
- "/chainOfThought": {
390
- "post": {
391
- "tags": [
392
- "service"
393
- ],
394
- "summary": "DSP Chain of Thought",
395
- "parameters": [
396
- {
397
- "name": "model",
398
- "summary": "Model",
399
- "required": false,
400
- "description": "LLM model to use for generation",
401
- "schema": {
402
- "type": "array",
403
- "items": {
404
- "$ref": "https://schemas.digipair.ai/pinsSettings"
405
- }
406
- }
407
- },
408
- {
409
- "name": "streaming",
410
- "summary": "Streaming",
411
- "required": false,
412
- "description": "Streaming event for the generation",
413
- "schema": {
414
- "type": "array",
415
- "items": {
416
- "$ref": "https://schemas.digipair.ai/pinsSettings"
417
- }
418
- }
419
- },
420
- {
421
- "name": "signature",
422
- "summary": "Signature",
423
- "required": true,
424
- "description": "Signature of the data to extract",
425
- "schema": {
426
- "type": "string"
427
- }
428
- },
429
- {
430
- "name": "input",
431
- "summary": "Data to Process",
432
- "required": true,
433
- "description": "Input data to process",
434
- "schema": {
435
- "type": "object"
436
- }
437
- },
438
- {
439
- "name": "functions",
440
- "summary": "DSP Functions",
441
- "required": false,
442
- "description": "Functions usable for the chain of thought",
443
- "schema": {
444
- "type": "array",
445
- "items": {
446
- "$ref": "#/components/schemas/Function"
447
- }
448
- }
449
- },
450
- {
451
- "name": "options",
452
- "summary": "Options",
453
- "required": false,
454
- "description": "Generation options",
455
- "schema": {
456
- "type": "object"
457
- }
458
- }
459
- ],
460
- "x-events": [],
461
- "responses": {
462
- "200": {
463
- "description": "Successful response",
464
- "content": {
465
- "application/json": {
466
- "schema": {
467
- "$ref": "#/components/schemas/ChainOfThoughtResult"
468
- }
469
- "text": "Chain of thought response",
470
- "data": {
471
- "reasoning": "Detailed reasoning steps",
472
- "conclusion": "Final conclusion"
473
- },
474
- "thoughts": [
475
- "First thought",
476
- "Second thought",
477
- "Final thought"
478
- ],
479
- "functions": []
480
- }
481
- }
482
- }
483
- }
484
- }
485
- }
486
- },
487
- "/agent": {
488
- "post": {
489
- "tags": [
490
- "service"
491
- ],
492
- "summary": "DSP Agent",
493
- "parameters": [
494
- {
495
- "name": "model",
496
- "summary": "Model",
497
- "required": false,
498
- "description": "LLM model to use for generation",
499
- "schema": {
500
- "type": "array",
501
- "items": {
502
- "$ref": "https://schemas.digipair.ai/pinsSettings"
503
- }
504
- }
505
- },
506
- {
507
- "name": "streaming",
508
- "summary": "Streaming",
509
- "required": false,
510
- "description": "Streaming event for the generation",
511
- "schema": {
512
- "type": "array",
513
- "items": {
514
- "$ref": "https://schemas.digipair.ai/pinsSettings"
515
- }
516
- }
517
- },
518
- {
519
- "name": "name",
520
- "summary": "Name",
521
- "required": true,
522
- "description": "Name of the agent",
523
- "schema": {
524
- "type": "string"
525
- }
526
- },
527
- {
528
- "name": "description",
529
- "summary": "Description",
530
- "required": true,
531
- "description": "Description of the agent",
532
- "schema": {
533
- "type": "string"
534
- }
535
- },
536
- {
537
- "name": "signature",
538
- "summary": "Signature",
539
- "required": true,
540
- "description": "Signature of the data to extract",
541
- "schema": {
542
- "type": "string"
543
- }
544
- },
545
- {
546
- "name": "input",
547
- "summary": "Data to Process",
548
- "required": false,
549
- "description": "Input data to process",
550
- "schema": {
551
- "type": "object"
552
- }
553
- },
554
- {
555
- "name": "functions",
556
- "summary": "DSP Functions",
557
- "required": false,
558
- "description": "Functions usable for generation",
559
- "schema": {
560
- "type": "array",
561
- "items": {
562
- "$ref": "#/components/schemas/Function"
563
- }
564
- }
565
- },
566
- {
567
- "name": "agents",
568
- "summary": "DSP Agents",
569
- "required": false,
570
- "description": "Other agents usable by the agent",
571
- "schema": {
572
- "type": "array",
573
- "items": {
574
- "$ref": "https://schemas.digipair.ai/pinsSettings"
575
- }
576
- }
577
- },
578
- {
579
- "name": "options",
580
- "summary": "Options",
581
- "required": false,
582
- "description": "Generation options",
583
- "schema": {
584
- "type": "object"
585
- }
586
- }
587
- ],
588
- "x-events": [],
589
- "responses": {
590
- "200": {
591
- "description": "Successful response",
592
- "content": {
593
- "application/json": {
594
- "schema": {
595
- "oneOf": [
596
- {
597
- "$ref": "#/components/schemas/AgentResult"
598
- },
599
- {
600
- "$ref": "#/components/schemas/AxAgentInstance"
601
- }
602
- ]
603
- }
604
- "text": "Agent response",
605
- "data": {
606
- "task_result": "Completed task successfully",
607
- "actions_taken": [
608
- "action1",
609
- "action2"
610
- ]
611
- },
612
- "agents_used": [
613
- "helper_agent_1"
614
- ],
615
- "functions": []
616
- }
617
- }
618
- }
619
- }
620
- }
621
- }
622
- }
623
- },
624
- "components": {
625
- "schemas": {
626
- "Function": {
627
- "tags": [
628
- "service"
629
- ],
630
- "summary": "DSP Function",
631
- "type": "object",
632
- "properties": {
633
- "name": {
634
- "type": "string"
635
- },
636
- "description": {
637
- "type": "string"
638
- },
639
- "parameters": {
640
- "type": "object"
641
- },
642
- "func": {
643
- "type": "array",
644
- "items": {
645
- "$ref": "https://schemas.digipair.ai/pinsSettings"
646
- }
647
- }
648
- },
649
- "required": [
650
- "name",
651
- "description",
652
- "parameters",
653
- "func"
654
- ]
655
- },
656
- "AxAIModelInstance": {
657
- "type": "object",
658
- "description": "Generic AxAI model instance",
659
- "properties": {
660
- "name": {
661
- "type": "string",
662
- "description": "Model name"
663
- },
664
- "config": {
665
- "type": "object",
666
- "description": "Model configuration"
667
- },
668
- "options": {
669
- "type": "object",
670
- "description": "Model options"
671
- }
672
- }
673
- },
674
- "AxAIOpenAIModelInstance": {
675
- "type": "object",
676
- "description": "OpenAI model instance",
677
- "properties": {
678
- "apiKey": {
679
- "type": "string",
680
- "description": "OpenAI API key"
681
- },
682
- "apiURL": {
683
- "type": "string",
684
- "description": "OpenAI API URL"
685
- },
686
- "modelInfo": {
687
- "type": "object",
688
- "description": "Model information"
689
- },
690
- "config": {
691
- "type": "object",
692
- "description": "Model configuration"
693
- },
694
- "supportFor": {
695
- "type": "object",
696
- "description": "Supported features"
697
- }
698
- }
699
- },
700
- "AxAIAzureOpenAIModelInstance": {
701
- "type": "object",
702
- "description": "Azure OpenAI model instance",
703
- "properties": {
704
- "apiKey": {
705
- "type": "string",
706
- "description": "Azure OpenAI API key"
707
- },
708
- "resourceName": {
709
- "type": "string",
710
- "description": "Azure resource name"
711
- },
712
- "deploymentName": {
713
- "type": "string",
714
- "description": "Deployment name"
715
- },
716
- "version": {
717
- "type": "string",
718
- "description": "API version"
719
- },
720
- "config": {
721
- "type": "object",
722
- "description": "Model configuration"
723
- },
724
- "options": {
725
- "type": "object",
726
- "description": "Model options"
727
- }
728
- }
729
- },
730
- "AxAIOllamaModelInstance": {
731
- "type": "object",
732
- "description": "Ollama model instance",
733
- "properties": {
734
- "model": {
735
- "type": "string",
736
- "description": "Model name"
737
- },
738
- "url": {
739
- "type": "string",
740
- "description": "Ollama server URL"
741
- },
742
- "apiKey": {
743
- "type": [
744
- "string",
745
- "null"
746
- ],
747
- "description": "API key (if required)"
748
- },
749
- "config": {
750
- "type": "object",
751
- "description": "Model configuration"
752
- },
753
- "options": {
754
- "type": "object",
755
- "description": "Model options"
756
- }
757
- }
758
- },
759
- "GenerationResult": {
760
- "type": "object",
761
- "description": "Generation result from DSP",
762
- "properties": {
763
- "text": {
764
- "type": "string",
765
- "description": "Generated text"
766
- },
767
- "data": {
768
- "type": "object",
769
- "description": "Extracted structured data"
770
- },
771
- "functions": {
772
- "type": "array",
773
- "description": "Function calls made during generation",
774
- "items": {
775
- "type": "object"
776
- }
777
- },
778
- "reasoning": {
779
- "type": "string",
780
- "description": "Reasoning process"
781
- }
782
- }
783
- },
784
- "ChainOfThoughtResult": {
785
- "type": "object",
786
- "description": "Chain of thought result from DSP",
787
- "properties": {
788
- "text": {
789
- "type": "string",
790
- "description": "Generated text with reasoning"
791
- },
792
- "data": {
793
- "type": "object",
794
- "description": "Extracted structured data"
795
- },
796
- "thoughts": {
797
- "type": "array",
798
- "description": "Chain of thought steps",
799
- "items": {
800
- "type": "string"
801
- }
802
- },
803
- "functions": {
804
- "type": "array",
805
- "description": "Function calls made during generation",
806
- "items": {
807
- "type": "object"
808
- }
809
- }
810
- }
811
- },
812
- "AgentResult": {
813
- "type": "object",
814
- "description": "Agent execution result",
815
- "properties": {
816
- "text": {
817
- "type": "string",
818
- "description": "Agent response text"
819
- },
820
- "data": {
821
- "type": "object",
822
- "description": "Task result data"
823
- },
824
- "agents_used": {
825
- "type": "array",
826
- "description": "Other agents used in execution",
827
- "items": {
828
- "type": "string"
829
- }
830
- },
831
- "functions": {
832
- "type": "array",
833
- "description": "Function calls made during execution",
834
- "items": {
835
- "type": "object"
836
- }
837
- }
838
- }
839
- },
840
- "AxAgentInstance": {
841
- "type": "object",
842
- "description": "Agent instance (when forward=false)",
843
- "properties": {
844
- "name": {
845
- "type": "string",
846
- "description": "Agent name"
847
- },
848
- "description": {
849
- "type": "string",
850
- "description": "Agent description"
851
- },
852
- "signature": {
853
- "type": "string",
854
- "description": "Agent signature"
855
- },
856
- "functions": {
857
- "type": "array",
858
- "description": "Available functions",
859
- "items": {
860
- "$ref": "#/components/schemas/Function"
861
- }
862
- },
863
- "agents": {
864
- "type": "array",
865
- "description": "Sub-agents",
866
- "items": {
867
- "type": "object"
868
- }
869
- }
870
- }
871
- }
872
- }
873
- },
874
- "x-scene-blocks": {}
819
+ "x-scene-blocks": {}
875
820
  }