Automatic function calling — Python 만
Python SDK 가 전체 tool loop 자동 실행 가능. tools=[...] 에 plain callable pass; SDK 가 type hint + docstring introspect, declaration 만들고 call/response loop 내부 처리. Python 만 가능. TypeScript 는 manual loop 필요.
모델한테 직접 줄 수 있는 built-in tool 두 개
Google 이 그쪽이 실행하는 tool 두 개 ship:
- Code execution (
ToolCodeExecution) — 모델이 Python 작성, Google 이 server-side 실행, 출력 반환. 수학, parsing, plotting 에 유용. - Google Search (
GoogleSearch) — 모델이 검색 발행하고 결과 읽음. 현재 사건의 grounding.
이거 dispatcher 작성 X — Google 인프라 안에서 실행.
Tool 결합
같은 호출에 custom function declaration 과 built-in tool 섞을 수 있어. 모델이 user 의도에 맞는 거 선택.