Skip to content

Commit 11756ee

Browse files
committed
space
1 parent 2dd7a8f commit 11756ee

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/vertexai/src/types/requests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
HarmBlockThreshold,
2424
HarmCategory
2525
} from './enums';
26+
import { SchemaInterface } from './schema';
2627

2728
/**
2829
* Base parameters for a number of methods.
@@ -156,7 +157,7 @@ export declare interface FunctionDeclaration {
156157
* format. Reflects the Open API 3.03 Parameter Object. Parameter names are
157158
* case-sensitive. For a function with no parameters, this can be left unset.
158159
*/
159-
parameters?: ObjectSchema;
160+
parameters?: SchemaInterface;
160161
}
161162

162163
/**

packages/vertexai/src/types/schema.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ export interface SchemaInterface extends SchemaParams {
7070
* SchemaType}.
7171
*/
7272
type: SchemaType;
73-
}
73+
}
74+
75+
export interface ObjectSchemaInterface extends SchemaInterface {
76+
type: SchemaType.OBJECT;
77+
}

0 commit comments

Comments
 (0)