@cognipeer/agent-sdk 0.20.0 → 0.22.1
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/LICENSE +21 -0
- package/README.md +23 -2
- package/dist/index.cjs +17305 -15542
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +336 -22
- package/dist/index.d.ts +336 -22
- package/dist/index.mjs +17305 -15542
- package/dist/index.mjs.map +1 -1
- package/dist/{model-rules--welxWDw.d.cts → model-rules-D6teB4rU.d.cts} +136 -16
- package/dist/{model-rules--welxWDw.d.ts → model-rules-D6teB4rU.d.ts} +136 -16
- package/dist/model-rules.cjs +283 -10
- package/dist/model-rules.cjs.map +1 -1
- package/dist/model-rules.d.cts +1 -1
- package/dist/model-rules.d.ts +1 -1
- package/dist/model-rules.json +268 -9
- package/dist/model-rules.mjs +283 -10
- package/dist/model-rules.mjs.map +1 -1
- package/package.json +8 -3
package/dist/model-rules.json
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
"xhigh": 24576,
|
|
18
18
|
"max": 32768
|
|
19
19
|
},
|
|
20
|
+
"adaptiveMaxTokens": {
|
|
21
|
+
"minimal": 4096,
|
|
22
|
+
"low": 8192,
|
|
23
|
+
"medium": 16384,
|
|
24
|
+
"high": 32768,
|
|
25
|
+
"xhigh": 64000,
|
|
26
|
+
"max": 64000
|
|
27
|
+
},
|
|
20
28
|
"geminiBudgets": {
|
|
21
29
|
"minimal": 512,
|
|
22
30
|
"low": 1024,
|
|
@@ -303,7 +311,8 @@
|
|
|
303
311
|
"xhigh",
|
|
304
312
|
"max"
|
|
305
313
|
],
|
|
306
|
-
"off": "disabled"
|
|
314
|
+
"off": "disabled",
|
|
315
|
+
"defaultOn": true
|
|
307
316
|
},
|
|
308
317
|
"sampling": {
|
|
309
318
|
"temperature": "unsupported",
|
|
@@ -317,7 +326,7 @@
|
|
|
317
326
|
"reasoning": "any"
|
|
318
327
|
},
|
|
319
328
|
"source": "verified-2026-10-14",
|
|
320
|
-
"note": "Claude Haiku 5.x: thinking:{type:adaptive} + output_config.effort; thinking:{type:enabled,budget_tokens} is rejected. Off = thinking:{type:disabled}. Sampling params are rejected."
|
|
329
|
+
"note": "Claude Haiku 5.x: thinking:{type:adaptive} + output_config.effort; thinking:{type:enabled,budget_tokens} is rejected. Off = thinking:{type:disabled}. Sampling params are rejected. Thinks by default with display omitted (empty text): includeThoughts alone sends adaptive + display summarized."
|
|
321
330
|
},
|
|
322
331
|
{
|
|
323
332
|
"id": "claude-sonnet-5",
|
|
@@ -332,7 +341,8 @@
|
|
|
332
341
|
"xhigh",
|
|
333
342
|
"max"
|
|
334
343
|
],
|
|
335
|
-
"off": "between_tools"
|
|
344
|
+
"off": "between_tools",
|
|
345
|
+
"defaultOn": true
|
|
336
346
|
},
|
|
337
347
|
"sampling": {
|
|
338
348
|
"temperature": "unsupported",
|
|
@@ -346,7 +356,7 @@
|
|
|
346
356
|
"reasoning": "any"
|
|
347
357
|
},
|
|
348
358
|
"source": "verified-2026-10-14",
|
|
349
|
-
"note": "Claude Sonnet 5.x: adaptive + output_config.effort. thinking:{type:disabled} is rejected; off = thinking:{type:between_tools}. Sampling params are rejected."
|
|
359
|
+
"note": "Claude Sonnet 5.x: adaptive + output_config.effort. thinking:{type:disabled} is rejected; off = thinking:{type:between_tools}. Sampling params are rejected. Thinks by default with display omitted (empty text): includeThoughts alone sends adaptive + display summarized."
|
|
350
360
|
},
|
|
351
361
|
{
|
|
352
362
|
"id": "claude-opus-5",
|
|
@@ -361,7 +371,8 @@
|
|
|
361
371
|
"xhigh",
|
|
362
372
|
"max"
|
|
363
373
|
],
|
|
364
|
-
"off": null
|
|
374
|
+
"off": null,
|
|
375
|
+
"defaultOn": true
|
|
365
376
|
},
|
|
366
377
|
"sampling": {
|
|
367
378
|
"temperature": "unsupported",
|
|
@@ -375,12 +386,12 @@
|
|
|
375
386
|
"reasoning": "any"
|
|
376
387
|
},
|
|
377
388
|
"source": "verified-2026-10-14",
|
|
378
|
-
"note": "Claude Opus 5.x: adaptive + output_config.effort; thinking cannot be turned off (none maps to the lowest effort). Sampling params are rejected."
|
|
389
|
+
"note": "Claude Opus 5.x: adaptive + output_config.effort; thinking cannot be turned off (none maps to the lowest effort). Sampling params are rejected. Thinks by default with display omitted (empty text): includeThoughts alone sends adaptive + display summarized."
|
|
379
390
|
},
|
|
380
391
|
{
|
|
381
392
|
"id": "claude-fable",
|
|
382
393
|
"family": "anthropic",
|
|
383
|
-
"match": "^claude-fable",
|
|
394
|
+
"match": "^claude-(?:fable|mythos-5)",
|
|
384
395
|
"reasoning": {
|
|
385
396
|
"style": "adaptive",
|
|
386
397
|
"efforts": [
|
|
@@ -390,7 +401,8 @@
|
|
|
390
401
|
"xhigh",
|
|
391
402
|
"max"
|
|
392
403
|
],
|
|
393
|
-
"off": null
|
|
404
|
+
"off": null,
|
|
405
|
+
"defaultOn": true
|
|
394
406
|
},
|
|
395
407
|
"sampling": {
|
|
396
408
|
"temperature": "unsupported",
|
|
@@ -404,7 +416,37 @@
|
|
|
404
416
|
"reasoning": "any"
|
|
405
417
|
},
|
|
406
418
|
"source": "docs",
|
|
407
|
-
"note": "Claude Fable
|
|
419
|
+
"note": "Claude Fable and Mythos 5 lines (5, 5.1): thinking is always on (disabled and budget_tokens are 400s), so treated like the 5.x adaptive models: effort low..max, sampling params rejected, display omitted by default (includeThoughts alone sends adaptive + display summarized)."
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"id": "claude-mythos-preview",
|
|
423
|
+
"family": "anthropic",
|
|
424
|
+
"match": "^claude-mythos-preview",
|
|
425
|
+
"reasoning": {
|
|
426
|
+
"style": "budget",
|
|
427
|
+
"efforts": [
|
|
428
|
+
"minimal",
|
|
429
|
+
"low",
|
|
430
|
+
"medium",
|
|
431
|
+
"high",
|
|
432
|
+
"xhigh",
|
|
433
|
+
"max"
|
|
434
|
+
],
|
|
435
|
+
"off": null
|
|
436
|
+
},
|
|
437
|
+
"sampling": {
|
|
438
|
+
"temperature": "thinking-requires-1",
|
|
439
|
+
"topP": true,
|
|
440
|
+
"topK": true,
|
|
441
|
+
"penalties": true,
|
|
442
|
+
"logprobs": true
|
|
443
|
+
},
|
|
444
|
+
"maxTokensParam": "max_tokens",
|
|
445
|
+
"chatTools": {
|
|
446
|
+
"reasoning": "any"
|
|
447
|
+
},
|
|
448
|
+
"source": "docs",
|
|
449
|
+
"note": "Claude Mythos Preview: the one 4.7+ model that still takes extended thinking (budget_tokens). Thinking cannot be disabled (type disabled is a 400) and defaults to adaptive when a request says nothing, so effort none sends no thinking field at all."
|
|
408
450
|
},
|
|
409
451
|
{
|
|
410
452
|
"id": "claude-4-7",
|
|
@@ -525,6 +567,223 @@
|
|
|
525
567
|
"source": "docs",
|
|
526
568
|
"note": "Permissive default for unknown Anthropic-wire models: budget style (the long-standing form); the provider flips the thinking form when the API says so."
|
|
527
569
|
},
|
|
570
|
+
{
|
|
571
|
+
"id": "gemini-3-pro-image",
|
|
572
|
+
"family": "gemini",
|
|
573
|
+
"match": "^gemini-3(?:\\.\\d+)?-pro-image",
|
|
574
|
+
"reasoning": {
|
|
575
|
+
"style": "level",
|
|
576
|
+
"efforts": [
|
|
577
|
+
"high"
|
|
578
|
+
],
|
|
579
|
+
"off": null
|
|
580
|
+
},
|
|
581
|
+
"sampling": {
|
|
582
|
+
"temperature": "any",
|
|
583
|
+
"topP": true,
|
|
584
|
+
"topK": true,
|
|
585
|
+
"penalties": true,
|
|
586
|
+
"logprobs": true
|
|
587
|
+
},
|
|
588
|
+
"maxTokensParam": "max_tokens",
|
|
589
|
+
"chatTools": {
|
|
590
|
+
"reasoning": "any"
|
|
591
|
+
},
|
|
592
|
+
"source": "docs",
|
|
593
|
+
"note": "Gemini 3 Pro Image accepts only thinkingLevel high. thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"id": "gemini-3-image",
|
|
597
|
+
"family": "gemini",
|
|
598
|
+
"match": "^gemini-3(?:\\.\\d+)?-.*image",
|
|
599
|
+
"reasoning": {
|
|
600
|
+
"style": "level",
|
|
601
|
+
"efforts": [
|
|
602
|
+
"minimal",
|
|
603
|
+
"high"
|
|
604
|
+
],
|
|
605
|
+
"off": null
|
|
606
|
+
},
|
|
607
|
+
"sampling": {
|
|
608
|
+
"temperature": "any",
|
|
609
|
+
"topP": true,
|
|
610
|
+
"topK": true,
|
|
611
|
+
"penalties": true,
|
|
612
|
+
"logprobs": true
|
|
613
|
+
},
|
|
614
|
+
"maxTokensParam": "max_tokens",
|
|
615
|
+
"chatTools": {
|
|
616
|
+
"reasoning": "any"
|
|
617
|
+
},
|
|
618
|
+
"source": "docs",
|
|
619
|
+
"note": "Gemini 3.x Flash / Flash-Lite image models accept thinkingLevel minimal or high. thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"id": "gemini-3-pro",
|
|
623
|
+
"family": "gemini",
|
|
624
|
+
"match": "^gemini-3(?:\\.0)?-pro",
|
|
625
|
+
"reasoning": {
|
|
626
|
+
"style": "level",
|
|
627
|
+
"efforts": [
|
|
628
|
+
"low",
|
|
629
|
+
"high"
|
|
630
|
+
],
|
|
631
|
+
"off": null
|
|
632
|
+
},
|
|
633
|
+
"sampling": {
|
|
634
|
+
"temperature": "any",
|
|
635
|
+
"topP": true,
|
|
636
|
+
"topK": true,
|
|
637
|
+
"penalties": true,
|
|
638
|
+
"logprobs": true
|
|
639
|
+
},
|
|
640
|
+
"maxTokensParam": "max_tokens",
|
|
641
|
+
"chatTools": {
|
|
642
|
+
"reasoning": "any"
|
|
643
|
+
},
|
|
644
|
+
"source": "docs",
|
|
645
|
+
"note": "Gemini 3 Pro accepts thinkingLevel low or high (no minimal, no medium; default high). thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"id": "gemini-3x-pro",
|
|
649
|
+
"family": "gemini",
|
|
650
|
+
"match": "^gemini-3\\.\\d+-pro",
|
|
651
|
+
"reasoning": {
|
|
652
|
+
"style": "level",
|
|
653
|
+
"efforts": [
|
|
654
|
+
"low",
|
|
655
|
+
"medium",
|
|
656
|
+
"high"
|
|
657
|
+
],
|
|
658
|
+
"off": null
|
|
659
|
+
},
|
|
660
|
+
"sampling": {
|
|
661
|
+
"temperature": "any",
|
|
662
|
+
"topP": true,
|
|
663
|
+
"topK": true,
|
|
664
|
+
"penalties": true,
|
|
665
|
+
"logprobs": true
|
|
666
|
+
},
|
|
667
|
+
"maxTokensParam": "max_tokens",
|
|
668
|
+
"chatTools": {
|
|
669
|
+
"reasoning": "any"
|
|
670
|
+
},
|
|
671
|
+
"source": "docs",
|
|
672
|
+
"note": "Gemini 3.x Pro (3.1 and later) accepts thinkingLevel low, medium or high (no minimal; default high). thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"id": "gemini-3x-flash-no-minimal",
|
|
676
|
+
"family": "gemini",
|
|
677
|
+
"match": "^gemini-3\\.[78]-flash",
|
|
678
|
+
"reasoning": {
|
|
679
|
+
"style": "level",
|
|
680
|
+
"efforts": [
|
|
681
|
+
"low",
|
|
682
|
+
"medium",
|
|
683
|
+
"high"
|
|
684
|
+
],
|
|
685
|
+
"off": null
|
|
686
|
+
},
|
|
687
|
+
"sampling": {
|
|
688
|
+
"temperature": "any",
|
|
689
|
+
"topP": true,
|
|
690
|
+
"topK": true,
|
|
691
|
+
"penalties": true,
|
|
692
|
+
"logprobs": true
|
|
693
|
+
},
|
|
694
|
+
"maxTokensParam": "max_tokens",
|
|
695
|
+
"chatTools": {
|
|
696
|
+
"reasoning": "any"
|
|
697
|
+
},
|
|
698
|
+
"source": "docs",
|
|
699
|
+
"note": "Gemini 3.7 / 3.8 Flash accept thinkingLevel low, medium or high (no minimal). thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"id": "gemini-3-level",
|
|
703
|
+
"family": "gemini",
|
|
704
|
+
"match": "^gemini-3",
|
|
705
|
+
"reasoning": {
|
|
706
|
+
"style": "level",
|
|
707
|
+
"efforts": [
|
|
708
|
+
"minimal",
|
|
709
|
+
"low",
|
|
710
|
+
"medium",
|
|
711
|
+
"high"
|
|
712
|
+
],
|
|
713
|
+
"off": null
|
|
714
|
+
},
|
|
715
|
+
"sampling": {
|
|
716
|
+
"temperature": "any",
|
|
717
|
+
"topP": true,
|
|
718
|
+
"topK": true,
|
|
719
|
+
"penalties": true,
|
|
720
|
+
"logprobs": true
|
|
721
|
+
},
|
|
722
|
+
"maxTokensParam": "max_tokens",
|
|
723
|
+
"chatTools": {
|
|
724
|
+
"reasoning": "any"
|
|
725
|
+
},
|
|
726
|
+
"source": "docs",
|
|
727
|
+
"note": "Gemini 3 Flash / Flash-Lite and other gemini-3 models accept thinkingLevel minimal, low, medium or high. thinkingLevel replaces thinkingBudget (a request with both is a 400); thinking cannot be switched off, so effort none maps to the lowest level the model accepts."
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"id": "gemini-4-level",
|
|
731
|
+
"family": "gemini",
|
|
732
|
+
"match": "^gemini-[4-9]",
|
|
733
|
+
"reasoning": {
|
|
734
|
+
"style": "level",
|
|
735
|
+
"efforts": [
|
|
736
|
+
"low",
|
|
737
|
+
"medium",
|
|
738
|
+
"high"
|
|
739
|
+
],
|
|
740
|
+
"off": null
|
|
741
|
+
},
|
|
742
|
+
"sampling": {
|
|
743
|
+
"temperature": "any",
|
|
744
|
+
"topP": true,
|
|
745
|
+
"topK": true,
|
|
746
|
+
"penalties": true,
|
|
747
|
+
"logprobs": true
|
|
748
|
+
},
|
|
749
|
+
"maxTokensParam": "max_tokens",
|
|
750
|
+
"chatTools": {
|
|
751
|
+
"reasoning": "any"
|
|
752
|
+
},
|
|
753
|
+
"source": "docs",
|
|
754
|
+
"note": "Gemini 4 and later accept thinkingLevel low, medium or high; MINIMAL is not supported on Gemini 4 models. Setting thinkingBudget on Gemini 4 returns a 400 INVALID_ARGUMENT, so no budget is ever derived (a numeric budgetTokens picks the nearest level; only an explicit providerExtras.thinkingBudget sends one); thinking cannot be switched off, so effort none maps to the lowest level."
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"id": "gemini-2.5-pro",
|
|
758
|
+
"family": "gemini",
|
|
759
|
+
"match": "^gemini-2\\.5-pro",
|
|
760
|
+
"reasoning": {
|
|
761
|
+
"style": "budget",
|
|
762
|
+
"efforts": [
|
|
763
|
+
"minimal",
|
|
764
|
+
"low",
|
|
765
|
+
"medium",
|
|
766
|
+
"high",
|
|
767
|
+
"xhigh",
|
|
768
|
+
"max"
|
|
769
|
+
],
|
|
770
|
+
"off": null,
|
|
771
|
+
"minBudget": 128
|
|
772
|
+
},
|
|
773
|
+
"sampling": {
|
|
774
|
+
"temperature": "any",
|
|
775
|
+
"topP": true,
|
|
776
|
+
"topK": true,
|
|
777
|
+
"penalties": true,
|
|
778
|
+
"logprobs": true
|
|
779
|
+
},
|
|
780
|
+
"maxTokensParam": "max_tokens",
|
|
781
|
+
"chatTools": {
|
|
782
|
+
"reasoning": "any"
|
|
783
|
+
},
|
|
784
|
+
"source": "docs",
|
|
785
|
+
"note": "Gemini 2.5 Pro: thinkingBudget 128-32768 and thinking cannot be turned off, so effort none maps to minBudget (128) instead of 0."
|
|
786
|
+
},
|
|
528
787
|
{
|
|
529
788
|
"id": "gemini-budget",
|
|
530
789
|
"family": "gemini",
|