@databricks/sdk-supervisoragents 0.0.0-dev → 0.1.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,295 @@
1
+ import { Temporal } from '@js-temporal/polyfill';
2
+ import { FieldMask } from '@databricks/sdk-core/wkt';
3
+ import { z } from 'zod';
4
+ /** <Databricks> app. Supported app: custom mcp, custom agent. */
5
+ export interface App {
6
+ /** App name */
7
+ name?: string | undefined;
8
+ }
9
+ /** Create an example. */
10
+ export interface CreateExampleRequest {
11
+ /**
12
+ * Parent resource where this example will be created.
13
+ * Format: supervisor-agents/{supervisor_agent_id}
14
+ */
15
+ parent?: string | undefined;
16
+ /** The example to create under the parent Supervisor Agent. */
17
+ example?: Example | undefined;
18
+ }
19
+ export interface CreateSupervisorAgentRequest {
20
+ /** The Supervisor Agent to create. */
21
+ supervisorAgent?: SupervisorAgent | undefined;
22
+ }
23
+ export interface CreateToolRequest {
24
+ /**
25
+ * Parent resource where this tool will be created.
26
+ * Format: supervisor-agents/{supervisor_agent_id}
27
+ */
28
+ parent?: string | undefined;
29
+ tool?: Tool | undefined;
30
+ /**
31
+ * The ID to use for the tool, which will become the final component of
32
+ * the tool's resource name.
33
+ */
34
+ toolId?: string | undefined;
35
+ }
36
+ /** Delete an example. */
37
+ export interface DeleteExampleRequest {
38
+ /**
39
+ * The resource name of the example to delete.
40
+ * Format: supervisor-agents/{supervisor_agent_id}/examples/{example_id}
41
+ */
42
+ name?: string | undefined;
43
+ }
44
+ export interface DeleteSupervisorAgentRequest {
45
+ /**
46
+ * The resource name of the Supervisor Agent.
47
+ * Format: supervisor-agents/{supervisor_agent_id}
48
+ */
49
+ name?: string | undefined;
50
+ }
51
+ export interface DeleteToolRequest {
52
+ /**
53
+ * The resource name of the Tool.
54
+ * Format: supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
55
+ */
56
+ name?: string | undefined;
57
+ }
58
+ /**
59
+ * An example associated with a Supervisor Agent.
60
+ * Contains a question and guidelines for how the agent should respond.
61
+ */
62
+ export interface Example {
63
+ /**
64
+ * Full resource name:
65
+ * supervisor-agents/{supervisor_agent_id}/examples/{example_id}
66
+ */
67
+ name?: string | undefined;
68
+ /** The example question. */
69
+ question?: string | undefined;
70
+ /** Guidelines for answering the question. */
71
+ guidelines?: string[] | undefined;
72
+ /** The universally unique identifier (UUID) of the example. */
73
+ exampleId?: string | undefined;
74
+ }
75
+ export interface GenieSpace {
76
+ /**
77
+ * Deprecated: use space_id instead. Still REQUIRED for backward compatibility
78
+ * until a future API version removes it.
79
+ */
80
+ id?: string | undefined;
81
+ }
82
+ /** Get an example. */
83
+ export interface GetExampleRequest {
84
+ /**
85
+ * The resource name of the example.
86
+ * Format: supervisor-agents/{supervisor_agent_id}/examples/{example_id}
87
+ */
88
+ name?: string | undefined;
89
+ }
90
+ export interface GetSupervisorAgentRequest {
91
+ /**
92
+ * The resource name of the Supervisor Agent.
93
+ * Format: supervisor-agents/{supervisor_agent_id}
94
+ */
95
+ name?: string | undefined;
96
+ }
97
+ export interface GetToolRequest {
98
+ /**
99
+ * The resource name of the Tool.
100
+ * Format: supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
101
+ */
102
+ name?: string | undefined;
103
+ }
104
+ export interface KnowledgeAssistant {
105
+ /** Deprecated: use knowledge_assistant_id instead. */
106
+ servingEndpointName?: string | undefined;
107
+ /** The ID of the knowledge assistant. */
108
+ knowledgeAssistantId?: string | undefined;
109
+ }
110
+ /** List examples. */
111
+ export interface ListExamplesRequest {
112
+ /**
113
+ * Parent resource to list from.
114
+ * Format: supervisor-agents/{supervisor_agent_id}
115
+ */
116
+ parent?: string | undefined;
117
+ /**
118
+ * The maximum number of examples to return.
119
+ * If unspecified, at most 100 examples will be returned.
120
+ * The maximum value is 100; values above 100 will be coerced to 100.
121
+ */
122
+ pageSize?: number | undefined;
123
+ /**
124
+ * A page token, received from a previous `ListExamples` call.
125
+ * Provide this to retrieve the subsequent page.
126
+ * If unspecified, the first page will be returned.
127
+ */
128
+ pageToken?: string | undefined;
129
+ }
130
+ /** A list of Supervisor Agent examples. */
131
+ export interface ListExamplesResponse {
132
+ examples?: Example[] | undefined;
133
+ nextPageToken?: string | undefined;
134
+ }
135
+ export interface ListSupervisorAgentsRequest {
136
+ /**
137
+ * The maximum number of supervisor agents to return.
138
+ * If unspecified, at most 100 supervisor agents will be returned.
139
+ * The maximum value is 100; values above 100 will be coerced to 100.
140
+ */
141
+ pageSize?: number | undefined;
142
+ /**
143
+ * A page token, received from a previous `ListSupervisorAgents` call.
144
+ * Provide this to retrieve the subsequent page.
145
+ * If unspecified, the first page will be returned.
146
+ */
147
+ pageToken?: string | undefined;
148
+ }
149
+ export interface ListSupervisorAgentsResponse {
150
+ supervisorAgents?: SupervisorAgent[] | undefined;
151
+ /**
152
+ * A token that can be sent as `page_token` to retrieve the next page.
153
+ * If this field is omitted, there are no subsequent pages.
154
+ */
155
+ nextPageToken?: string | undefined;
156
+ }
157
+ export interface ListToolsRequest {
158
+ /**
159
+ * Parent resource to list from.
160
+ * Format: supervisor-agents/{supervisor_agent_id}
161
+ */
162
+ parent?: string | undefined;
163
+ pageSize?: number | undefined;
164
+ pageToken?: string | undefined;
165
+ }
166
+ export interface ListToolsResponse {
167
+ tools?: Tool[] | undefined;
168
+ nextPageToken?: string | undefined;
169
+ }
170
+ export interface SupervisorAgent {
171
+ /**
172
+ * The resource name of the SupervisorAgent.
173
+ * Format: supervisor-agents/{supervisor_agent_id}
174
+ */
175
+ name?: string | undefined;
176
+ /** The display name of the Supervisor Agent, unique at workspace level. */
177
+ displayName?: string | undefined;
178
+ /** Description of what this agent can do (user-facing). */
179
+ description?: string | undefined;
180
+ /** Optional natural-language instructions for the supervisor agent. */
181
+ instructions?: string | undefined;
182
+ /** Deprecated: Use supervisor_agent_id instead. */
183
+ id?: string | undefined;
184
+ /** The universally unique identifier (UUID) of the Supervisor Agent. */
185
+ supervisorAgentId?: string | undefined;
186
+ /** The creator of the Supervisor Agent. */
187
+ creator?: string | undefined;
188
+ /** Creation timestamp. */
189
+ createTime?: Temporal.Instant | undefined;
190
+ /** The name of the supervisor agent's serving endpoint. */
191
+ endpointName?: string | undefined;
192
+ /** The MLflow experiment ID. */
193
+ experimentId?: string | undefined;
194
+ }
195
+ export interface Tool {
196
+ /**
197
+ * Full resource name:
198
+ * supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
199
+ */
200
+ name?: string | undefined;
201
+ /** Deprecated: Use tool_id instead. */
202
+ id?: string | undefined;
203
+ /** Tool type. Must be one of: "genie_space", "knowledge_assistant", "uc_function", "uc_connection", "uc_mcp", "app", "volume", "dashboard", "serving_endpoint", "table", "vector_search_index", "catalog", "schema", "supervisor_agent", "web_search", "skill". The legacy values "lakeview_dashboard" and "uc_table" are also accepted and remain equivalent to "dashboard" and "table" respectively. */
204
+ toolType?: string | undefined;
205
+ /** Specification for the tool type. */
206
+ spec?: {
207
+ $case: 'genieSpace';
208
+ genieSpace: GenieSpace;
209
+ } | {
210
+ $case: 'knowledgeAssistant';
211
+ knowledgeAssistant: KnowledgeAssistant;
212
+ } | {
213
+ $case: 'ucFunction';
214
+ ucFunction: UcFunction;
215
+ } | {
216
+ $case: 'app';
217
+ app: App;
218
+ } | {
219
+ $case: 'volume';
220
+ volume: Volume;
221
+ } | {
222
+ $case: 'ucConnection';
223
+ ucConnection: UcConnection;
224
+ } | undefined;
225
+ /** Description of what this tool does (user-facing). */
226
+ description?: string | undefined;
227
+ /** User specified id of the Tool. */
228
+ toolId?: string | undefined;
229
+ }
230
+ /** Databricks UC connection. Supported connection: external mcp server. */
231
+ export interface UcConnection {
232
+ name?: string | undefined;
233
+ }
234
+ export interface UcFunction {
235
+ /** Full uc function name */
236
+ name?: string | undefined;
237
+ }
238
+ /** Update an example. */
239
+ export interface UpdateExampleRequest {
240
+ /**
241
+ * The resource name of the example to update.
242
+ * Format: supervisor-agents/{supervisor_agent_id}/examples/{example_id}
243
+ */
244
+ name?: string | undefined;
245
+ example?: Example | undefined;
246
+ /**
247
+ * Comma-delimited list of fields to update on the example.
248
+ * Allowed values: `question`, `guidelines`.
249
+ * Examples:
250
+ * - `question`
251
+ * - `question,guidelines`
252
+ */
253
+ updateMask?: FieldMask<Example> | undefined;
254
+ }
255
+ export interface UpdateSupervisorAgentRequest {
256
+ /** The SupervisorAgent to update. */
257
+ supervisorAgent?: SupervisorAgent | undefined;
258
+ /** Field mask for fields to be updated. */
259
+ updateMask?: FieldMask<SupervisorAgent> | undefined;
260
+ }
261
+ export interface UpdateToolRequest {
262
+ /** The Tool to update. */
263
+ tool?: Tool | undefined;
264
+ /** Field mask for fields to be updated. */
265
+ updateMask?: FieldMask<Tool> | undefined;
266
+ }
267
+ export interface Volume {
268
+ /** Full uc volume name */
269
+ name?: string | undefined;
270
+ }
271
+ export declare const unmarshalAppSchema: z.ZodType<App>;
272
+ export declare const unmarshalExampleSchema: z.ZodType<Example>;
273
+ export declare const unmarshalGenieSpaceSchema: z.ZodType<GenieSpace>;
274
+ export declare const unmarshalKnowledgeAssistantSchema: z.ZodType<KnowledgeAssistant>;
275
+ export declare const unmarshalListExamplesResponseSchema: z.ZodType<ListExamplesResponse>;
276
+ export declare const unmarshalListSupervisorAgentsResponseSchema: z.ZodType<ListSupervisorAgentsResponse>;
277
+ export declare const unmarshalListToolsResponseSchema: z.ZodType<ListToolsResponse>;
278
+ export declare const unmarshalSupervisorAgentSchema: z.ZodType<SupervisorAgent>;
279
+ export declare const unmarshalToolSchema: z.ZodType<Tool>;
280
+ export declare const unmarshalUcConnectionSchema: z.ZodType<UcConnection>;
281
+ export declare const unmarshalUcFunctionSchema: z.ZodType<UcFunction>;
282
+ export declare const unmarshalVolumeSchema: z.ZodType<Volume>;
283
+ export declare const marshalAppSchema: z.ZodType;
284
+ export declare const marshalExampleSchema: z.ZodType;
285
+ export declare const marshalGenieSpaceSchema: z.ZodType;
286
+ export declare const marshalKnowledgeAssistantSchema: z.ZodType;
287
+ export declare const marshalSupervisorAgentSchema: z.ZodType;
288
+ export declare const marshalToolSchema: z.ZodType;
289
+ export declare const marshalUcConnectionSchema: z.ZodType;
290
+ export declare const marshalUcFunctionSchema: z.ZodType;
291
+ export declare const marshalVolumeSchema: z.ZodType;
292
+ export declare function exampleFieldMask(...paths: string[]): FieldMask<Example>;
293
+ export declare function supervisorAgentFieldMask(...paths: string[]): FieldMask<SupervisorAgent>;
294
+ export declare function toolFieldMask(...paths: string[]): FieldMask<Tool>;
295
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,iEAAiE;AACjE,MAAM,WAAW,GAAG;IAClB,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,yBAAyB;AACzB,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,sCAAsC;IACtC,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,yBAAyB;AACzB,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAA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MAAM,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAEjE"}
@@ -0,0 +1,364 @@
1
+ // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { FieldMask } from '@databricks/sdk-core/wkt';
4
+ import { z } from 'zod';
5
+ export const unmarshalAppSchema = z
6
+ .object({
7
+ name: z.string().optional(),
8
+ })
9
+ .transform(d => ({
10
+ name: d.name,
11
+ }));
12
+ export const unmarshalExampleSchema = z
13
+ .object({
14
+ name: z.string().optional(),
15
+ question: z.string().optional(),
16
+ guidelines: z.array(z.string()).optional(),
17
+ example_id: z.string().optional(),
18
+ })
19
+ .transform(d => ({
20
+ name: d.name,
21
+ question: d.question,
22
+ guidelines: d.guidelines,
23
+ exampleId: d.example_id,
24
+ }));
25
+ export const unmarshalGenieSpaceSchema = z
26
+ .object({
27
+ id: z.string().optional(),
28
+ })
29
+ .transform(d => ({
30
+ id: d.id,
31
+ }));
32
+ export const unmarshalKnowledgeAssistantSchema = z
33
+ .object({
34
+ serving_endpoint_name: z.string().optional(),
35
+ knowledge_assistant_id: z.string().optional(),
36
+ })
37
+ .transform(d => ({
38
+ servingEndpointName: d.serving_endpoint_name,
39
+ knowledgeAssistantId: d.knowledge_assistant_id,
40
+ }));
41
+ export const unmarshalListExamplesResponseSchema = z
42
+ .object({
43
+ examples: z.array(z.lazy(() => unmarshalExampleSchema)).optional(),
44
+ next_page_token: z.string().optional(),
45
+ })
46
+ .transform(d => ({
47
+ examples: d.examples,
48
+ nextPageToken: d.next_page_token,
49
+ }));
50
+ export const unmarshalListSupervisorAgentsResponseSchema = z
51
+ .object({
52
+ supervisor_agents: z
53
+ .array(z.lazy(() => unmarshalSupervisorAgentSchema))
54
+ .optional(),
55
+ next_page_token: z.string().optional(),
56
+ })
57
+ .transform(d => ({
58
+ supervisorAgents: d.supervisor_agents,
59
+ nextPageToken: d.next_page_token,
60
+ }));
61
+ export const unmarshalListToolsResponseSchema = z
62
+ .object({
63
+ tools: z.array(z.lazy(() => unmarshalToolSchema)).optional(),
64
+ next_page_token: z.string().optional(),
65
+ })
66
+ .transform(d => ({
67
+ tools: d.tools,
68
+ nextPageToken: d.next_page_token,
69
+ }));
70
+ export const unmarshalSupervisorAgentSchema = z
71
+ .object({
72
+ name: z.string().optional(),
73
+ display_name: z.string().optional(),
74
+ description: z.string().optional(),
75
+ instructions: z.string().optional(),
76
+ id: z.string().optional(),
77
+ supervisor_agent_id: z.string().optional(),
78
+ creator: z.string().optional(),
79
+ create_time: z
80
+ .string()
81
+ .transform(s => Temporal.Instant.from(s))
82
+ .optional(),
83
+ endpoint_name: z.string().optional(),
84
+ experiment_id: z.string().optional(),
85
+ })
86
+ .transform(d => ({
87
+ name: d.name,
88
+ displayName: d.display_name,
89
+ description: d.description,
90
+ instructions: d.instructions,
91
+ id: d.id,
92
+ supervisorAgentId: d.supervisor_agent_id,
93
+ creator: d.creator,
94
+ createTime: d.create_time,
95
+ endpointName: d.endpoint_name,
96
+ experimentId: d.experiment_id,
97
+ }));
98
+ export const unmarshalToolSchema = z
99
+ .object({
100
+ name: z.string().optional(),
101
+ id: z.string().optional(),
102
+ tool_type: z.string().optional(),
103
+ genie_space: z.lazy(() => unmarshalGenieSpaceSchema).optional(),
104
+ knowledge_assistant: z
105
+ .lazy(() => unmarshalKnowledgeAssistantSchema)
106
+ .optional(),
107
+ uc_function: z.lazy(() => unmarshalUcFunctionSchema).optional(),
108
+ app: z.lazy(() => unmarshalAppSchema).optional(),
109
+ volume: z.lazy(() => unmarshalVolumeSchema).optional(),
110
+ uc_connection: z.lazy(() => unmarshalUcConnectionSchema).optional(),
111
+ description: z.string().optional(),
112
+ tool_id: z.string().optional(),
113
+ })
114
+ .transform(d => ({
115
+ name: d.name,
116
+ id: d.id,
117
+ toolType: d.tool_type,
118
+ spec: d.genie_space !== undefined
119
+ ? { $case: 'genieSpace', genieSpace: d.genie_space }
120
+ : d.knowledge_assistant !== undefined
121
+ ? {
122
+ $case: 'knowledgeAssistant',
123
+ knowledgeAssistant: d.knowledge_assistant,
124
+ }
125
+ : d.uc_function !== undefined
126
+ ? { $case: 'ucFunction', ucFunction: d.uc_function }
127
+ : d.app !== undefined
128
+ ? { $case: 'app', app: d.app }
129
+ : d.volume !== undefined
130
+ ? { $case: 'volume', volume: d.volume }
131
+ : d.uc_connection !== undefined
132
+ ? {
133
+ $case: 'ucConnection',
134
+ ucConnection: d.uc_connection,
135
+ }
136
+ : undefined,
137
+ description: d.description,
138
+ toolId: d.tool_id,
139
+ }));
140
+ export const unmarshalUcConnectionSchema = z
141
+ .object({
142
+ name: z.string().optional(),
143
+ })
144
+ .transform(d => ({
145
+ name: d.name,
146
+ }));
147
+ export const unmarshalUcFunctionSchema = z
148
+ .object({
149
+ name: z.string().optional(),
150
+ })
151
+ .transform(d => ({
152
+ name: d.name,
153
+ }));
154
+ export const unmarshalVolumeSchema = z
155
+ .object({
156
+ name: z.string().optional(),
157
+ })
158
+ .transform(d => ({
159
+ name: d.name,
160
+ }));
161
+ export const marshalAppSchema = z
162
+ .object({
163
+ name: z.string().optional(),
164
+ })
165
+ .transform(d => ({
166
+ name: d.name,
167
+ }));
168
+ export const marshalExampleSchema = z
169
+ .object({
170
+ name: z.string().optional(),
171
+ question: z.string().optional(),
172
+ guidelines: z.array(z.string()).optional(),
173
+ exampleId: z.string().optional(),
174
+ })
175
+ .transform(d => ({
176
+ name: d.name,
177
+ question: d.question,
178
+ guidelines: d.guidelines,
179
+ example_id: d.exampleId,
180
+ }));
181
+ export const marshalGenieSpaceSchema = z
182
+ .object({
183
+ id: z.string().optional(),
184
+ })
185
+ .transform(d => ({
186
+ id: d.id,
187
+ }));
188
+ export const marshalKnowledgeAssistantSchema = z
189
+ .object({
190
+ servingEndpointName: z.string().optional(),
191
+ knowledgeAssistantId: z.string().optional(),
192
+ })
193
+ .transform(d => ({
194
+ serving_endpoint_name: d.servingEndpointName,
195
+ knowledge_assistant_id: d.knowledgeAssistantId,
196
+ }));
197
+ export const marshalSupervisorAgentSchema = z
198
+ .object({
199
+ name: z.string().optional(),
200
+ displayName: z.string().optional(),
201
+ description: z.string().optional(),
202
+ instructions: z.string().optional(),
203
+ id: z.string().optional(),
204
+ supervisorAgentId: z.string().optional(),
205
+ creator: z.string().optional(),
206
+ createTime: z
207
+ .any()
208
+ .transform((d) => d.toString())
209
+ .optional(),
210
+ endpointName: z.string().optional(),
211
+ experimentId: z.string().optional(),
212
+ })
213
+ .transform(d => ({
214
+ name: d.name,
215
+ display_name: d.displayName,
216
+ description: d.description,
217
+ instructions: d.instructions,
218
+ id: d.id,
219
+ supervisor_agent_id: d.supervisorAgentId,
220
+ creator: d.creator,
221
+ create_time: d.createTime,
222
+ endpoint_name: d.endpointName,
223
+ experiment_id: d.experimentId,
224
+ }));
225
+ export const marshalToolSchema = z
226
+ .object({
227
+ name: z.string().optional(),
228
+ id: z.string().optional(),
229
+ toolType: z.string().optional(),
230
+ spec: z
231
+ .discriminatedUnion('$case', [
232
+ z.object({
233
+ $case: z.literal('genieSpace'),
234
+ genieSpace: z.lazy(() => marshalGenieSpaceSchema),
235
+ }),
236
+ z.object({
237
+ $case: z.literal('knowledgeAssistant'),
238
+ knowledgeAssistant: z.lazy(() => marshalKnowledgeAssistantSchema),
239
+ }),
240
+ z.object({
241
+ $case: z.literal('ucFunction'),
242
+ ucFunction: z.lazy(() => marshalUcFunctionSchema),
243
+ }),
244
+ z.object({
245
+ $case: z.literal('app'),
246
+ app: z.lazy(() => marshalAppSchema),
247
+ }),
248
+ z.object({
249
+ $case: z.literal('volume'),
250
+ volume: z.lazy(() => marshalVolumeSchema),
251
+ }),
252
+ z.object({
253
+ $case: z.literal('ucConnection'),
254
+ ucConnection: z.lazy(() => marshalUcConnectionSchema),
255
+ }),
256
+ ])
257
+ .optional(),
258
+ description: z.string().optional(),
259
+ toolId: z.string().optional(),
260
+ })
261
+ .transform(d => ({
262
+ name: d.name,
263
+ id: d.id,
264
+ tool_type: d.toolType,
265
+ ...(d.spec?.$case === 'genieSpace' && { genie_space: d.spec.genieSpace }),
266
+ ...(d.spec?.$case === 'knowledgeAssistant' && {
267
+ knowledge_assistant: d.spec.knowledgeAssistant,
268
+ }),
269
+ ...(d.spec?.$case === 'ucFunction' && { uc_function: d.spec.ucFunction }),
270
+ ...(d.spec?.$case === 'app' && { app: d.spec.app }),
271
+ ...(d.spec?.$case === 'volume' && { volume: d.spec.volume }),
272
+ ...(d.spec?.$case === 'ucConnection' && {
273
+ uc_connection: d.spec.ucConnection,
274
+ }),
275
+ description: d.description,
276
+ tool_id: d.toolId,
277
+ }));
278
+ export const marshalUcConnectionSchema = z
279
+ .object({
280
+ name: z.string().optional(),
281
+ })
282
+ .transform(d => ({
283
+ name: d.name,
284
+ }));
285
+ export const marshalUcFunctionSchema = z
286
+ .object({
287
+ name: z.string().optional(),
288
+ })
289
+ .transform(d => ({
290
+ name: d.name,
291
+ }));
292
+ export const marshalVolumeSchema = z
293
+ .object({
294
+ name: z.string().optional(),
295
+ })
296
+ .transform(d => ({
297
+ name: d.name,
298
+ }));
299
+ const appFieldMaskSchema = {
300
+ name: { wire: 'name' },
301
+ };
302
+ const exampleFieldMaskSchema = {
303
+ exampleId: { wire: 'example_id' },
304
+ guidelines: { wire: 'guidelines' },
305
+ name: { wire: 'name' },
306
+ question: { wire: 'question' },
307
+ };
308
+ export function exampleFieldMask(...paths) {
309
+ return FieldMask.build(paths, exampleFieldMaskSchema);
310
+ }
311
+ const genieSpaceFieldMaskSchema = {
312
+ id: { wire: 'id' },
313
+ };
314
+ const knowledgeAssistantFieldMaskSchema = {
315
+ knowledgeAssistantId: { wire: 'knowledge_assistant_id' },
316
+ servingEndpointName: { wire: 'serving_endpoint_name' },
317
+ };
318
+ const supervisorAgentFieldMaskSchema = {
319
+ createTime: { wire: 'create_time' },
320
+ creator: { wire: 'creator' },
321
+ description: { wire: 'description' },
322
+ displayName: { wire: 'display_name' },
323
+ endpointName: { wire: 'endpoint_name' },
324
+ experimentId: { wire: 'experiment_id' },
325
+ id: { wire: 'id' },
326
+ instructions: { wire: 'instructions' },
327
+ name: { wire: 'name' },
328
+ supervisorAgentId: { wire: 'supervisor_agent_id' },
329
+ };
330
+ export function supervisorAgentFieldMask(...paths) {
331
+ return FieldMask.build(paths, supervisorAgentFieldMaskSchema);
332
+ }
333
+ const toolFieldMaskSchema = {
334
+ app: { wire: 'app', children: () => appFieldMaskSchema },
335
+ description: { wire: 'description' },
336
+ genieSpace: { wire: 'genie_space', children: () => genieSpaceFieldMaskSchema },
337
+ id: { wire: 'id' },
338
+ knowledgeAssistant: {
339
+ wire: 'knowledge_assistant',
340
+ children: () => knowledgeAssistantFieldMaskSchema,
341
+ },
342
+ name: { wire: 'name' },
343
+ toolId: { wire: 'tool_id' },
344
+ toolType: { wire: 'tool_type' },
345
+ ucConnection: {
346
+ wire: 'uc_connection',
347
+ children: () => ucConnectionFieldMaskSchema,
348
+ },
349
+ ucFunction: { wire: 'uc_function', children: () => ucFunctionFieldMaskSchema },
350
+ volume: { wire: 'volume', children: () => volumeFieldMaskSchema },
351
+ };
352
+ export function toolFieldMask(...paths) {
353
+ return FieldMask.build(paths, toolFieldMaskSchema);
354
+ }
355
+ const ucConnectionFieldMaskSchema = {
356
+ name: { wire: 'name' },
357
+ };
358
+ const ucFunctionFieldMaskSchema = {
359
+ name: { wire: 'name' },
360
+ };
361
+ const volumeFieldMaskSchema = {
362
+ name: { wire: 'name' },
363
+ };
364
+ //# sourceMappingURL=model.js.map