TOOLS
This commit is contained in:
@@ -37,6 +37,11 @@ def main():
|
||||
}
|
||||
})
|
||||
|
||||
# Rename 'parameters' to 'parametersJsonSchema' for Gemini CLI
|
||||
for spec in specs:
|
||||
if "parameters" in spec:
|
||||
spec["parametersJsonSchema"] = spec.pop("parameters")
|
||||
|
||||
# Output as JSON array of FunctionDeclarations
|
||||
print(json.dumps(specs, indent=2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user