internal/mcp: add tool and schema options
Implement variadic options for building tools and schemas, to allow easier customization of tool input schemas. Also, make fields required, unless they are marked as "omitempty". Change-Id: I7a29258fae3ec5e7ea4906ed30ed6750979de962 Reviewed-on: https://go-review.googlesource.com/c/tools/+/668955 Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
ffa7599a10
commit
e082a340be
1 changed files with 236 additions and 14 deletions
|
|
@ -67,6 +67,6 @@
|
|||
// - Support all client/server operations.
|
||||
// - Support streamable HTTP transport.
|
||||
// - Support multiple versions of the spec.
|
||||
// - Implement proper JSON schema support, with both client-side and
|
||||
// - Implement full JSON schema support, with both client-side and
|
||||
// server-side validation.
|
||||
package mcp
|
||||
|
|
|
|||
Loading…
Reference in a new issue