Skip to content

Commit e4f9c8f

Browse files
authored
interfaces: allow for $defs and items in Tool interface (#218)
1 parent 28fb3e6 commit e4f9c8f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/interfaces.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,19 @@ export interface ToolCall {
7979
export interface Tool {
8080
type: string;
8181
function: {
82-
name: string;
83-
description: string;
84-
parameters: {
85-
type: string;
86-
required: string[];
87-
properties: {
82+
name?: string;
83+
description?: string;
84+
type?: string;
85+
parameters?: {
86+
type?: string;
87+
$defs?: any;
88+
items?: any;
89+
required?: string[];
90+
properties?: {
8891
[key: string]: {
89-
type: string | string[];
90-
description: string;
92+
type?: string | string[];
93+
items?: any;
94+
description?: string;
9195
enum?: any[];
9296
};
9397
};

0 commit comments

Comments
 (0)