@google/adk 2.2.1 → 2.4.0

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.
Files changed (298) hide show
  1. package/dist/cjs/a2a/a2a_remote_agent.js +4 -1
  2. package/dist/cjs/a2a/agent_card.js +102 -26
  3. package/dist/cjs/a2a/agent_to_a2a.js +1 -1
  4. package/dist/cjs/agents/agent_engine_client.js +172 -0
  5. package/dist/cjs/agents/base_agent.js +20 -4
  6. package/dist/cjs/agents/functions.js +227 -25
  7. package/dist/cjs/agents/instructions.js +6 -2
  8. package/dist/cjs/agents/invocation_context.js +26 -4
  9. package/dist/cjs/agents/langgraph_agent.js +152 -0
  10. package/dist/cjs/agents/llm_agent.js +194 -107
  11. package/dist/cjs/agents/processors/basic_llm_request_processor.js +1 -1
  12. package/dist/cjs/agents/processors/code_execution_request_processor.js +18 -6
  13. package/dist/cjs/agents/processors/content_processor_utils.js +38 -10
  14. package/dist/cjs/agents/processors/content_request_processor.js +34 -2
  15. package/dist/cjs/agents/processors/instructions_llm_request_processor.js +1 -1
  16. package/dist/cjs/agents/processors/nl_planning_processor.js +12 -3
  17. package/dist/cjs/artifacts/in_memory_artifact_service.js +14 -0
  18. package/dist/cjs/auth/auth_handler.js +37 -5
  19. package/dist/cjs/auth/auth_schemes.js +9 -0
  20. package/dist/cjs/cli/cli_eval.js +532 -0
  21. package/dist/cjs/cli/utils/envs.js +116 -0
  22. package/dist/cjs/cli/utils/evals.js +137 -0
  23. package/dist/cjs/cli/utils/logs.js +150 -0
  24. package/dist/cjs/code_executors/agent_engine_sandbox_code_executor.js +7 -2
  25. package/dist/cjs/code_executors/code_execution_utils.js +48 -16
  26. package/dist/cjs/code_executors/code_executor_context.js +6 -2
  27. package/dist/cjs/code_executors/container_code_executor.js +27 -16
  28. package/dist/cjs/code_executors/unsafe_local_code_executor.js +6 -1
  29. package/dist/cjs/common.js +61 -0
  30. package/dist/cjs/context/summarizers/llm_summarizer.js +12 -10
  31. package/dist/cjs/context/token_based_context_compactor.js +2 -1
  32. package/dist/cjs/errors/input_validation_error.js +3 -2
  33. package/dist/cjs/events/event.js +4 -2
  34. package/dist/cjs/examples/example_util.js +23 -2
  35. package/dist/cjs/flows/llm_flows/audio_transcriber.js +170 -0
  36. package/dist/cjs/index.js +104 -1
  37. package/dist/cjs/integrations/agent_registry/helpers.js +1 -1
  38. package/dist/cjs/models/gemini_llm_connection.js +16 -8
  39. package/dist/cjs/models/google_llm.js +13 -16
  40. package/dist/cjs/models/llm_response.js +9 -1
  41. package/dist/cjs/models/registry.js +1 -1
  42. package/dist/cjs/models/routed_llm.js +9 -8
  43. package/dist/cjs/planners/plan_re_act_planner.js +1 -1
  44. package/dist/cjs/plugins/base_plugin.js +13 -23
  45. package/dist/cjs/runner/in_memory_runner.js +6 -11
  46. package/dist/cjs/runner/runner.js +105 -33
  47. package/dist/cjs/sessions/base_session_service.js +14 -8
  48. package/dist/cjs/sessions/database_session_service.js +50 -28
  49. package/dist/cjs/sessions/db/operations.js +1 -1
  50. package/dist/cjs/sessions/in_memory_session_service.js +3 -1
  51. package/dist/cjs/sessions/stale_session_error.js +59 -0
  52. package/dist/cjs/sessions/state.js +8 -4
  53. package/dist/cjs/sessions/vertex_ai_session_service.js +34 -15
  54. package/dist/cjs/skills/loader.js +52 -18
  55. package/dist/cjs/telemetry/setup.js +0 -1
  56. package/dist/cjs/telemetry/tracing.js +147 -73
  57. package/dist/cjs/tools/agent_tool.js +44 -0
  58. package/dist/cjs/tools/apihub_tool/apihub_toolset.js +137 -0
  59. package/dist/cjs/tools/apihub_tool/clients/apihub_client.js +272 -0
  60. package/dist/cjs/tools/apihub_tool/clients/secret_client.js +148 -0
  61. package/dist/cjs/tools/apihub_tool/clients/service_account.js +48 -0
  62. package/dist/cjs/tools/application_integration_tool/application_integration_toolset.js +263 -0
  63. package/dist/cjs/tools/application_integration_tool/clients/cloud_request.js +133 -0
  64. package/dist/cjs/tools/application_integration_tool/clients/connections_client.js +671 -0
  65. package/dist/cjs/tools/application_integration_tool/clients/integration_client.js +223 -0
  66. package/dist/cjs/tools/application_integration_tool/integration_connector_tool.js +184 -0
  67. package/dist/cjs/tools/example_tool.js +10 -0
  68. package/dist/cjs/tools/function_tool.js +319 -0
  69. package/dist/cjs/tools/google_api_tool/google_api_tool.js +100 -0
  70. package/dist/cjs/tools/google_api_tool/google_api_toolset.js +173 -0
  71. package/dist/cjs/tools/google_api_tool/google_api_toolsets.js +124 -0
  72. package/dist/cjs/tools/google_api_tool/googleapi_to_openapi_converter.js +440 -0
  73. package/dist/cjs/tools/google_api_tool/index.js +61 -0
  74. package/dist/cjs/tools/load_artifacts_tool.js +12 -6
  75. package/dist/cjs/tools/load_memory_tool.js +12 -10
  76. package/dist/cjs/tools/mcp/index.js +12 -0
  77. package/dist/cjs/tools/mcp/mcp_session_manager.js +25 -0
  78. package/dist/cjs/tools/mcp/mcp_toolset.js +1 -14
  79. package/dist/cjs/tools/openapi_tool/auth/auth_helpers.js +1 -2
  80. package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +46 -2
  81. package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +4 -3
  82. package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
  83. package/dist/cjs/tools/openapi_tool/openapi_spec_parser/openapi_spec_parser.js +20 -6
  84. package/dist/cjs/tools/openapi_tool/openapi_spec_parser/operation_parser.js +17 -6
  85. package/dist/cjs/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +14 -2
  86. package/dist/cjs/tools/openapi_tool/openapi_toolset.js +7 -13
  87. package/dist/cjs/tools/openapi_tool/rest_api_tool.js +17 -1
  88. package/dist/cjs/tools/retrieval/base_retrieval_tool.js +18 -3
  89. package/dist/cjs/tools/toolbox_toolset.js +174 -0
  90. package/dist/cjs/tools/webmcp/webmcp_toolset.js +1 -14
  91. package/dist/cjs/utils/client_labels.js +19 -2
  92. package/dist/cjs/utils/env_aware_utils.js +6 -8
  93. package/dist/cjs/utils/error_utils.js +11 -11
  94. package/dist/cjs/utils/failover_utils.js +1 -1
  95. package/dist/cjs/utils/file_extension_utils.js +11 -0
  96. package/dist/cjs/utils/file_utils.js +2 -24
  97. package/dist/cjs/utils/gemini_schema_util.js +28 -7
  98. package/dist/cjs/utils/json_utils.js +49 -0
  99. package/dist/cjs/utils/live_connection_utils.js +4 -5
  100. package/dist/cjs/utils/logger_node.js +11 -1
  101. package/dist/cjs/utils/object_notation_utils.js +6 -3
  102. package/dist/cjs/utils/output_schema_utils.js +5 -2
  103. package/dist/cjs/utils/streaming_utils.js +12 -12
  104. package/dist/cjs/utils/task.js +1 -1
  105. package/dist/cjs/version.js +1 -1
  106. package/dist/esm/a2a/a2a_remote_agent.js +4 -1
  107. package/dist/esm/a2a/agent_card.js +103 -27
  108. package/dist/esm/a2a/agent_to_a2a.js +5 -2
  109. package/dist/esm/agents/agent_engine_client.js +144 -0
  110. package/dist/esm/agents/base_agent.js +20 -4
  111. package/dist/esm/agents/functions.js +226 -25
  112. package/dist/esm/agents/instructions.js +6 -2
  113. package/dist/esm/agents/invocation_context.js +24 -4
  114. package/dist/esm/agents/langgraph_agent.js +123 -0
  115. package/dist/esm/agents/llm_agent.js +204 -110
  116. package/dist/esm/agents/processors/basic_llm_request_processor.js +1 -1
  117. package/dist/esm/agents/processors/code_execution_request_processor.js +21 -8
  118. package/dist/esm/agents/processors/content_processor_utils.js +38 -10
  119. package/dist/esm/agents/processors/content_request_processor.js +34 -2
  120. package/dist/esm/agents/processors/instructions_llm_request_processor.js +1 -1
  121. package/dist/esm/agents/processors/nl_planning_processor.js +12 -3
  122. package/dist/esm/artifacts/in_memory_artifact_service.js +14 -0
  123. package/dist/esm/auth/auth_handler.js +37 -5
  124. package/dist/esm/auth/auth_schemes.js +8 -0
  125. package/dist/esm/cli/cli_eval.js +510 -0
  126. package/dist/esm/cli/utils/envs.js +78 -0
  127. package/dist/esm/cli/utils/evals.js +109 -0
  128. package/dist/esm/cli/utils/logs.js +111 -0
  129. package/dist/esm/code_executors/agent_engine_sandbox_code_executor.js +7 -2
  130. package/dist/esm/code_executors/code_execution_utils.js +46 -16
  131. package/dist/esm/code_executors/code_executor_context.js +5 -2
  132. package/dist/esm/code_executors/container_code_executor.js +27 -16
  133. package/dist/esm/code_executors/unsafe_local_code_executor.js +6 -1
  134. package/dist/esm/common.js +65 -4
  135. package/dist/esm/context/summarizers/llm_summarizer.js +12 -10
  136. package/dist/esm/context/token_based_context_compactor.js +2 -1
  137. package/dist/esm/errors/input_validation_error.js +3 -2
  138. package/dist/esm/events/event.js +4 -2
  139. package/dist/esm/examples/example_util.js +21 -1
  140. package/dist/esm/flows/llm_flows/audio_transcriber.js +142 -0
  141. package/dist/esm/index.js +114 -2
  142. package/dist/esm/integrations/agent_registry/helpers.js +1 -1
  143. package/dist/esm/models/gemini_llm_connection.js +16 -8
  144. package/dist/esm/models/google_llm.js +14 -17
  145. package/dist/esm/models/llm_response.js +9 -1
  146. package/dist/esm/models/registry.js +1 -1
  147. package/dist/esm/models/routed_llm.js +9 -8
  148. package/dist/esm/planners/plan_re_act_planner.js +1 -1
  149. package/dist/esm/plugins/base_plugin.js +13 -23
  150. package/dist/esm/runner/in_memory_runner.js +6 -11
  151. package/dist/esm/runner/runner.js +105 -33
  152. package/dist/esm/sessions/base_session_service.js +12 -7
  153. package/dist/esm/sessions/database_session_service.js +49 -28
  154. package/dist/esm/sessions/db/operations.js +1 -1
  155. package/dist/esm/sessions/in_memory_session_service.js +3 -1
  156. package/dist/esm/sessions/stale_session_error.js +31 -0
  157. package/dist/esm/sessions/state.js +8 -4
  158. package/dist/esm/sessions/vertex_ai_session_service.js +34 -15
  159. package/dist/esm/skills/loader.js +51 -17
  160. package/dist/esm/telemetry/setup.js +1 -2
  161. package/dist/esm/telemetry/tracing.js +151 -74
  162. package/dist/esm/tools/agent_tool.js +44 -0
  163. package/dist/esm/tools/apihub_tool/apihub_toolset.js +101 -0
  164. package/dist/esm/tools/apihub_tool/clients/apihub_client.js +244 -0
  165. package/dist/esm/tools/apihub_tool/clients/secret_client.js +132 -0
  166. package/dist/esm/tools/apihub_tool/clients/service_account.js +21 -0
  167. package/dist/esm/tools/application_integration_tool/application_integration_toolset.js +245 -0
  168. package/dist/esm/tools/application_integration_tool/clients/cloud_request.js +103 -0
  169. package/dist/esm/tools/application_integration_tool/clients/connections_client.js +629 -0
  170. package/dist/esm/tools/application_integration_tool/clients/integration_client.js +219 -0
  171. package/dist/esm/tools/application_integration_tool/integration_connector_tool.js +158 -0
  172. package/dist/esm/tools/example_tool.js +13 -1
  173. package/dist/esm/tools/function_tool.js +316 -0
  174. package/dist/esm/tools/google_api_tool/google_api_tool.js +73 -0
  175. package/dist/esm/tools/google_api_tool/google_api_toolset.js +146 -0
  176. package/dist/esm/tools/google_api_tool/google_api_toolsets.js +94 -0
  177. package/dist/esm/tools/google_api_tool/googleapi_to_openapi_converter.js +393 -0
  178. package/dist/esm/tools/google_api_tool/index.js +31 -0
  179. package/dist/esm/tools/load_artifacts_tool.js +10 -5
  180. package/dist/esm/tools/load_memory_tool.js +12 -10
  181. package/dist/esm/tools/mcp/index.js +6 -0
  182. package/dist/esm/tools/mcp/mcp_session_manager.js +25 -0
  183. package/dist/esm/tools/mcp/mcp_toolset.js +1 -14
  184. package/dist/esm/tools/openapi_tool/auth/auth_helpers.js +1 -2
  185. package/dist/esm/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +50 -3
  186. package/dist/esm/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +4 -3
  187. package/dist/esm/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
  188. package/dist/esm/tools/openapi_tool/openapi_spec_parser/openapi_spec_parser.js +20 -6
  189. package/dist/esm/tools/openapi_tool/openapi_spec_parser/operation_parser.js +17 -6
  190. package/dist/esm/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +15 -2
  191. package/dist/esm/tools/openapi_tool/openapi_toolset.js +6 -12
  192. package/dist/esm/tools/openapi_tool/rest_api_tool.js +17 -1
  193. package/dist/esm/tools/retrieval/base_retrieval_tool.js +16 -2
  194. package/dist/esm/tools/toolbox_toolset.js +148 -0
  195. package/dist/esm/tools/webmcp/webmcp_toolset.js +1 -14
  196. package/dist/esm/utils/client_labels.js +19 -2
  197. package/dist/esm/utils/env_aware_utils.js +6 -8
  198. package/dist/esm/utils/error_utils.js +9 -10
  199. package/dist/esm/utils/failover_utils.js +1 -1
  200. package/dist/esm/utils/file_extension_utils.js +11 -0
  201. package/dist/esm/utils/file_utils.js +2 -23
  202. package/dist/esm/utils/gemini_schema_util.js +27 -7
  203. package/dist/esm/utils/json_utils.js +21 -0
  204. package/dist/esm/utils/live_connection_utils.js +4 -5
  205. package/dist/esm/utils/logger_node.js +11 -1
  206. package/dist/esm/utils/object_notation_utils.js +4 -2
  207. package/dist/esm/utils/output_schema_utils.js +5 -2
  208. package/dist/esm/utils/streaming_utils.js +11 -11
  209. package/dist/esm/utils/task.js +1 -1
  210. package/dist/esm/version.js +1 -1
  211. package/dist/types/a2a/a2a_remote_agent.d.ts +9 -0
  212. package/dist/types/a2a/agent_card.d.ts +44 -1
  213. package/dist/types/a2a/agent_to_a2a.d.ts +9 -0
  214. package/dist/types/a2a/index.d.ts +1 -0
  215. package/dist/types/agents/agent_engine_client.d.ts +37 -0
  216. package/dist/types/agents/base_agent.d.ts +12 -0
  217. package/dist/types/agents/functions.d.ts +33 -1
  218. package/dist/types/agents/invocation_context.d.ts +20 -1
  219. package/dist/types/agents/langgraph_agent.d.ts +153 -0
  220. package/dist/types/agents/llm_agent.d.ts +5 -1
  221. package/dist/types/agents/processors/content_processor_utils.d.ts +4 -2
  222. package/dist/types/agents/processors/nl_planning_processor.d.ts +2 -1
  223. package/dist/types/auth/auth_handler.d.ts +28 -1
  224. package/dist/types/auth/auth_schemes.d.ts +13 -0
  225. package/dist/types/cli/cli_eval.d.ts +173 -0
  226. package/dist/types/cli/utils/envs.d.ts +23 -0
  227. package/dist/types/cli/utils/evals.d.ts +47 -0
  228. package/dist/types/cli/utils/logs.d.ts +38 -0
  229. package/dist/types/code_executors/code_execution_utils.d.ts +39 -0
  230. package/dist/types/code_executors/code_executor_context.d.ts +1 -0
  231. package/dist/types/code_executors/container_code_executor.d.ts +17 -5
  232. package/dist/types/common.d.ts +24 -5
  233. package/dist/types/errors/input_validation_error.d.ts +2 -1
  234. package/dist/types/events/event.d.ts +4 -0
  235. package/dist/types/examples/example_util.d.ts +17 -0
  236. package/dist/types/flows/llm_flows/audio_transcriber.d.ts +85 -0
  237. package/dist/types/index.d.ts +19 -2
  238. package/dist/types/models/gemini_llm_connection.d.ts +6 -7
  239. package/dist/types/models/routed_llm.d.ts +1 -1
  240. package/dist/types/plugins/base_plugin.d.ts +0 -10
  241. package/dist/types/runner/in_memory_runner.d.ts +2 -1
  242. package/dist/types/runner/runner.d.ts +34 -0
  243. package/dist/types/sessions/base_session_service.d.ts +5 -0
  244. package/dist/types/sessions/database_session_service.d.ts +17 -1
  245. package/dist/types/sessions/stale_session_error.d.ts +21 -0
  246. package/dist/types/sessions/state.d.ts +5 -1
  247. package/dist/types/sessions/vertex_ai_session_service.d.ts +8 -0
  248. package/dist/types/skills/loader.d.ts +3 -2
  249. package/dist/types/skills/skill.d.ts +1 -1
  250. package/dist/types/telemetry/tracing.d.ts +20 -4
  251. package/dist/types/tools/apihub_tool/apihub_toolset.d.ts +115 -0
  252. package/dist/types/tools/apihub_tool/clients/apihub_client.d.ts +142 -0
  253. package/dist/types/tools/apihub_tool/clients/secret_client.d.ts +55 -0
  254. package/dist/types/tools/apihub_tool/clients/service_account.d.ts +11 -0
  255. package/dist/types/tools/application_integration_tool/application_integration_toolset.d.ts +109 -0
  256. package/dist/types/tools/application_integration_tool/clients/cloud_request.d.ts +53 -0
  257. package/dist/types/tools/application_integration_tool/clients/connections_client.d.ts +229 -0
  258. package/dist/types/tools/application_integration_tool/clients/integration_client.d.ts +72 -0
  259. package/dist/types/tools/application_integration_tool/integration_connector_tool.d.ts +70 -0
  260. package/dist/types/tools/base_toolset.d.ts +6 -5
  261. package/dist/types/tools/example_tool.d.ts +10 -0
  262. package/dist/types/tools/function_tool.d.ts +32 -0
  263. package/dist/types/tools/google_api_tool/google_api_tool.d.ts +37 -0
  264. package/dist/types/tools/google_api_tool/google_api_toolset.d.ts +55 -0
  265. package/dist/types/tools/google_api_tool/google_api_toolsets.d.ts +48 -0
  266. package/dist/types/tools/google_api_tool/googleapi_to_openapi_converter.d.ts +165 -0
  267. package/dist/types/tools/google_api_tool/index.d.ts +10 -0
  268. package/dist/types/tools/load_artifacts_tool.d.ts +14 -1
  269. package/dist/types/tools/load_memory_tool.d.ts +23 -1
  270. package/dist/types/tools/mcp/index.d.ts +3 -0
  271. package/dist/types/tools/mcp/mcp_session_manager.d.ts +34 -1
  272. package/dist/types/tools/mcp/mcp_toolset.d.ts +15 -0
  273. package/dist/types/tools/openapi_tool/auth/auth_helpers.d.ts +19 -0
  274. package/dist/types/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.d.ts +18 -1
  275. package/dist/types/tools/openapi_tool/openapi_spec_parser/openapi_spec_parser.d.ts +12 -0
  276. package/dist/types/tools/openapi_tool/openapi_spec_parser/operation_parser.d.ts +8 -0
  277. package/dist/types/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.d.ts +2 -1
  278. package/dist/types/tools/openapi_tool/openapi_toolset.d.ts +5 -0
  279. package/dist/types/tools/openapi_tool/rest_api_tool.d.ts +10 -0
  280. package/dist/types/tools/retrieval/base_retrieval_tool.d.ts +15 -0
  281. package/dist/types/tools/toolbox_toolset.d.ts +159 -0
  282. package/dist/types/utils/client_labels.d.ts +2 -1
  283. package/dist/types/utils/env_aware_utils.d.ts +18 -2
  284. package/dist/types/utils/error_utils.d.ts +7 -0
  285. package/dist/types/utils/file_utils.d.ts +6 -1
  286. package/dist/types/utils/gemini_schema_util.d.ts +9 -2
  287. package/dist/types/utils/json_utils.d.ts +11 -0
  288. package/dist/types/utils/object_notation_utils.d.ts +7 -0
  289. package/dist/types/utils/output_schema_utils.d.ts +3 -2
  290. package/dist/types/utils/simple_zod_to_json.d.ts +1 -2
  291. package/dist/types/utils/streaming_utils.d.ts +11 -4
  292. package/dist/types/version.d.ts +1 -1
  293. package/dist/web/index_web.js +117 -110
  294. package/dist/web/index_web.js.map +4 -4
  295. package/package.json +38 -26
  296. package/dist/cjs/models/gemini_continuation.js +0 -232
  297. package/dist/esm/models/gemini_continuation.js +0 -205
  298. package/dist/types/models/gemini_continuation.d.ts +0 -59
