CARVIEW |
Select Language
HTTP/2 200
date: Sun, 03 Aug 2025 08:12:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/googleapis/genai-toolbox.git
etag: W/"9cf894df124e2f0c6146413f0b1b334e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=eswxfXLgVAQxkxlIcz45I543L3Y6hpkoya79p4eR%2Fqnq6OsGlYO5vixUeciStCNCneTZTOxhxwg%2F8R%2ByqogA6OHXFwmsE5F9EY%2F7P3CjwDx6KcXtwMGpfpwLvq9q%2FZ8FQ4koStd7eOVTKCFicdQ92nF%2BIZKBRpyh%2FwFjcYp9Ha%2BU2R39hjhcFZwo8vuIDUWWWS2ENXBjaSxKdMVI2G%2B02bWVNZUYSHayWY8%2BAgGZEzw8hDeHMK8EIrcI2wmDk5dSTMcYVjRYRD6lR0bcfJz9Pw%3D%3D--GUrsUv9d%2FsGUf0mo--DFpJoiRSecj0f0z9CXzhtw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.855173369.1754208724; Path=/; Domain=github.com; Expires=Mon, 03 Aug 2026 08:12:04 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 03 Aug 2026 08:12:04 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8A7E:6E28D:926FA9:C20E2D:688F19D4
feat: add support for null optional parameter (#802) · googleapis/genai-toolbox@a817b12 · GitHub
Copy file name to clipboardExpand all lines: internal/tools/parameters.go
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit a817b12
authored
feat: add support for null optional parameter (#802)
Added an option for user to indicate if the parameter is required.
Example:
```
parameters:
- name: foo
type: string
description: foo
required: false
```
If the `required` field is not provided, it will be defaulted to `true`.
If a `default` value is provided, `required = false` regardless if the
field is indicated.
```
parameters:
- name: foo
type: string
description: foo
default: hello world
```
Fixes #7361 parent 8ce311f commit a817b12Copy full SHA for a817b12
File tree
Expand file treeCollapse file tree
2 files changed
+294
-23
lines changedFilter options
- internal/tools
Expand file treeCollapse file tree
2 files changed
+294
-23
lines changedinternal/tools/parameters.go
Copy file name to clipboardExpand all lines: internal/tools/parameters.go+104-18Lines changed: 104 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 |
| |
113 | 118 |
| |
114 | 119 |
| |
115 | 120 |
| |
116 |
| - | |
| 121 | + | |
| 122 | + | |
117 | 123 |
| |
118 | 124 |
| |
119 | 125 |
| |
| |||
122 | 128 |
| |
123 | 129 |
| |
124 | 130 |
| |
125 |
| - | |
| 131 | + | |
| 132 | + | |
126 | 133 |
| |
127 | 134 |
| |
128 | 135 |
| |
129 | 136 |
| |
130 | 137 |
| |
131 |
| - | |
132 | 138 |
| |
133 | 139 |
| |
134 | 140 |
| |
135 | 141 |
| |
136 | 142 |
| |
137 |
| - | |
138 |
| - | |
139 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
140 | 148 |
| |
141 | 149 |
| |
142 | 150 |
| |
| |||
248 | 256 |
| |
249 | 257 |
| |
250 | 258 |
| |
| 259 | + | |
251 | 260 |
| |
252 | 261 |
| |
253 | 262 |
| |
| |||
378 | 387 |
| |
379 | 388 |
| |
380 | 389 |
| |
381 |
| - | |
| 390 | + | |
382 | 391 |
| |
383 | 392 |
| |
384 | 393 |
| |
| |||
412 | 421 |
| |
413 | 422 |
| |
414 | 423 |
| |
| 424 | + | |
415 | 425 |
| |
416 | 426 |
| |
417 | 427 |
| |
| |||
426 | 436 |
| |
427 | 437 |
| |
428 | 438 |
| |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
429 | 448 |
| |
430 | 449 |
| |
431 | 450 |
| |
| |||
475 | 494 |
| |
476 | 495 |
| |
477 | 496 |
| |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
478 | 510 |
| |
479 | 511 |
| |
480 | 512 |
| |
| |||
522 | 554 |
| |
523 | 555 |
| |
524 | 556 |
| |
525 |
| - | |
| 557 | + | |
526 | 558 |
| |
527 | 559 |
| |
528 | 560 |
| |
529 |
| - | |
| 561 | + | |
530 | 562 |
| |
531 | 563 |
| |
532 | 564 |
| |
| |||
557 | 589 |
| |
558 | 590 |
| |
559 | 591 |
| |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
560 | 605 |
| |
561 | 606 |
| |
562 | 607 |
| |
| |||
616 | 661 |
| |
617 | 662 |
| |
618 | 663 |
| |
619 |
| - | |
| 664 | + | |
620 | 665 |
| |
621 | 666 |
| |
622 | 667 |
| |
623 |
| - | |
| 668 | + | |
624 | 669 |
| |
625 | 670 |
| |
626 | 671 |
| |
| |||
651 | 696 |
| |
652 | 697 |
| |
653 | 698 |
| |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
654 | 712 |
| |
655 | 713 |
| |
656 | 714 |
| |
| |||
708 | 766 |
| |
709 | 767 |
| |
710 | 768 |
| |
711 |
| - | |
| 769 | + | |
712 | 770 |
| |
713 | 771 |
| |
714 | 772 |
| |
715 |
| - | |
| 773 | + | |
716 | 774 |
| |
717 | 775 |
| |
718 | 776 |
| |
| |||
743 | 801 |
| |
744 | 802 |
| |
745 | 803 |
| |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
746 | 817 |
| |
747 | 818 |
| |
748 | 819 |
| |
| |||
789 | 860 |
| |
790 | 861 |
| |
791 | 862 |
| |
792 |
| - | |
| 863 | + | |
793 | 864 |
| |
794 | 865 |
| |
795 | 866 |
| |
796 |
| - | |
| 867 | + | |
797 | 868 |
| |
798 | 869 |
| |
799 | 870 |
| |
| |||
826 | 897 |
| |
827 | 898 |
| |
828 | 899 |
| |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
829 | 914 |
| |
830 | 915 |
| |
831 | 916 |
| |
| |||
910 | 995 |
| |
911 | 996 |
| |
912 | 997 |
| |
913 |
| - | |
914 |
| - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
915 | 1001 |
| |
916 | 1002 |
| |
917 | 1003 |
| |
918 |
| - | |
| 1004 | + | |
919 | 1005 |
| |
920 | 1006 |
| |
921 | 1007 |
| |
|
You can’t perform that action at this time.
0 commit comments