@adecore/agent-contracts 0.31.10 → 0.31.11

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.
package/dist/model.d.ts CHANGED
@@ -48,6 +48,7 @@ export declare const ModelInfoSchema: z.ZodObject<{
48
48
  description: z.ZodOptional<z.ZodString>;
49
49
  }, z.core.$strip>], "type">>;
50
50
  minCliVersion: z.ZodOptional<z.ZodString>;
51
+ tools: z.ZodOptional<z.ZodBoolean>;
51
52
  }, z.core.$strip>;
52
53
  export type ModelInfo = z.infer<typeof ModelInfoSchema>;
53
54
  export declare const ModelSelectionSchema: z.ZodObject<{
@@ -85,6 +86,7 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
85
86
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
87
  legacy: z.ZodOptional<z.ZodBoolean>;
87
88
  minCliVersion: z.ZodOptional<z.ZodString>;
89
+ tools: z.ZodOptional<z.ZodBoolean>;
88
90
  }, z.core.$strip>;
89
91
  export type ModelCatalogEntry = z.infer<typeof ModelCatalogEntrySchema>;
90
92
  export declare const ModelCatalogDataSchema: z.ZodObject<{
@@ -119,6 +121,7 @@ export declare const ModelCatalogDataSchema: z.ZodObject<{
119
121
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
122
  legacy: z.ZodOptional<z.ZodBoolean>;
121
123
  minCliVersion: z.ZodOptional<z.ZodString>;
124
+ tools: z.ZodOptional<z.ZodBoolean>;
122
125
  }, z.core.$strip>>;
123
126
  }, z.core.$strip>;
124
127
  export type ModelCatalogData = z.infer<typeof ModelCatalogDataSchema>;
@@ -225,6 +228,7 @@ export declare const ProviderInfoSchema: z.ZodObject<{
225
228
  description: z.ZodOptional<z.ZodString>;
226
229
  }, z.core.$strip>], "type">>;
227
230
  minCliVersion: z.ZodOptional<z.ZodString>;
231
+ tools: z.ZodOptional<z.ZodBoolean>;
228
232
  }, z.core.$strip>>;
229
233
  defaultModel: z.ZodNullable<z.ZodString>;
230
234
  capabilities: z.ZodObject<{
@@ -309,6 +313,7 @@ export declare const ProviderListResultSchema: z.ZodObject<{
309
313
  description: z.ZodOptional<z.ZodString>;
310
314
  }, z.core.$strip>], "type">>;
311
315
  minCliVersion: z.ZodOptional<z.ZodString>;
316
+ tools: z.ZodOptional<z.ZodBoolean>;
312
317
  }, z.core.$strip>>;
313
318
  defaultModel: z.ZodNullable<z.ZodString>;
314
319
  capabilities: z.ZodObject<{
package/dist/model.js CHANGED
@@ -34,7 +34,9 @@ export const ModelInfoSchema = z.object({
34
34
  isDefault: z.boolean(),
35
35
  options: z.array(ModelOptionDescriptorSchema),
36
36
  // The oldest CLI that offers this model; absent when no minimum is known.
37
- minCliVersion: z.string().optional()
37
+ minCliVersion: z.string().optional(),
38
+ // Whether the model can call tools, for a provider whose models differ in that. Absent when the provider does not say.
39
+ tools: z.boolean().optional()
38
40
  });
39
41
  export const ModelSelectionSchema = z.object({
40
42
  model: z.string().min(1),
@@ -58,7 +60,8 @@ export const ModelCatalogEntrySchema = z.object({
58
60
  minCliVersion: z
59
61
  .string()
60
62
  .regex(/^\d+\.\d+(\.\d+)?$/, 'Expected a version such as 2.1 or 2.1.4')
61
- .optional()
63
+ .optional(),
64
+ tools: z.boolean().optional()
62
65
  });
63
66
  /*
64
67
  * The models one provider offers, as a host ships them and as a catalog service hands out a newer
@@ -3913,6 +3913,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
3913
3913
  description: z.ZodOptional<z.ZodString>;
3914
3914
  }, z.core.$strip>], "type">>;
3915
3915
  minCliVersion: z.ZodOptional<z.ZodString>;
3916
+ tools: z.ZodOptional<z.ZodBoolean>;
3916
3917
  }, z.core.$strip>>;
3917
3918
  defaultModel: z.ZodNullable<z.ZodString>;
3918
3919
  capabilities: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agent-contracts",
3
- "version": "0.31.10",
3
+ "version": "0.31.11",
4
4
  "description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -86,7 +86,7 @@
86
86
  "test": "bun --conditions=source test"
87
87
  },
88
88
  "dependencies": {
89
- "@adecore/intelligent-ui": "0.31.10",
89
+ "@adecore/intelligent-ui": "0.31.11",
90
90
  "zod": "^4.6.5"
91
91
  },
92
92
  "devDependencies": {
package/src/model.ts CHANGED
@@ -39,7 +39,9 @@ export const ModelInfoSchema = z.object({
39
39
  isDefault: z.boolean(),
40
40
  options: z.array(ModelOptionDescriptorSchema),
41
41
  // The oldest CLI that offers this model; absent when no minimum is known.
42
- minCliVersion: z.string().optional()
42
+ minCliVersion: z.string().optional(),
43
+ // Whether the model can call tools, for a provider whose models differ in that. Absent when the provider does not say.
44
+ tools: z.boolean().optional()
43
45
  });
44
46
  export type ModelInfo = z.infer<typeof ModelInfoSchema>;
45
47
 
@@ -70,7 +72,8 @@ export const ModelCatalogEntrySchema = z.object({
70
72
  minCliVersion: z
71
73
  .string()
72
74
  .regex(/^\d+\.\d+(\.\d+)?$/, 'Expected a version such as 2.1 or 2.1.4')
73
- .optional()
75
+ .optional(),
76
+ tools: z.boolean().optional()
74
77
  });
75
78
  export type ModelCatalogEntry = z.infer<typeof ModelCatalogEntrySchema>;
76
79