mcp: validate user-provided output schemas (#408)
toolForErr was ignoring the output schema if the output type was any. That neglected the case where the user provided their own output schema. Fixes #371.
This commit is contained in:
parent
07b9cee8cc
commit
30261728f7
1 changed files with 59 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
// "log"
|
||||
|
||||
"github.com/google/jsonschema-go/jsonschema"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue