Skip to content

Commit 54ed031

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: support None as return type, such as def func() -> None:
None: PiperOrigin-RevId: 767204150
1 parent 984c1d6 commit 54ed031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/google/adk/tools/_function_parameter_parse_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
bool: types.Type.BOOLEAN,
3838
list: types.Type.ARRAY,
3939
dict: types.Type.OBJECT,
40+
None: types.Type.NULL,
4041
}
4142

4243
logger = logging.getLogger('google_adk.' + __name__)

0 commit comments

Comments
 (0)