File size: 31,750 Bytes
eb51191 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ForgeConfig",
"description": "Top-level Forge configuration merged from all sources (defaults, file,\nenvironment).",
"type": "object",
"properties": {
"auto_dump": {
"description": "Format used when automatically creating a session dump after task\ncompletion; disabled when absent.",
"anyOf": [
{
"$ref": "#/$defs/AutoDumpFormat"
},
{
"type": "null"
}
]
},
"auto_install_vscode_extension": {
"description": "Enables automatic VS Code extension installation when Forge runs inside\nVS Code and the extension is not already installed.",
"type": "boolean",
"default": false
},
"auto_open_dump": {
"description": "Whether to automatically open HTML dump files in the browser after\ncreation.",
"type": "boolean",
"default": false
},
"commit": {
"description": "Model and provider configuration used for commit message generation.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"compact": {
"description": "Context compaction settings applied to all agents; falls back to each\nagent's individual setting when absent.",
"anyOf": [
{
"$ref": "#/$defs/Compact"
},
{
"type": "null"
}
]
},
"currency_conversion_rate": {
"description": "Conversion rate applied to costs before display in the shell rprompt.\nThe raw USD cost is multiplied by this value, allowing costs to be shown\nin a local currency. Defaults to `1.0` (no conversion).",
"$ref": "#/$defs/double",
"default": 0.0
},
"currency_symbol": {
"description": "Currency symbol displayed in the shell rprompt next to the session cost\n(e.g. `\"$\"`, `\"€\"`, `\"₹\"`). Defaults to `\"$\"`.",
"type": "string",
"default": ""
},
"custom_history_path": {
"description": "Path to the conversation history file; defaults to the global history\nlocation when absent.",
"type": [
"string",
"null"
]
},
"debug_requests": {
"description": "Directory where debug request files are written; disabled when absent.",
"type": [
"string",
"null"
]
},
"http": {
"description": "HTTP client settings including proxy, TLS, and timeout configuration.",
"anyOf": [
{
"$ref": "#/$defs/HttpConfig"
},
{
"type": "null"
}
]
},
"max_commit_count": {
"description": "Maximum number of recent commits included as context for commit message\ngeneration.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_conversations": {
"description": "Maximum number of conversations shown in the conversation list.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_extensions": {
"description": "Maximum number of file extensions included in the agent system prompt.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_fetch_chars": {
"description": "Maximum number of characters returned from a URL fetch.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_file_read_batch_size": {
"description": "Maximum number of files read in a single batch operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_file_size_bytes": {
"description": "Maximum file size in bytes permitted for read operations.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_image_size_bytes": {
"description": "Maximum image file size in bytes permitted for read operations.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_line_chars": {
"description": "Maximum number of characters per line when reading a file.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_parallel_file_reads": {
"description": "Maximum number of files read concurrently during batch operations.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_read_lines": {
"description": "Maximum number of lines read from a file in a single operation.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"max_requests_per_turn": {
"description": "Maximum number of requests that can be made in a single turn.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"max_search_lines": {
"description": "Maximum number of lines returned by a single file search operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_search_result_bytes": {
"description": "Maximum number of bytes returned by a single file search operation.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_sem_search_results": {
"description": "Maximum number of candidate results returned from the initial semantic\nsearch vector query.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_line_chars": {
"description": "Maximum number of characters per line in shell command output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_prefix_lines": {
"description": "Maximum number of lines captured from the leading portion of shell\ncommand output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_stdout_suffix_lines": {
"description": "Maximum number of lines captured from the trailing portion of shell\ncommand output.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"max_tokens": {
"description": "Maximum tokens the model may generate per response for all agents\n(1–100,000).",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0
},
"max_tool_failure_per_turn": {
"description": "Maximum tool failures per turn before the orchestrator forces\ncompletion.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"merge_system_messages": {
"description": "When `true`, all system messages in the conversation are merged into a\nsingle leading system message before the request is sent. Enable this\nfor providers that reject requests containing system messages after\nuser or assistant turns (e.g. vLLM, NVIDIA NIM).",
"type": "boolean",
"default": false
},
"model_cache_ttl_secs": {
"description": "Time-to-live in seconds for the cached model API list.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"providers": {
"description": "Additional provider definitions merged with the built-in provider list.\n\nEntries with an `id` matching a built-in provider override its fields;\nentries with a new `id` are appended and become available for model\nselection.",
"type": "array",
"items": {
"$ref": "#/$defs/ProviderEntry"
}
},
"reasoning": {
"description": "Reasoning configuration applied to all agents; controls effort level,\ntoken budget, and visibility of the model's thinking process.",
"anyOf": [
{
"$ref": "#/$defs/ReasoningConfig"
},
{
"type": "null"
}
]
},
"research_subagent": {
"description": "Whether the deep research agent is available.\n\nWhen set to `true`, the Sage agent is added to the agent list and\nthe `:sage` app command is enabled. Defaults to `false`.",
"type": "boolean",
"default": false
},
"restricted": {
"description": "Whether restricted mode is active; when enabled, tool execution requires\nexplicit permission grants.",
"type": "boolean",
"default": false
},
"retry": {
"description": "Retry settings applied at the system level to all IO operations.",
"anyOf": [
{
"$ref": "#/$defs/RetryConfig"
},
{
"type": "null"
}
]
},
"sem_search_top_k": {
"description": "Number of top results retained after re-ranking in semantic search.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"services_url": {
"description": "Base URL of the Forge services API used for semantic search and\nindexing.",
"type": "string",
"default": ""
},
"session": {
"description": "Default model and provider configuration used when not overridden by\nindividual agents.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"subagents": {
"description": "Enables subagent support via the task tool; when true the forge agent\ngains access to the `task` tool for delegating work to specialised\nsub-agents, and the `sage` research-only agent tool is removed.\nWhen false the `task` tool is disabled and `sage` is available instead.",
"type": "boolean",
"default": false
},
"suggest": {
"description": "Model and provider configuration used for shell command suggestion\ngeneration.",
"anyOf": [
{
"$ref": "#/$defs/ModelConfig"
},
{
"type": "null"
}
]
},
"temperature": {
"description": "Output randomness for all agents; lower values are deterministic, higher\nvalues are creative (0.0–2.0).",
"anyOf": [
{
"$ref": "#/$defs/double"
},
{
"type": "null"
}
]
},
"tool_supported": {
"description": "Whether tool use is supported in the current environment; when false,\nall tool calls are disabled.",
"type": "boolean",
"default": false
},
"tool_timeout_secs": {
"description": "Maximum time in seconds a single tool call may run before being\ncancelled.",
"type": "integer",
"format": "uint64",
"default": 0,
"minimum": 0
},
"top_k": {
"description": "Top-k vocabulary cutoff for all agents; restricts sampling to the k\nhighest-probability tokens (1–1000).",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0
},
"top_p": {
"description": "Nucleus sampling threshold for all agents; limits token selection to the\ntop cumulative probability mass (0.0–1.0).",
"anyOf": [
{
"$ref": "#/$defs/double"
},
{
"type": "null"
}
]
},
"updates": {
"description": "Configuration for automatic Forge updates.",
"anyOf": [
{
"$ref": "#/$defs/Update"
},
{
"type": "null"
}
]
},
"use_forge_committer": {
"description": "Whether `forge commit` should override `GIT_COMMITTER_NAME` and\n`GIT_COMMITTER_EMAIL` with the Forge identity. Defaults to `true` via\nthe embedded `.forge.toml` defaults.",
"type": "boolean",
"default": false
},
"use_text_patch_fallback": {
"description": "Switches patch replacement fallback from the legacy fuzzy-search range\nlookup to the newer text-patch gRPC API.\nDefaults to `false` so patching continues to use the legacy fallback\nbehavior unless explicitly enabled in `forge.toml`.",
"type": "boolean",
"default": false
},
"verify_todos": {
"description": "Enables the pending todos hook that checks for incomplete todo items\nwhen a task ends and reminds the LLM about them.",
"type": "boolean",
"default": false
}
},
"$defs": {
"AutoDumpFormat": {
"description": "The output format used when auto-dumping a conversation on task completion.",
"oneOf": [
{
"description": "Dump as a JSON file",
"type": "string",
"const": "json"
},
{
"description": "Dump as an HTML file",
"type": "string",
"const": "html"
}
]
},
"Compact": {
"description": "Configuration for automatic context compaction for all agents",
"type": "object",
"properties": {
"eviction_window": {
"description": "Maximum percentage of the context that can be summarized during\ncompaction. Valid values are between 0.0 and 1.0, where 0.0 means no\ncompaction and 1.0 allows summarizing all messages. Works alongside\nretention_window - the more conservative limit (fewer messages to\ncompact) takes precedence.",
"$ref": "#/$defs/double",
"default": 0.0
},
"max_tokens": {
"description": "Maximum number of tokens to keep after compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"message_threshold": {
"description": "Maximum number of messages before triggering compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"model": {
"description": "Model ID to use for compaction, useful when compacting with a\ncheaper/faster model. If not specified, the root level model will be\nused.",
"type": [
"string",
"null"
]
},
"on_turn_end": {
"description": "Whether to trigger compaction when the last message is from a user",
"type": [
"boolean",
"null"
]
},
"retention_window": {
"description": "Number of most recent messages to preserve during compaction.\nThese messages won't be considered for summarization. Works alongside\neviction_window - the more conservative limit (fewer messages to\ncompact) takes precedence.",
"type": "integer",
"format": "uint",
"default": 0,
"minimum": 0
},
"token_threshold": {
"description": "Maximum number of tokens before triggering compaction. This acts as an\nabsolute cap and is combined with\n`token_threshold_percentage` by taking the lower value.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
},
"token_threshold_percentage": {
"description": "Maximum percentage of the model context window used to derive the token\nthreshold before triggering compaction. This is combined with\n`token_threshold` by taking the lower value.",
"anyOf": [
{
"$ref": "#/$defs/double"
},
{
"type": "null"
}
]
},
"turn_threshold": {
"description": "Maximum number of conversation turns before triggering compaction",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
}
}
},
"Effort": {
"description": "Effort level for model reasoning.",
"oneOf": [
{
"description": "No reasoning; skips the thinking step entirely.",
"type": "string",
"const": "none"
},
{
"description": "Minimal reasoning; fastest and cheapest.",
"type": "string",
"const": "minimal"
},
{
"description": "Low reasoning effort.",
"type": "string",
"const": "low"
},
{
"description": "Medium reasoning effort; the default for most providers.",
"type": "string",
"const": "medium"
},
{
"description": "High reasoning effort.",
"type": "string",
"const": "high"
},
{
"description": "Extra-high reasoning effort (OpenAI / OpenRouter).",
"type": "string",
"const": "xhigh"
},
{
"description": "Maximum reasoning effort; only available on select Anthropic models.",
"type": "string",
"const": "max"
}
]
},
"HttpConfig": {
"description": "HTTP client configuration.",
"type": "object",
"properties": {
"accept_invalid_certs": {
"description": "Accept invalid certificates",
"type": "boolean"
},
"adaptive_window": {
"description": "Adaptive window sizing for improved flow control",
"type": "boolean"
},
"connect_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"hickory": {
"type": "boolean"
},
"keep_alive_interval_secs": {
"description": "Keep-alive interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0
},
"keep_alive_timeout_secs": {
"description": "Keep-alive timeout in seconds",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"keep_alive_while_idle": {
"description": "Keep-alive while connection is idle",
"type": "boolean"
},
"max_redirects": {
"type": "integer",
"format": "uint",
"minimum": 0
},
"max_tls_version": {
"description": "Maximum TLS protocol version to use",
"anyOf": [
{
"$ref": "#/$defs/TlsVersion"
},
{
"type": "null"
}
]
},
"min_tls_version": {
"description": "Minimum TLS protocol version to use",
"anyOf": [
{
"$ref": "#/$defs/TlsVersion"
},
{
"type": "null"
}
]
},
"pool_idle_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"pool_max_idle_per_host": {
"type": "integer",
"format": "uint",
"minimum": 0
},
"read_timeout_secs": {
"type": "integer",
"format": "uint64",
"minimum": 0
},
"root_cert_paths": {
"description": "Paths to root certificate files",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"tls_backend": {
"$ref": "#/$defs/TlsBackend"
}
},
"required": [
"connect_timeout_secs",
"read_timeout_secs",
"pool_idle_timeout_secs",
"pool_max_idle_per_host",
"max_redirects",
"hickory",
"tls_backend",
"adaptive_window",
"keep_alive_timeout_secs",
"keep_alive_while_idle",
"accept_invalid_certs"
]
},
"InputModality": {
"description": "Represents input modalities that a model can accept",
"oneOf": [
{
"description": "Text input (all models support this)",
"type": "string",
"const": "text"
},
{
"description": "Image input (vision-capable models)",
"type": "string",
"const": "image"
}
]
},
"Model": {
"type": "object",
"properties": {
"context_length": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0
},
"description": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"input_modalities": {
"description": "Input modalities supported by the model (defaults to text-only)",
"type": "array",
"default": [
"text"
],
"items": {
"$ref": "#/$defs/InputModality"
}
},
"name": {
"type": [
"string",
"null"
]
},
"supports_parallel_tool_calls": {
"description": "Whether the model supports parallel tool calls",
"type": [
"boolean",
"null"
]
},
"supports_reasoning": {
"description": "Whether the model supports reasoning",
"type": [
"boolean",
"null"
]
},
"tools_supported": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"id"
]
},
"ModelConfig": {
"description": "Pairs a provider and model together for a specific operation.",
"type": "object",
"properties": {
"model_id": {
"description": "The model to use for this operation.",
"type": "string"
},
"provider_id": {
"description": "The provider to use for this operation.",
"type": "string"
}
},
"required": [
"provider_id",
"model_id"
]
},
"ModelListConfig": {
"description": "Source of models for a provider: either a URL to fetch them from or a\nstatic list defined inline.",
"anyOf": [
{
"description": "URL template used to fetch the model list dynamically.",
"type": "string"
},
{
"description": "A static list of models defined directly in the configuration.",
"type": "array",
"items": {
"$ref": "#/$defs/Model"
}
}
]
},
"ProviderAuthMethod": {
"description": "Authentication method supported by a provider.\n\nOnly the simple (non-OAuth) methods are available here; providers that\nrequire OAuth device or authorization-code flows must be configured via the\nfile-based `provider.json` override instead.",
"type": "string",
"enum": [
"api_key",
"google_adc"
]
},
"ProviderEntry": {
"description": "A single provider entry defined inline in `forge.toml`.\n\nInline providers are merged with the built-in provider list; entries with\nthe same `id` override the corresponding built-in entry field-by-field,\nwhile entries with a new `id` are appended to the list.",
"type": "object",
"properties": {
"api_key_var": {
"description": "Environment variable holding the API key for this provider.",
"type": [
"string",
"null"
]
},
"auth_methods": {
"description": "Authentication methods supported by this provider; defaults to\n`[\"api_key\"]` when omitted.",
"type": "array",
"items": {
"$ref": "#/$defs/ProviderAuthMethod"
}
},
"custom_headers": {
"description": "Additional HTTP headers sent with every request to this provider.",
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"id": {
"description": "Unique provider identifier used in model paths (e.g. `\"my_provider\"`).",
"type": "string"
},
"models": {
"description": "Model source: either a URL template for dynamic discovery or a static\nlist of models defined inline.",
"anyOf": [
{
"$ref": "#/$defs/ModelListConfig"
},
{
"type": "null"
}
]
},
"provider_type": {
"description": "Provider category; defaults to `llm` when omitted.",
"anyOf": [
{
"$ref": "#/$defs/ProviderTypeEntry"
},
{
"type": "null"
}
]
},
"response_type": {
"description": "Wire protocol used by this provider.",
"anyOf": [
{
"$ref": "#/$defs/ProviderResponseType"
},
{
"type": "null"
}
]
},
"url": {
"description": "URL template for chat completions; may contain `{{VAR}}` placeholders\nthat are substituted from the credential's url params.",
"type": "string"
},
"url_param_vars": {
"description": "Environment variables whose values are substituted into `{{VAR}}`\nplaceholders in the `url` and `models` templates.",
"type": "array",
"items": {
"$ref": "#/$defs/ProviderUrlParam"
}
}
},
"required": [
"id",
"url"
]
},
"ProviderResponseType": {
"description": "Wire protocol a provider uses for chat completions.",
"type": "string",
"enum": [
"OpenAI",
"OpenAIResponses",
"Anthropic",
"Bedrock",
"Google",
"OpenCode"
]
},
"ProviderTypeEntry": {
"description": "Category of a provider.",
"oneOf": [
{
"description": "LLM provider for chat completions.",
"type": "string",
"const": "llm"
},
{
"description": "Context engine provider for code indexing and search.",
"type": "string",
"const": "context_engine"
}
]
},
"ProviderUrlParam": {
"description": "A URL parameter variable for a provider, used to substitute template\nvariables in URL strings.",
"type": "object",
"properties": {
"name": {
"description": "The environment variable name used as the template variable key.",
"type": "string"
},
"optional": {
"description": "Whether this parameter is optional. When `true`, the parameter may be\nleft blank without causing an error.",
"type": "boolean"
},
"options": {
"description": "Optional preset values for this parameter shown as suggestions in the\nUI.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name"
]
},
"ReasoningConfig": {
"description": "Controls the reasoning behaviour of a model, including effort level, token\nbudget, and visibility of the thinking process.",
"type": "object",
"properties": {
"effort": {
"description": "Controls the effort level of the model's reasoning.\nSupported by openrouter and forge provider.",
"anyOf": [
{
"$ref": "#/$defs/Effort"
},
{
"type": "null"
}
]
},
"enabled": {
"description": "Enables reasoning at the \"medium\" effort level with no exclusions.\nSupported by openrouter, anthropic, and forge provider.",
"type": [
"boolean",
"null"
]
},
"exclude": {
"description": "When true, the model thinks deeply but the reasoning is hidden from the\ncaller. Supported by openrouter and forge provider.",
"type": [
"boolean",
"null"
]
},
"max_tokens": {
"description": "Controls how many tokens the model can spend thinking.\nShould be greater than 1024 but less than the overall max_tokens.\nSupported by openrouter, anthropic, and forge provider.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0
}
}
},
"RetryConfig": {
"description": "Configuration for retry mechanism.",
"type": "object",
"properties": {
"backoff_factor": {
"description": "Backoff multiplication factor for each retry attempt",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"initial_backoff_ms": {
"description": "Initial backoff delay in milliseconds for retry operations",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"max_attempts": {
"description": "Maximum number of retry attempts",
"type": "integer",
"format": "uint",
"minimum": 0
},
"max_delay_secs": {
"description": "Maximum delay between retries in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0
},
"min_delay_ms": {
"description": "Minimum delay in milliseconds between retry attempts",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"status_codes": {
"description": "HTTP status codes that should trigger retries",
"type": "array",
"items": {
"type": "integer",
"format": "uint16",
"maximum": 65535,
"minimum": 0
}
},
"suppress_errors": {
"description": "Whether to suppress retry error logging and events",
"type": "boolean"
}
},
"required": [
"initial_backoff_ms",
"min_delay_ms",
"backoff_factor",
"max_attempts",
"status_codes",
"suppress_errors"
]
},
"TlsBackend": {
"description": "TLS backend option.",
"type": "string",
"enum": [
"default",
"rustls"
]
},
"TlsVersion": {
"description": "TLS version enum for configuring TLS protocol versions.",
"type": "string",
"enum": [
"1.0",
"1.1",
"1.2",
"1.3"
]
},
"Update": {
"description": "Configuration for automatic forge updates",
"type": "object",
"properties": {
"auto_update": {
"description": "Whether to automatically install updates without prompting",
"type": [
"boolean",
"null"
]
},
"frequency": {
"description": "How frequently forge checks for updates: daily, weekly, always, or never",
"anyOf": [
{
"$ref": "#/$defs/UpdateFrequency"
},
{
"type": "null"
}
]
}
}
},
"UpdateFrequency": {
"description": "Frequency at which forge checks for updates",
"type": "string",
"enum": [
"daily",
"weekly",
"never",
"always"
]
},
"double": {
"type": "number",
"format": "double"
}
}
} |