@@ -0,0 +1,229 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { OpenAPIV3 } from 'openapi-types';
7
+ import { JsonObject } from '../../../utils/json_utils.js';
8
+ /** Options for {@link ConnectionsClient}. */
9
+ export interface ConnectionsClientOptions {
10
+ /** The Google Cloud project ID. */
11
+ project: string;
12
+ /** The Google Cloud location, such as `us-central1`. */
13
+ location: string;
14
+ /** The connection name. */
15
+ connection: string;
16
+ /**
17
+ * A service-account key, as a JSON string. When omitted, requests use
18
+ * Application Default Credentials.
19
+ */
20
+ serviceAccountJson?: string;
21
+ }
22
+ /** Service details of an Integration Connectors connection. */
23
+ export interface ConnectionDetails {
24
+ /** The resource name of the connection, or `''` when not reported. */
25
+ name?: string;
26
+ /**
27
+ * The Service Directory name of the connection. For a connection with a
28
+ * `host`, the TLS Service Directory name.
29
+ */
30
+ serviceName: string;
31
+ /** The host of the connection, or `''` when it has none. */
32
+ host: string;
33
+ /** Whether the connection lets a request override its authentication. */
34
+ authOverrideEnabled: boolean;
35
+ }
36
+ /** The schema of one entity of a connection, and the operations it supports. */
37
+ export interface EntitySchemaAndOperations {
38
+ /** The JSON schema of the entity. */
39
+ schema: JsonObject;
40
+ /** The operations the entity supports, such as `LIST` or `GET`. */
41
+ operations: string[];
42
+ }
43
+ /** The input and output schemas of one action of a connection. */
44
+ export interface ActionSchema {
45
+ /** The JSON schema of the action input. */
46
+ inputSchema: JsonObject;
47
+ /** The JSON schema of the action output. */
48
+ outputSchema: JsonObject;
49
+ /** The description of the action. */
50
+ description: string;
51
+ /** The display name of the action. */
52
+ displayName: string;
53
+ }
54
+ /** The OpenAPI document of the `ExecuteConnection` integration. */
55
+ export interface ConnectorSpec {
56
+ openapi: string;
57
+ info: {
58
+ title: string;
59
+ description: string;
60
+ version: string;
61
+ };
62
+ servers: Array<{
63
+ url: string;
64
+ }>;
65
+ security: Array<Record<string, string[]>>;
66
+ /** Path items, keyed by path. */
67
+ paths: Record<string, JsonObject>;
68
+ components: {
69
+ /** Schemas, keyed by name. */
70
+ schemas: Record<string, JsonObject>;
71
+ securitySchemes: Record<string, OpenAPIV3.SecuritySchemeObject>;
72
+ };
73
+ }
74
+ /** Options for {@link getActionOperation}. */
75
+ export interface GetActionOperationOptions {
76
+ /** The action name. */
77
+ action: string;
78
+ /** `EXECUTE_ACTION`, or `EXECUTE_QUERY` for a custom query. */
79
+ operation: string;
80
+ /** The display name of the action. */
81
+ actionDisplayName: string;
82
+ /** Prefix of the generated `operationId`. Defaults to `''`. */
83
+ toolName?: string;
84
+ /** Text appended to the description. Defaults to `''`. */
85
+ toolInstructions?: string;
86
+ }
87
+ /** Options for {@link listOperation} and {@link getOperation}. */
88
+ export interface EntitySchemaOperationOptions {
89
+ /** The entity name. */
90
+ entity: string;
91
+ /**
92
+ * The entity JSON schema, quoted in the response description. Defaults to
93
+ * `''`.
94
+ */
95
+ schemaAsString?: string;
96
+ /** Prefix of the generated `operationId`. Defaults to `''`. */
97
+ toolName?: string;
98
+ /** Text appended to the description. Defaults to `''`. */
99
+ toolInstructions?: string;
100
+ }
101
+ /**
102
+ * Options for {@link createOperation}, {@link updateOperation} and
103
+ * {@link deleteOperation}.
104
+ */
105
+ export interface EntityOperationOptions {
106
+ /** The entity name. */
107
+ entity: string;
108
+ /** Prefix of the generated `operationId`. Defaults to `''`. */
109
+ toolName?: string;
110
+ /** Text appended to the description. Defaults to `''`. */
111
+ toolInstructions?: string;
112
+ }
113
+ /** The base OpenAPI document of the `ExecuteConnection` integration. */
114
+ export declare const CONNECTOR_BASE_SPEC: ConnectorSpec;
115
+ /**
116
+ * Converts the JSON schema of an entity or an action payload into the
117
+ * OpenAPI schema the connector spec carries.
118
+ *
119
+ * Keeps `description`, maps a `type` array holding `null` to `nullable: true`
120
+ * plus the first other type, and recurses into `properties` of an object and
121
+ * `items` of an array. Every other keyword is dropped.
122
+ *
123
+ * @param jsonSchema The JSON schema.
124
+ * @returns The OpenAPI schema.
125
+ */
126
+ export declare function connectorPayload(jsonSchema: JsonObject): JsonObject;
127
+ /**
128
+ * Builds the path item that runs an action.
129
+ *
130
+ * @param options The action, operation, display name, tool name, and instructions.
131
+ */
132
+ export declare function getActionOperation(options: GetActionOperationOptions): JsonObject;
133
+ /**
134
+ * Builds the path item that lists the records of an entity.
135
+ *
136
+ * @param options The entity, schema string, tool name, and instructions.
137
+ */
138
+ export declare function listOperation(options: EntitySchemaOperationOptions): JsonObject;
139
+ /**
140
+ * Builds the path item that reads one record of an entity.
141
+ *
142
+ * @param options The entity, schema string, tool name, and instructions.
143
+ */
144
+ export declare function getOperation(options: EntitySchemaOperationOptions): JsonObject;
145
+ /**
146
+ * Builds the path item that creates a record of an entity.
147
+ *
148
+ * @param options The entity, tool name, and instructions.
149
+ */
150
+ export declare function createOperation(options: EntityOperationOptions): JsonObject;
151
+ /**
152
+ * Builds the path item that updates a record of an entity.
153
+ *
154
+ * @param options The entity, tool name, and instructions.
155
+ */
156
+ export declare function updateOperation(options: EntityOperationOptions): JsonObject;
157
+ /**
158
+ * Builds the path item that deletes a record of an entity.
159
+ *
160
+ * @param options The entity, tool name, and instructions.
161
+ */
162
+ export declare function deleteOperation(options: EntityOperationOptions): JsonObject;
163
+ /** Builds the request schema of the create operation of an entity. */
164
+ export declare function createOperationRequest(entity: string, options?: {
165
+ includeDynamicAuthConfig?: boolean;
166
+ }): JsonObject;
167
+ /** Builds the request schema of the update operation of an entity. */
168
+ export declare function updateOperationRequest(entity: string, options?: {
169
+ includeDynamicAuthConfig?: boolean;
170
+ }): JsonObject;
171
+ /** Builds the request schema of the get operation. */
172
+ export declare function getOperationRequest(options?: {
173
+ includeDynamicAuthConfig?: boolean;
174
+ }): JsonObject;
175
+ /** Builds the request schema of the delete operation. */
176
+ export declare function deleteOperationRequest(options?: {
177
+ includeDynamicAuthConfig?: boolean;
178
+ }): JsonObject;
179
+ /** Builds the request schema of the list operation. */
180
+ export declare function listOperationRequest(options?: {
181
+ includeDynamicAuthConfig?: boolean;
182
+ }): JsonObject;
183
+ /** Builds the request schema of an action. */
184
+ export declare function actionRequest(action: string, options?: {
185
+ includeDynamicAuthConfig?: boolean;
186
+ }): JsonObject;
187
+ /** Builds the response schema of an action. */
188
+ export declare function actionResponse(action: string): JsonObject;
189
+ /** Builds the request schema of the `ExecuteCustomQuery` action. */
190
+ export declare function executeCustomQueryRequest(): JsonObject;
191
+ /**
192
+ * A client for the Integration Connectors API.
193
+ *
194
+ * It reads the details, entity schemas and action schemas of one connection.
195
+ */
196
+ export declare class ConnectionsClient {
197
+ private readonly project;
198
+ private readonly location;
199
+ private readonly connection;
200
+ private readonly tokenSource;
201
+ constructor(options: ConnectionsClientOptions);
202
+ /**
203
+ * Reads the resource name, service name and host of the connection, and
204
+ * whether it allows an authentication override.
205
+ */
206
+ getConnectionDetails(): Promise<ConnectionDetails>;
207
+ /**
208
+ * Reads the JSON schema of an entity and the operations it supports.
209
+ *
210
+ * @param entity The entity name.
211
+ * @throws Error When the API starts no operation for the entity.
212
+ */
213
+ getEntitySchemaAndOperations(entity: string): Promise<EntitySchemaAndOperations>;
214
+ /**
215
+ * Reads the input and output JSON schemas of an action.
216
+ *
217
+ * @param action The action name.
218
+ * @throws Error When the API starts no operation for the action.
219
+ */
220
+ getActionSchema(action: string): Promise<ActionSchema>;
221
+ /**
222
+ * Converts the JSON schema of an entity or an action payload into the
223
+ * OpenAPI schema the connector spec carries.
224
+ */
225
+ connectorPayload(jsonSchema: JsonObject): JsonObject;
226
+ private executeApiCall;
227
+ /** Polls a long-running operation until it reports `done`. */
228
+ private pollOperation;
229
+ }
@@ -0,0 +1,72 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { JsonObject } from '../../../utils/json_utils.js';
7
+ import { ConnectorSpec } from './connections_client.js';
8
+ /** Options for {@link IntegrationClient}. */
9
+ export interface IntegrationClientOptions {
10
+ /** The Google Cloud project ID. */
11
+ project: string;
12
+ /** The Google Cloud location, such as `us-central1`. */
13
+ location: string;
14
+ /** The integration name. */
15
+ integration?: string;
16
+ /** The API trigger IDs of the integration. */
17
+ triggers?: string[];
18
+ /** The connection name. */
19
+ connection?: string;
20
+ /**
21
+ * Operations to expose, keyed by entity name, such as
22
+ * `{Issues: ['LIST', 'GET']}`. An empty list exposes every operation the
23
+ * entity supports.
24
+ */
25
+ entityOperations?: Record<string, string[]>;
26
+ /** Actions to expose. */
27
+ actions?: string[];
28
+ /**
29
+ * A service-account key, as a JSON string. When omitted, requests use
30
+ * Application Default Credentials.
31
+ */
32
+ serviceAccountJson?: string;
33
+ }
34
+ /**
35
+ * A client for Google Cloud Application Integration.
36
+ *
37
+ * It returns the OpenAPI spec of an integration API trigger, or builds one for
38
+ * the entity operations and actions of an Integration Connectors connection.
39
+ */
40
+ export declare class IntegrationClient {
41
+ private readonly project;
42
+ private readonly location;
43
+ private readonly integration?;
44
+ private readonly triggers?;
45
+ private readonly connection?;
46
+ private readonly entityOperations;
47
+ private readonly actions;
48
+ private readonly serviceAccountJson?;
49
+ private readonly tokenSource;
50
+ constructor(options: IntegrationClientOptions);
51
+ /**
52
+ * Fetches the OpenAPI spec Application Integration generates for the API
53
+ * trigger of the integration.
54
+ *
55
+ * @throws Error For a rejected request, a missing credential, or a response
56
+ * that carries no parseable spec.
57
+ */
58
+ getOpenApiSpecForIntegration(): Promise<JsonObject>;
59
+ /**
60
+ * Builds an OpenAPI spec for the entity operations and actions of the
61
+ * connection.
62
+ *
63
+ * Every operation becomes a POST to the `ExecuteConnection` integration,
64
+ * with a path fragment that keeps the paths distinct.
65
+ *
66
+ * @param toolName Prefix of every generated `operationId`.
67
+ * @param toolInstructions Text appended to every operation description.
68
+ * @throws Error When neither entity operations nor actions are configured,
69
+ * or an operation is not one of create, update, delete, list or get.
70
+ */
71
+ getOpenApiSpecForConnection(toolName?: string, toolInstructions?: string): Promise<ConnectorSpec>;
72
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { FunctionDeclaration } from '@google/genai';
7
+ import { AuthCredential } from '../../auth/auth_credential.js';
8
+ import { AuthScheme } from '../../auth/auth_schemes.js';
9
+ import { BaseTool, BaseToolParams, RunAsyncToolRequest } from '../base_tool.js';
10
+ import { RestApiTool } from '../openapi_tool/rest_api_tool.js';
11
+ /** Options for {@link IntegrationConnectorTool}. */
12
+ export interface IntegrationConnectorToolOptions extends BaseToolParams {
13
+ /** The Integration Connectors connection resource name. */
14
+ connectionName: string;
15
+ /** The host of the connection, or `''` when it has none. */
16
+ connectionHost: string;
17
+ /** The Service Directory name of the connection. */
18
+ connectionServiceName: string;
19
+ /** The Integration Connectors entity targeted by the tool, if any. */
20
+ entity?: string;
21
+ /** The connector operation executed by the tool, if any. */
22
+ operation?: string;
23
+ /** The connector action executed by the tool, if any. */
24
+ action?: string;
25
+ /** The underlying {@link RestApiTool} that executes the HTTP request. */
26
+ restApiTool: RestApiTool;
27
+ /** The authentication scheme for dynamic end-user credentials, if any. */
28
+ authScheme?: AuthScheme;
29
+ /** The authentication credential for dynamic end-user credentials, if any. */
30
+ authCredential?: AuthCredential;
31
+ }
32
+ /**
33
+ * Wraps a {@link RestApiTool} for an Integration Connectors operation, hiding
34
+ * connection and routing fields from the model declaration and injecting them
35
+ * when the tool runs.
36
+ */
37
+ export declare class IntegrationConnectorTool extends BaseTool {
38
+ /**
39
+ * Request fields that {@link IntegrationConnectorTool} injects at runtime and
40
+ * excludes from the function declaration shown to the model.
41
+ */
42
+ static readonly EXCLUDE_FIELDS: readonly string[];
43
+ /**
44
+ * Request fields that {@link IntegrationConnectorTool} removes from the
45
+ * `required` list in the function declaration shown to the model.
46
+ */
47
+ static readonly OPTIONAL_FIELDS: readonly string[];
48
+ readonly connectionName: string;
49
+ readonly connectionHost: string;
50
+ readonly connectionServiceName: string;
51
+ readonly entity: string;
52
+ readonly operation: string;
53
+ readonly action: string;
54
+ readonly restApiTool: RestApiTool;
55
+ readonly authScheme?: AuthScheme;
56
+ readonly authCredential?: AuthCredential;
57
+ constructor(options: IntegrationConnectorToolOptions);
58
+ /**
59
+ * Returns the Gemini `FunctionDeclaration` with connection routing fields
60
+ * removed from `parameters.properties` and optional and excluded fields
61
+ * removed from `parameters.required`.
62
+ */
63
+ _getDeclaration(): FunctionDeclaration;
64
+ /**
65
+ * Injects the connection details and the configured entity, operation, and
66
+ * action into a copy of `request.args` and delegates execution to the wrapped
67
+ * {@link RestApiTool}.
68
+ */
69
+ runAsync(request: RunAsyncToolRequest): Promise<unknown>;
70
+ }
@@ -8,11 +8,12 @@ import { LlmRequest } from '../models/llm_request.js';
8
8
  import { Context } from '../agents/context.js';
9
9
  import { BaseTool } from './base_tool.js';
10
10
  /**
11
- * Function to decide whether a tool should be exposed to LLM. Toolset
12
- * implementer could consider whether to accept such instance in the toolset's
13
- * constructor and apply the predicate in getTools method.
11
+ * Decides whether a tool should be exposed to the LLM based on the tool and
12
+ * optional context.
14
13
  */
15
- export type ToolPredicate = (tool: BaseTool, readonlyContext: ReadonlyContext) => boolean;
14
+ export type ToolPredicate = {
15
+ bivariance(tool: BaseTool, readonlyContext?: ReadonlyContext): boolean;
16
+ }['bivariance'];
16
17
  /**
17
18
  * A unique symbol to identify ADK agent classes.
18
19
  * Defined once and shared by all BaseTool instances.
@@ -55,7 +56,7 @@ export declare abstract class BaseToolset {
55
56
  * @param context Context used to filter tools available to the agent.
56
57
  * @return Whether the tool should be exposed to LLM.
57
58
  */
58
- protected isToolSelected(tool: BaseTool, context: ReadonlyContext): boolean;
59
+ protected isToolSelected(tool: BaseTool, context?: ReadonlyContext): boolean;
59
60
  /**
60
61
  * Processes the outgoing LLM request for this toolset. This method will be
61
62
  * called before each tool processes the llm request.
@@ -12,9 +12,19 @@ import { BaseTool, RunAsyncToolRequest, ToolProcessLlmRequest } from './base_too
12
12
  * This tool is executed for each LLM request and is never called by the model;
13
13
  * it only mutates the outgoing request by appending few-shot instructions built
14
14
  * from the latest user query.
15
+ *
16
+ * The constructor checks `examples` at runtime, so a malformed value fails
17
+ * where it is supplied rather than on every later LLM request.
15
18
  */
16
19
  export declare class ExampleTool extends BaseTool {
20
+ /** The examples to add to the LLM request. */
17
21
  readonly examples: Example[] | BaseExampleProvider;
22
+ /**
23
+ * @param examples - A list of {@link Example}s, or a
24
+ * {@link BaseExampleProvider} that returns them for a query.
25
+ * @throws {InputValidationError} When `examples` is neither a
26
+ * {@link BaseExampleProvider} nor a list of well-formed examples.
27
+ */
18
28
  constructor(examples: Example[] | BaseExampleProvider);
19
29
  runAsync(_request: RunAsyncToolRequest): Promise<unknown>;
20
30
  processLlmRequest({ toolContext, llmRequest, }: ToolProcessLlmRequest): Promise<void>;
@@ -8,6 +8,8 @@ import { z as z3 } from 'zod/v3';
8
8
  import { z as z4 } from 'zod/v4';
9
9
  import { Context } from '../agents/context.js';
10
10
  import { BaseTool, RunAsyncToolRequest } from './base_tool.js';
11
+ import { InvocationContext } from '../agents/invocation_context.js';
12
+ import { SchemaLike } from '../utils/schema.js';
11
13
  /**
12
14
  * Input parameters of the function tool.
13
15
  */
@@ -59,6 +61,8 @@ export type ToolOptions<TParameters extends ToolInputParameters> = {
59
61
  name?: string;
60
62
  description: string;
61
63
  parameters?: TParameters;
64
+ /** Optional schema describing the tool's return value. */
65
+ response?: SchemaLike;
62
66
  execute: ToolExecuteFunction<TParameters>;
63
67
  isLongRunning?: boolean;
64
68
  /**
@@ -80,6 +84,14 @@ export type ToolOptions<TParameters extends ToolInputParameters> = {
80
84
  */
81
85
  requireConfirmation?: RequireConfirmation<TParameters>;
82
86
  };
87
+ /**
88
+ * The parameters for `_callLive`.
89
+ */
90
+ export interface CallLiveToolRequest {
91
+ args: Record<string, unknown>;
92
+ toolContext: Context;
93
+ invocationContext: InvocationContext;
94
+ }
83
95
  /**
84
96
  * A unique symbol to identify ADK agent classes.
85
97
  * Defined once and shared by all BaseTool instances.
@@ -114,6 +126,7 @@ export declare class FunctionTool<TParameters extends ToolInputParameters = unde
114
126
  readonly [FUNCTION_TOOL_SIGNATURE_SYMBOL] = true;
115
127
  private readonly execute;
116
128
  private readonly parameters?;
129
+ private readonly response?;
117
130
  private readonly requireConfirmation;
118
131
  /**
119
132
  * The constructor acts as the user-friendly factory.
@@ -136,6 +149,13 @@ export declare class FunctionTool<TParameters extends ToolInputParameters = unde
136
149
  * `parameters` schema rejects the arguments or `execute` throws.
137
150
  */
138
151
  runAsync(req: RunAsyncToolRequest): Promise<unknown>;
152
+ /**
153
+ * Invokes the tool in live streaming mode, injecting any active input stream
154
+ * from the invocation context and yielding items from the returned stream.
155
+ *
156
+ * @param req The live tool invocation request.
157
+ */
158
+ _callLive(req: CallLiveToolRequest): AsyncGenerator<unknown, void, void>;
139
159
  /**
140
160
  * Whether this call is gated on human approval — the static flag, or the
141
161
  * predicate evaluated against the validated arguments.
@@ -157,4 +177,16 @@ export declare class FunctionTool<TParameters extends ToolInputParameters = unde
157
177
  */
158
178
  private checkConfirmation;
159
179
  }
180
+ /**
181
+ * Builds a `FunctionDeclaration` from a normalized parameter schema.
182
+ */
183
+ export declare function buildFunctionDeclarationUtil(vertexai: boolean, name: string, description: string, func: unknown, beforeParamSchema: Record<string, unknown>): FunctionDeclaration;
184
+ /**
185
+ * Builds a `FunctionDeclaration` for a LangChain tool parameter map.
186
+ */
187
+ export declare function buildFunctionDeclarationForLangchain(vertexai: boolean, name: string, description: string, func: unknown, paramSchema: Record<string, unknown>): FunctionDeclaration;
188
+ /**
189
+ * Builds a `FunctionDeclaration` for a CrewAI tool parameter schema.
190
+ */
191
+ export declare function buildFunctionDeclarationForParamsForCrewai(vertexai: boolean, name: string, description: string, func: unknown, paramSchema: Record<string, unknown>): FunctionDeclaration;
160
192
  export {};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { FunctionDeclaration } from '@google/genai';
7
+ import { BaseTool, RunAsyncToolRequest } from '../base_tool.js';
8
+ import { RestApiTool } from '../openapi_tool/rest_api_tool.js';
9
+ declare const GOOGLE_API_TOOL_SIGNATURE_SYMBOL: unique symbol;
10
+ /**
11
+ * Options for constructing a {@link GoogleApiTool}.
12
+ */
13
+ export interface GoogleApiToolOptions {
14
+ clientId?: string;
15
+ clientSecret?: string;
16
+ }
17
+ /**
18
+ * Type guard to check if an object is an instance of {@link GoogleApiTool}.
19
+ */
20
+ export declare function isGoogleApiTool(obj: unknown): obj is GoogleApiTool;
21
+ /**
22
+ * Wraps a {@link RestApiTool} created from a Google API specification and adds
23
+ * helper methods for configuring Google OpenID Connect credentials.
24
+ */
25
+ export declare class GoogleApiTool extends BaseTool {
26
+ readonly [GOOGLE_API_TOOL_SIGNATURE_SYMBOL] = true;
27
+ private readonly restApiTool;
28
+ constructor(restApiTool: RestApiTool, options?: GoogleApiToolOptions);
29
+ _getDeclaration(): FunctionDeclaration;
30
+ runAsync(request: RunAsyncToolRequest): Promise<unknown>;
31
+ /**
32
+ * Configures OpenID Connect OAuth2 client credentials on the underlying
33
+ * {@link RestApiTool}.
34
+ */
35
+ configureAuth(clientId?: string, clientSecret?: string): void;
36
+ }
37
+ export {};
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { ReadonlyContext } from '../../agents/readonly_context.js';
7
+ import { BaseToolset, ToolPredicate } from '../base_toolset.js';
8
+ import { GoogleApiTool } from './google_api_tool.js';
9
+ declare const GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL: unique symbol;
10
+ /**
11
+ * Options for constructing a {@link GoogleApiToolset}.
12
+ */
13
+ export interface GoogleApiToolsetOptions {
14
+ apiName?: string;
15
+ apiVersion?: string;
16
+ clientId?: string;
17
+ clientSecret?: string;
18
+ toolFilter?: ToolPredicate | string[];
19
+ }
20
+ /**
21
+ * Type guard to check if an object is an instance of {@link GoogleApiToolset}.
22
+ */
23
+ export declare function isGoogleApiToolset(obj: unknown): obj is GoogleApiToolset;
24
+ /**
25
+ * Toolset that wraps Google Discovery API operations as {@link GoogleApiTool}
26
+ * instances configured for Google OpenID Connect authentication.
27
+ */
28
+ export declare class GoogleApiToolset extends BaseToolset {
29
+ readonly [GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL] = true;
30
+ toolFilter: ToolPredicate | string[];
31
+ readonly apiName?: string;
32
+ readonly apiVersion?: string;
33
+ private clientId?;
34
+ private clientSecret?;
35
+ private openapiToolset?;
36
+ private loadingPromise?;
37
+ private tools;
38
+ constructor(options?: GoogleApiToolsetOptions);
39
+ private loadToolsetWithOidcAuth;
40
+ private ensureToolsLoaded;
41
+ /**
42
+ * Returns all tools in the toolset matching the active `toolFilter`.
43
+ */
44
+ getTools(context?: ReadonlyContext): Promise<GoogleApiTool[]>;
45
+ /**
46
+ * Updates the tool filter used by {@link getTools}.
47
+ */
48
+ setToolFilter(toolFilter: ToolPredicate | string[]): void;
49
+ /**
50
+ * Configures OAuth2 client ID and secret across all tools in the toolset.
51
+ */
52
+ configureAuth(clientId?: string, clientSecret?: string): void;
53
+ close(): Promise<void>;
54
+ }
55
+ export {};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { GoogleApiToolset, type GoogleApiToolsetOptions } from './google_api_toolset.js';
7
+ /**
8
+ * Toolset for the Google BigQuery v2 API.
9
+ */
10
+ export declare class BigQueryToolset extends GoogleApiToolset {
11
+ constructor(options?: GoogleApiToolsetOptions);
12
+ }
13
+ /**
14
+ * Toolset for the Google Calendar v3 API.
15
+ */
16
+ export declare class CalendarToolset extends GoogleApiToolset {
17
+ constructor(options?: GoogleApiToolsetOptions);
18
+ }
19
+ /**
20
+ * Toolset for the Gmail v1 API.
21
+ */
22
+ export declare class GmailToolset extends GoogleApiToolset {
23
+ constructor(options?: GoogleApiToolsetOptions);
24
+ }
25
+ /**
26
+ * Toolset for the YouTube Data v3 API.
27
+ */
28
+ export declare class YoutubeToolset extends GoogleApiToolset {
29
+ constructor(options?: GoogleApiToolsetOptions);
30
+ }
31
+ /**
32
+ * Toolset for the Google Slides v1 API.
33
+ */
34
+ export declare class SlidesToolset extends GoogleApiToolset {
35
+ constructor(options?: GoogleApiToolsetOptions);
36
+ }
37
+ /**
38
+ * Toolset for the Google Sheets v4 API.
39
+ */
40
+ export declare class SheetsToolset extends GoogleApiToolset {
41
+ constructor(options?: GoogleApiToolsetOptions);
42
+ }
43
+ /**
44
+ * Toolset for the Google Docs v1 API.
45
+ */
46
+ export declare class DocsToolset extends GoogleApiToolset {
47
+ constructor(options?: GoogleApiToolsetOptions);
48
+ }