Skip to content

Commit 9c7a93f

Browse files
committed
fix schema signatures of ToolUseContent.input and ToolResultContent.structuredContent
1 parent dfcd298 commit 9c7a93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema/draft/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ export interface ToolUseContent {
18241824
/**
18251825
* The arguments to pass to the tool, conforming to the tool's input schema.
18261826
*/
1827-
input: object;
1827+
input: { [key: string]: unknown };
18281828

18291829
/**
18301830
* Optional metadata about the tool use. Clients SHOULD preserve this field when
@@ -1863,7 +1863,7 @@ export interface ToolResultContent {
18631863
*
18641864
* If the tool defined an outputSchema, this SHOULD conform to that schema.
18651865
*/
1866-
structuredContent?: object;
1866+
structuredContent?: { [key: string]: unknown };
18671867

18681868
/**
18691869
* Whether the tool use resulted in an error.

0 commit comments

Comments
 (0)