fix(mcp): default tool schema properties (#32568)
This commit is contained in:
parent
bd84c32860
commit
25cb2be619
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ export const resolve = Effect.fn("SessionTools.resolve")(function* (input: {
|
|||
if (!execute) continue
|
||||
|
||||
const schema = yield* Effect.promise(() => Promise.resolve(asSchema(item.inputSchema).jsonSchema))
|
||||
const transformed = ProviderTransform.schema(input.model, schema)
|
||||
const transformed = ProviderTransform.schema(input.model, { ...schema, properties: schema.properties ?? {} })
|
||||
item.inputSchema = jsonSchema(transformed)
|
||||
item.execute = (args, opts) =>
|
||||
run.promise(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue