feat: HTTP request tool (#9228)

This commit is contained in:
Michael Kret
2024-06-19 10:54:13 +03:00
committed by GitHub
parent 4131408e5e
commit be2635e50e
14 changed files with 2423 additions and 144 deletions

View File

@@ -0,0 +1,23 @@
export type ToolParameter = {
name: string;
required: boolean;
type?: string;
description?: string;
sendIn: SendIn;
key?: string;
};
export type PlaceholderDefinition = {
name: string;
type?: string;
description: string;
};
export type ParametersValues = Array<{
name: string;
valueProvider: 'modelRequired' | 'modelOptional' | 'fieldValue';
value?: string;
}>;
export type ParameterInputType = 'keypair' | 'json' | 'model';
export type SendIn = 'body' | 'qs' | 'path' | 'headers';