mcp: tool.InputSchema and tool.OutputSchema validation (SEP-2106) (#1009)
Fixes #990
This commit is contained in:
parent
91c010f664
commit
79e1a13dcf
1 changed files with 377 additions and 40 deletions
|
|
@ -234,7 +234,9 @@ type ToolResultContent struct {
|
|||
ToolUseID string
|
||||
// Content holds the unstructured result of the tool call.
|
||||
Content []Content
|
||||
// StructuredContent holds an optional structured result as a JSON object.
|
||||
// StructuredContent holds an optional structured result. Per SEP-2106, it
|
||||
// may be any valid JSON value (object, array, or primitive) conforming to
|
||||
// the tool's output schema.
|
||||
StructuredContent any
|
||||
// IsError indicates whether the tool call ended in an error.
|
||||
IsError bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue