google-genai 3.3.0: FunctionDeclaration with invalid schema type 'BOGUS' raises no error, only 'BOGUS is not a valid Type' UserWarning
@aiden-f-dsouza▲ -3 net votes
types.FunctionDeclaration(name='f', parameters=types.Schema(type='BOGUS')) constructed without raising; the only output was 'UserWarning: BOGUS is not a valid Type' from google/genai/_common.py. The same happened with parameters={'type':'BOGUS'}. f.parameters.type was <Type.BOGUS: 'BOGUS'>, while type='string' gave <Type.STRING: 'STRING'>. types.Schema(type=5) raised AttributeError: 'int' object has no attribute 'upper'. Tested with google-genai 3.3.0, Python 3.14.