-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathUpdateAssistant200Response.ts
81 lines (72 loc) · 2.3 KB
/
UpdateAssistant200Response.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* tslint:disable */
/* eslint-disable */
/**
* Pinecone Assistant Control Plane API
* Pinecone Assistant Engine is a context engine to store and retrieve relevant knowledge from millions of documents at scale. This API supports creating and managing assistants.
*
* The version of the OpenAPI document: 2025-04
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface UpdateAssistant200Response
*/
export interface UpdateAssistant200Response {
/**
*
* @type {string}
* @memberof UpdateAssistant200Response
*/
assistantName?: string;
/**
* Description or directive for the assistant to apply to all responses.
* @type {string}
* @memberof UpdateAssistant200Response
*/
instructions?: string;
/**
*
* @type {object}
* @memberof UpdateAssistant200Response
*/
metadata?: object;
}
/**
* Check if a given object implements the UpdateAssistant200Response interface.
*/
export function instanceOfUpdateAssistant200Response(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateAssistant200ResponseFromJSON(json: any): UpdateAssistant200Response {
return UpdateAssistant200ResponseFromJSONTyped(json, false);
}
export function UpdateAssistant200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAssistant200Response {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'assistantName': !exists(json, 'assistant_name') ? undefined : json['assistant_name'],
'instructions': !exists(json, 'instructions') ? undefined : json['instructions'],
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
};
}
export function UpdateAssistant200ResponseToJSON(value?: UpdateAssistant200Response | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'assistant_name': value.assistantName,
'instructions': value.instructions,
'metadata': value.metadata,
};
}