@msm-core/mini 0.5.0 → 0.5.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.
package/dist/brain/gemini.js
CHANGED
|
@@ -41,6 +41,7 @@ export function createGeminiBrain(opts) {
|
|
|
41
41
|
type: v.type.toUpperCase(),
|
|
42
42
|
description: v.description,
|
|
43
43
|
...(v.enum ? { enum: v.enum } : {}),
|
|
44
|
+
...(v.items ? { items: { type: v.items.type.toUpperCase() } } : {}),
|
|
44
45
|
},
|
|
45
46
|
])),
|
|
46
47
|
required: Object.entries(t.parameters)
|
package/dist/core/types.d.ts
CHANGED
|
@@ -90,6 +90,11 @@ export interface ToolParameter {
|
|
|
90
90
|
required?: boolean;
|
|
91
91
|
enum?: string[];
|
|
92
92
|
default?: unknown;
|
|
93
|
+
/** Element type for `type: "array"` params. Required by Gemini's function-calling
|
|
94
|
+
* schema (an array without `items` is rejected); forwarded to every provider. */
|
|
95
|
+
items?: {
|
|
96
|
+
type: "string" | "number" | "boolean" | "object";
|
|
97
|
+
};
|
|
93
98
|
}
|
|
94
99
|
/** Input the loop hands to every brain call */
|
|
95
100
|
export interface BrainRunInput {
|