@google/adk 2.2.1 → 2.3.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.
- package/dist/cjs/a2a/a2a_remote_agent.js +4 -1
- package/dist/cjs/a2a/agent_card.js +102 -26
- package/dist/cjs/a2a/agent_to_a2a.js +1 -1
- package/dist/cjs/agents/functions.js +199 -25
- package/dist/cjs/agents/instructions.js +4 -1
- package/dist/cjs/agents/invocation_context.js +26 -4
- package/dist/cjs/agents/langgraph_agent.js +152 -0
- package/dist/cjs/agents/llm_agent.js +175 -101
- package/dist/cjs/agents/processors/code_execution_request_processor.js +10 -6
- package/dist/cjs/agents/remote_agent.js +187 -0
- package/dist/cjs/artifacts/in_memory_artifact_service.js +14 -0
- package/dist/cjs/auth/auth_handler.js +37 -5
- package/dist/cjs/auth/auth_schemes.js +9 -0
- package/dist/cjs/cli/cli_eval.js +532 -0
- package/dist/cjs/cli/utils/envs.js +116 -0
- package/dist/cjs/cli/utils/evals.js +137 -0
- package/dist/cjs/cli/utils/logs.js +150 -0
- package/dist/cjs/code_executors/agent_engine_sandbox_code_executor.js +7 -2
- package/dist/cjs/code_executors/code_execution_utils.js +48 -16
- package/dist/cjs/code_executors/code_executor_context.js +6 -2
- package/dist/cjs/common.js +72 -0
- package/dist/cjs/context/summarizers/llm_summarizer.js +12 -10
- package/dist/cjs/context/token_based_context_compactor.js +2 -1
- package/dist/cjs/events/event.js +4 -2
- package/dist/cjs/examples/example_util.js +23 -2
- package/dist/cjs/flows/llm_flows/audio_transcriber.js +170 -0
- package/dist/cjs/index.js +97 -1
- package/dist/cjs/integrations/agent_registry/helpers.js +1 -1
- package/dist/cjs/models/gemini_llm_connection.js +16 -8
- package/dist/cjs/models/google_llm.js +13 -16
- package/dist/cjs/models/llm_response.js +9 -1
- package/dist/cjs/models/registry.js +1 -1
- package/dist/cjs/models/routed_llm.js +9 -8
- package/dist/cjs/planners/plan_re_act_planner.js +1 -1
- package/dist/cjs/runner/in_memory_runner.js +6 -11
- package/dist/cjs/runner/runner.js +105 -33
- package/dist/cjs/sessions/db/operations.js +1 -1
- package/dist/cjs/sessions/in_memory_session_service.js +3 -1
- package/dist/cjs/sessions/state.js +8 -4
- package/dist/cjs/sessions/vertex_ai_session_service.js +34 -15
- package/dist/cjs/telemetry/tracing.js +97 -66
- package/dist/cjs/tools/agent_tool.js +44 -0
- package/dist/cjs/tools/apihub_tool/apihub_toolset.js +142 -0
- package/dist/cjs/tools/apihub_tool/clients/apihub_client.js +272 -0
- package/dist/cjs/tools/apihub_tool/clients/secret_client.js +148 -0
- package/dist/cjs/tools/apihub_tool/clients/service_account.js +48 -0
- package/dist/cjs/tools/application_integration_tool/application_integration_toolset.js +185 -0
- package/dist/cjs/tools/application_integration_tool/clients/cloud_request.js +133 -0
- package/dist/cjs/tools/application_integration_tool/clients/connections_client.js +603 -0
- package/dist/cjs/tools/application_integration_tool/clients/integration_client.js +219 -0
- package/dist/cjs/tools/crewai_tool.js +132 -0
- package/dist/cjs/tools/example_tool.js +10 -0
- package/dist/cjs/tools/function_tool.js +319 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool.js +97 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool_set.js +226 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool_sets.js +58 -0
- package/dist/cjs/tools/google_api_tool/googleapi_to_openapi_converter.js +440 -0
- package/dist/cjs/tools/google_api_tool/index.js +64 -0
- package/dist/cjs/tools/langchain_tool.js +172 -0
- package/dist/cjs/tools/mcp/index.js +12 -0
- package/dist/cjs/tools/mcp/mcp_session_manager.js +25 -0
- package/dist/cjs/tools/openapi_tool/auth/auth_helpers.js +1 -2
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +46 -2
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +2 -1
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
- package/dist/cjs/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +14 -2
- package/dist/cjs/tools/retrieval/base_retrieval_tool.js +18 -3
- package/dist/cjs/tools/toolbox_tool.js +108 -0
- package/dist/cjs/utils/env_aware_utils.js +6 -8
- package/dist/cjs/utils/error_utils.js +11 -11
- package/dist/cjs/utils/file_extension_utils.js +11 -0
- package/dist/cjs/utils/file_utils.js +2 -24
- package/dist/cjs/utils/gemini_schema_util.js +4 -1
- package/dist/cjs/utils/json_utils.js +49 -0
- package/dist/cjs/utils/live_connection_utils.js +4 -5
- package/dist/cjs/utils/logger_node.js +7 -1
- package/dist/cjs/utils/object_notation_utils.js +6 -3
- package/dist/cjs/utils/streaming_utils.js +12 -12
- package/dist/cjs/version.js +1 -1
- package/dist/esm/a2a/a2a_remote_agent.js +4 -1
- package/dist/esm/a2a/agent_card.js +103 -27
- package/dist/esm/a2a/agent_to_a2a.js +5 -2
- package/dist/esm/agents/functions.js +198 -25
- package/dist/esm/agents/instructions.js +4 -1
- package/dist/esm/agents/invocation_context.js +24 -4
- package/dist/esm/agents/langgraph_agent.js +123 -0
- package/dist/esm/agents/llm_agent.js +185 -104
- package/dist/esm/agents/processors/code_execution_request_processor.js +13 -8
- package/dist/esm/agents/remote_agent.js +164 -0
- package/dist/esm/artifacts/in_memory_artifact_service.js +14 -0
- package/dist/esm/auth/auth_handler.js +37 -5
- package/dist/esm/auth/auth_schemes.js +8 -0
- package/dist/esm/cli/cli_eval.js +510 -0
- package/dist/esm/cli/utils/envs.js +78 -0
- package/dist/esm/cli/utils/evals.js +109 -0
- package/dist/esm/cli/utils/logs.js +111 -0
- package/dist/esm/code_executors/agent_engine_sandbox_code_executor.js +7 -2
- package/dist/esm/code_executors/code_execution_utils.js +46 -16
- package/dist/esm/code_executors/code_executor_context.js +5 -2
- package/dist/esm/common.js +67 -3
- package/dist/esm/context/summarizers/llm_summarizer.js +12 -10
- package/dist/esm/context/token_based_context_compactor.js +2 -1
- package/dist/esm/events/event.js +4 -2
- package/dist/esm/examples/example_util.js +21 -1
- package/dist/esm/flows/llm_flows/audio_transcriber.js +142 -0
- package/dist/esm/index.js +99 -1
- package/dist/esm/integrations/agent_registry/helpers.js +1 -1
- package/dist/esm/models/gemini_llm_connection.js +16 -8
- package/dist/esm/models/google_llm.js +14 -17
- package/dist/esm/models/llm_response.js +9 -1
- package/dist/esm/models/registry.js +1 -1
- package/dist/esm/models/routed_llm.js +9 -8
- package/dist/esm/planners/plan_re_act_planner.js +1 -1
- package/dist/esm/runner/in_memory_runner.js +6 -11
- package/dist/esm/runner/runner.js +105 -33
- package/dist/esm/sessions/db/operations.js +1 -1
- package/dist/esm/sessions/in_memory_session_service.js +3 -1
- package/dist/esm/sessions/state.js +8 -4
- package/dist/esm/sessions/vertex_ai_session_service.js +34 -15
- package/dist/esm/telemetry/tracing.js +97 -66
- package/dist/esm/tools/agent_tool.js +44 -0
- package/dist/esm/tools/apihub_tool/apihub_toolset.js +106 -0
- package/dist/esm/tools/apihub_tool/clients/apihub_client.js +244 -0
- package/dist/esm/tools/apihub_tool/clients/secret_client.js +132 -0
- package/dist/esm/tools/apihub_tool/clients/service_account.js +21 -0
- package/dist/esm/tools/application_integration_tool/application_integration_toolset.js +163 -0
- package/dist/esm/tools/application_integration_tool/clients/cloud_request.js +103 -0
- package/dist/esm/tools/application_integration_tool/clients/connections_client.js +561 -0
- package/dist/esm/tools/application_integration_tool/clients/integration_client.js +215 -0
- package/dist/esm/tools/crewai_tool.js +107 -0
- package/dist/esm/tools/example_tool.js +13 -1
- package/dist/esm/tools/function_tool.js +316 -0
- package/dist/esm/tools/google_api_tool/google_api_tool.js +70 -0
- package/dist/esm/tools/google_api_tool/google_api_tool_set.js +188 -0
- package/dist/esm/tools/google_api_tool/google_api_tool_sets.js +24 -0
- package/dist/esm/tools/google_api_tool/googleapi_to_openapi_converter.js +393 -0
- package/dist/esm/tools/google_api_tool/index.js +33 -0
- package/dist/esm/tools/langchain_tool.js +148 -0
- package/dist/esm/tools/mcp/index.js +6 -0
- package/dist/esm/tools/mcp/mcp_session_manager.js +25 -0
- package/dist/esm/tools/openapi_tool/auth/auth_helpers.js +1 -2
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +50 -3
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +2 -1
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
- package/dist/esm/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +15 -2
- package/dist/esm/tools/retrieval/base_retrieval_tool.js +16 -2
- package/dist/esm/tools/toolbox_tool.js +80 -0
- package/dist/esm/utils/env_aware_utils.js +6 -8
- package/dist/esm/utils/error_utils.js +9 -10
- package/dist/esm/utils/file_extension_utils.js +11 -0
- package/dist/esm/utils/file_utils.js +2 -23
- package/dist/esm/utils/gemini_schema_util.js +4 -1
- package/dist/esm/utils/json_utils.js +21 -0
- package/dist/esm/utils/live_connection_utils.js +4 -5
- package/dist/esm/utils/logger_node.js +7 -1
- package/dist/esm/utils/object_notation_utils.js +4 -2
- package/dist/esm/utils/streaming_utils.js +11 -11
- package/dist/esm/version.js +1 -1
- package/dist/types/a2a/a2a_remote_agent.d.ts +9 -0
- package/dist/types/a2a/agent_card.d.ts +44 -1
- package/dist/types/a2a/agent_to_a2a.d.ts +9 -0
- package/dist/types/a2a/index.d.ts +1 -0
- package/dist/types/agents/functions.d.ts +33 -1
- package/dist/types/agents/invocation_context.d.ts +20 -1
- package/dist/types/agents/langgraph_agent.d.ts +153 -0
- package/dist/types/agents/remote_agent.d.ts +68 -0
- package/dist/types/auth/auth_handler.d.ts +28 -1
- package/dist/types/auth/auth_schemes.d.ts +13 -0
- package/dist/types/cli/cli_eval.d.ts +173 -0
- package/dist/types/cli/utils/envs.d.ts +23 -0
- package/dist/types/cli/utils/evals.d.ts +47 -0
- package/dist/types/cli/utils/logs.d.ts +38 -0
- package/dist/types/code_executors/code_execution_utils.d.ts +39 -0
- package/dist/types/code_executors/code_executor_context.d.ts +1 -0
- package/dist/types/common.d.ts +27 -4
- package/dist/types/events/event.d.ts +4 -0
- package/dist/types/examples/example_util.d.ts +17 -0
- package/dist/types/flows/llm_flows/audio_transcriber.d.ts +85 -0
- package/dist/types/index.d.ts +16 -1
- package/dist/types/models/gemini_llm_connection.d.ts +6 -7
- package/dist/types/models/routed_llm.d.ts +1 -1
- package/dist/types/runner/in_memory_runner.d.ts +2 -1
- package/dist/types/runner/runner.d.ts +34 -0
- package/dist/types/sessions/state.d.ts +5 -1
- package/dist/types/sessions/vertex_ai_session_service.d.ts +8 -0
- package/dist/types/skills/skill.d.ts +1 -1
- package/dist/types/telemetry/tracing.d.ts +4 -2
- package/dist/types/tools/apihub_tool/apihub_toolset.d.ts +122 -0
- package/dist/types/tools/apihub_tool/clients/apihub_client.d.ts +142 -0
- package/dist/types/tools/apihub_tool/clients/secret_client.d.ts +55 -0
- package/dist/types/tools/apihub_tool/clients/service_account.d.ts +11 -0
- package/dist/types/tools/application_integration_tool/application_integration_toolset.d.ts +86 -0
- package/dist/types/tools/application_integration_tool/clients/cloud_request.d.ts +53 -0
- package/dist/types/tools/application_integration_tool/clients/connections_client.d.ts +215 -0
- package/dist/types/tools/application_integration_tool/clients/integration_client.d.ts +72 -0
- package/dist/types/tools/crewai_tool.d.ts +85 -0
- package/dist/types/tools/example_tool.d.ts +10 -0
- package/dist/types/tools/function_tool.d.ts +32 -0
- package/dist/types/tools/google_api_tool/google_api_tool.d.ts +30 -0
- package/dist/types/tools/google_api_tool/google_api_tool_set.d.ts +78 -0
- package/dist/types/tools/google_api_tool/google_api_tool_sets.d.ts +33 -0
- package/dist/types/tools/google_api_tool/googleapi_to_openapi_converter.d.ts +164 -0
- package/dist/types/tools/google_api_tool/index.d.ts +11 -0
- package/dist/types/tools/langchain_tool.d.ts +103 -0
- package/dist/types/tools/mcp/index.d.ts +3 -0
- package/dist/types/tools/mcp/mcp_session_manager.d.ts +34 -1
- package/dist/types/tools/mcp/mcp_toolset.d.ts +15 -0
- package/dist/types/tools/openapi_tool/auth/auth_helpers.d.ts +19 -0
- package/dist/types/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.d.ts +18 -1
- package/dist/types/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.d.ts +2 -1
- package/dist/types/tools/retrieval/base_retrieval_tool.d.ts +15 -0
- package/dist/types/tools/toolbox_tool.d.ts +73 -0
- package/dist/types/utils/env_aware_utils.d.ts +18 -2
- package/dist/types/utils/error_utils.d.ts +7 -0
- package/dist/types/utils/file_utils.d.ts +6 -1
- package/dist/types/utils/gemini_schema_util.d.ts +1 -2
- package/dist/types/utils/json_utils.d.ts +11 -0
- package/dist/types/utils/object_notation_utils.d.ts +7 -0
- package/dist/types/utils/streaming_utils.d.ts +11 -4
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index_web.js +102 -103
- package/dist/web/index_web.js.map +4 -4
- package/package.json +8 -3
- package/dist/cjs/models/gemini_continuation.js +0 -232
- package/dist/esm/models/gemini_continuation.js +0 -205
- package/dist/types/models/gemini_continuation.d.ts +0 -59
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
/**
|
|
25
|
+
* The Service Directory name of the connection. For a connection with a
|
|
26
|
+
* `host`, the TLS Service Directory name.
|
|
27
|
+
*/
|
|
28
|
+
serviceName: string;
|
|
29
|
+
/** The host of the connection, or `''` when it has none. */
|
|
30
|
+
host: string;
|
|
31
|
+
/** Whether the connection lets a request override its authentication. */
|
|
32
|
+
authOverrideEnabled: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** The schema of one entity of a connection, and the operations it supports. */
|
|
35
|
+
export interface EntitySchemaAndOperations {
|
|
36
|
+
/** The JSON schema of the entity. */
|
|
37
|
+
schema: JsonObject;
|
|
38
|
+
/** The operations the entity supports, such as `LIST` or `GET`. */
|
|
39
|
+
operations: string[];
|
|
40
|
+
}
|
|
41
|
+
/** The input and output schemas of one action of a connection. */
|
|
42
|
+
export interface ActionSchema {
|
|
43
|
+
/** The JSON schema of the action input. */
|
|
44
|
+
inputSchema: JsonObject;
|
|
45
|
+
/** The JSON schema of the action output. */
|
|
46
|
+
outputSchema: JsonObject;
|
|
47
|
+
/** The description of the action. */
|
|
48
|
+
description: string;
|
|
49
|
+
/** The display name of the action. */
|
|
50
|
+
displayName: string;
|
|
51
|
+
}
|
|
52
|
+
/** The OpenAPI document of the `ExecuteConnection` integration. */
|
|
53
|
+
export interface ConnectorSpec {
|
|
54
|
+
openapi: string;
|
|
55
|
+
info: {
|
|
56
|
+
title: string;
|
|
57
|
+
description: string;
|
|
58
|
+
version: string;
|
|
59
|
+
};
|
|
60
|
+
servers: Array<{
|
|
61
|
+
url: string;
|
|
62
|
+
}>;
|
|
63
|
+
security: Array<Record<string, string[]>>;
|
|
64
|
+
/** Path items, keyed by path. */
|
|
65
|
+
paths: Record<string, JsonObject>;
|
|
66
|
+
components: {
|
|
67
|
+
/** Schemas, keyed by name. */
|
|
68
|
+
schemas: Record<string, JsonObject>;
|
|
69
|
+
securitySchemes: Record<string, OpenAPIV3.SecuritySchemeObject>;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/** Options for {@link getActionOperation}. */
|
|
73
|
+
export interface GetActionOperationOptions {
|
|
74
|
+
/** The action name. */
|
|
75
|
+
action: string;
|
|
76
|
+
/** `EXECUTE_ACTION`, or `EXECUTE_QUERY` for a custom query. */
|
|
77
|
+
operation: string;
|
|
78
|
+
/** The display name of the action. */
|
|
79
|
+
actionDisplayName: string;
|
|
80
|
+
/** Prefix of the generated `operationId`. Defaults to `''`. */
|
|
81
|
+
toolName?: string;
|
|
82
|
+
/** Text appended to the description. Defaults to `''`. */
|
|
83
|
+
toolInstructions?: string;
|
|
84
|
+
}
|
|
85
|
+
/** Options for {@link listOperation} and {@link getOperation}. */
|
|
86
|
+
export interface EntitySchemaOperationOptions {
|
|
87
|
+
/** The entity name. */
|
|
88
|
+
entity: string;
|
|
89
|
+
/**
|
|
90
|
+
* The entity JSON schema, quoted in the response description. Defaults to
|
|
91
|
+
* `''`.
|
|
92
|
+
*/
|
|
93
|
+
schemaAsString?: string;
|
|
94
|
+
/** Prefix of the generated `operationId`. Defaults to `''`. */
|
|
95
|
+
toolName?: string;
|
|
96
|
+
/** Text appended to the description. Defaults to `''`. */
|
|
97
|
+
toolInstructions?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Options for {@link createOperation}, {@link updateOperation} and
|
|
101
|
+
* {@link deleteOperation}.
|
|
102
|
+
*/
|
|
103
|
+
export interface EntityOperationOptions {
|
|
104
|
+
/** The entity name. */
|
|
105
|
+
entity: string;
|
|
106
|
+
/** Prefix of the generated `operationId`. Defaults to `''`. */
|
|
107
|
+
toolName?: string;
|
|
108
|
+
/** Text appended to the description. Defaults to `''`. */
|
|
109
|
+
toolInstructions?: string;
|
|
110
|
+
}
|
|
111
|
+
/** The base OpenAPI document of the `ExecuteConnection` integration. */
|
|
112
|
+
export declare const CONNECTOR_BASE_SPEC: ConnectorSpec;
|
|
113
|
+
/**
|
|
114
|
+
* Converts the JSON schema of an entity or an action payload into the
|
|
115
|
+
* OpenAPI schema the connector spec carries.
|
|
116
|
+
*
|
|
117
|
+
* Keeps `description`, maps a `type` array holding `null` to `nullable: true`
|
|
118
|
+
* plus the first other type, and recurses into `properties` of an object and
|
|
119
|
+
* `items` of an array. Every other keyword is dropped.
|
|
120
|
+
*
|
|
121
|
+
* @param jsonSchema The JSON schema.
|
|
122
|
+
* @returns The OpenAPI schema.
|
|
123
|
+
*/
|
|
124
|
+
export declare function connectorPayload(jsonSchema: JsonObject): JsonObject;
|
|
125
|
+
/**
|
|
126
|
+
* Builds the path item that runs an action.
|
|
127
|
+
*
|
|
128
|
+
* @param options The action, operation, display name, tool name, and instructions.
|
|
129
|
+
*/
|
|
130
|
+
export declare function getActionOperation(options: GetActionOperationOptions): JsonObject;
|
|
131
|
+
/**
|
|
132
|
+
* Builds the path item that lists the records of an entity.
|
|
133
|
+
*
|
|
134
|
+
* @param options The entity, schema string, tool name, and instructions.
|
|
135
|
+
*/
|
|
136
|
+
export declare function listOperation(options: EntitySchemaOperationOptions): JsonObject;
|
|
137
|
+
/**
|
|
138
|
+
* Builds the path item that reads one record of an entity.
|
|
139
|
+
*
|
|
140
|
+
* @param options The entity, schema string, tool name, and instructions.
|
|
141
|
+
*/
|
|
142
|
+
export declare function getOperation(options: EntitySchemaOperationOptions): JsonObject;
|
|
143
|
+
/**
|
|
144
|
+
* Builds the path item that creates a record of an entity.
|
|
145
|
+
*
|
|
146
|
+
* @param options The entity, tool name, and instructions.
|
|
147
|
+
*/
|
|
148
|
+
export declare function createOperation(options: EntityOperationOptions): JsonObject;
|
|
149
|
+
/**
|
|
150
|
+
* Builds the path item that updates a record of an entity.
|
|
151
|
+
*
|
|
152
|
+
* @param options The entity, tool name, and instructions.
|
|
153
|
+
*/
|
|
154
|
+
export declare function updateOperation(options: EntityOperationOptions): JsonObject;
|
|
155
|
+
/**
|
|
156
|
+
* Builds the path item that deletes a record of an entity.
|
|
157
|
+
*
|
|
158
|
+
* @param options The entity, tool name, and instructions.
|
|
159
|
+
*/
|
|
160
|
+
export declare function deleteOperation(options: EntityOperationOptions): JsonObject;
|
|
161
|
+
/** Builds the request schema of the create operation of an entity. */
|
|
162
|
+
export declare function createOperationRequest(entity: string): JsonObject;
|
|
163
|
+
/** Builds the request schema of the update operation of an entity. */
|
|
164
|
+
export declare function updateOperationRequest(entity: string): JsonObject;
|
|
165
|
+
/** Builds the request schema of the get operation. */
|
|
166
|
+
export declare function getOperationRequest(): JsonObject;
|
|
167
|
+
/** Builds the request schema of the delete operation. */
|
|
168
|
+
export declare function deleteOperationRequest(): JsonObject;
|
|
169
|
+
/** Builds the request schema of the list operation. */
|
|
170
|
+
export declare function listOperationRequest(): JsonObject;
|
|
171
|
+
/** Builds the request schema of an action. */
|
|
172
|
+
export declare function actionRequest(action: string): JsonObject;
|
|
173
|
+
/** Builds the response schema of an action. */
|
|
174
|
+
export declare function actionResponse(action: string): JsonObject;
|
|
175
|
+
/** Builds the request schema of the `ExecuteCustomQuery` action. */
|
|
176
|
+
export declare function executeCustomQueryRequest(): JsonObject;
|
|
177
|
+
/**
|
|
178
|
+
* A client for the Integration Connectors API.
|
|
179
|
+
*
|
|
180
|
+
* It reads the details, entity schemas and action schemas of one connection.
|
|
181
|
+
*/
|
|
182
|
+
export declare class ConnectionsClient {
|
|
183
|
+
private readonly project;
|
|
184
|
+
private readonly location;
|
|
185
|
+
private readonly connection;
|
|
186
|
+
private readonly tokenSource;
|
|
187
|
+
constructor(options: ConnectionsClientOptions);
|
|
188
|
+
/**
|
|
189
|
+
* Reads the service name and host of the connection, and whether it allows
|
|
190
|
+
* an authentication override.
|
|
191
|
+
*/
|
|
192
|
+
getConnectionDetails(): Promise<ConnectionDetails>;
|
|
193
|
+
/**
|
|
194
|
+
* Reads the JSON schema of an entity and the operations it supports.
|
|
195
|
+
*
|
|
196
|
+
* @param entity The entity name.
|
|
197
|
+
* @throws Error When the API starts no operation for the entity.
|
|
198
|
+
*/
|
|
199
|
+
getEntitySchemaAndOperations(entity: string): Promise<EntitySchemaAndOperations>;
|
|
200
|
+
/**
|
|
201
|
+
* Reads the input and output JSON schemas of an action.
|
|
202
|
+
*
|
|
203
|
+
* @param action The action name.
|
|
204
|
+
* @throws Error When the API starts no operation for the action.
|
|
205
|
+
*/
|
|
206
|
+
getActionSchema(action: string): Promise<ActionSchema>;
|
|
207
|
+
/**
|
|
208
|
+
* Converts the JSON schema of an entity or an action payload into the
|
|
209
|
+
* OpenAPI schema the connector spec carries.
|
|
210
|
+
*/
|
|
211
|
+
connectorPayload(jsonSchema: JsonObject): JsonObject;
|
|
212
|
+
private executeApiCall;
|
|
213
|
+
/** Polls a long-running operation until it reports `done`. */
|
|
214
|
+
private pollOperation;
|
|
215
|
+
}
|
|
@@ -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 ID of the integration. */
|
|
17
|
+
trigger?: 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 trigger?;
|
|
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,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionDeclaration } from '@google/genai';
|
|
7
|
+
import { Context } from '../agents/context.js';
|
|
8
|
+
import { SchemaLike } from '../utils/schema.js';
|
|
9
|
+
import { FunctionTool, ToolInputParameters } from './function_tool.js';
|
|
10
|
+
/**
|
|
11
|
+
* Schema formats accepted on a wrapped CrewAI tool.
|
|
12
|
+
*/
|
|
13
|
+
export type CrewaiSchemaLike = SchemaLike | {
|
|
14
|
+
jsonSchema: () => Record<string, unknown>;
|
|
15
|
+
} | {
|
|
16
|
+
modelJsonSchema: () => Record<string, unknown>;
|
|
17
|
+
} | Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Structural interface for a CrewAI tool instance.
|
|
20
|
+
*/
|
|
21
|
+
export interface CrewaiToolLike {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the CrewAI tool.
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The description of the CrewAI tool.
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional parameters schema for the tool.
|
|
32
|
+
*/
|
|
33
|
+
argsSchema?: CrewaiSchemaLike;
|
|
34
|
+
/**
|
|
35
|
+
* Executes the CrewAI tool with the given arguments.
|
|
36
|
+
*/
|
|
37
|
+
run(args: Record<string, unknown>, toolContext?: Context): unknown | Promise<unknown>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Configuration options for {@link CrewaiTool}.
|
|
41
|
+
*/
|
|
42
|
+
export interface CrewaiToolConfig {
|
|
43
|
+
/**
|
|
44
|
+
* The wrapped CrewAI tool instance.
|
|
45
|
+
*/
|
|
46
|
+
tool: CrewaiToolLike;
|
|
47
|
+
/**
|
|
48
|
+
* Optional custom name override. When omitted or empty, defaults to
|
|
49
|
+
* `tool.name` with spaces replaced by underscores and lowercased.
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Optional custom description override. When omitted or empty, defaults to
|
|
54
|
+
* `tool.description`.
|
|
55
|
+
*/
|
|
56
|
+
description?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const CREWAI_TOOL_SIGNATURE_SYMBOL: unique symbol;
|
|
59
|
+
/**
|
|
60
|
+
* Type guard to check if an object is an instance of {@link CrewaiTool}.
|
|
61
|
+
*/
|
|
62
|
+
export declare function isCrewaiTool(obj: unknown): obj is CrewaiTool;
|
|
63
|
+
/**
|
|
64
|
+
* Wrapper class that adapts a CrewAI tool for use in ADK.
|
|
65
|
+
*
|
|
66
|
+
* If the original tool name and description are not suitable, you can override
|
|
67
|
+
* them in the constructor.
|
|
68
|
+
*/
|
|
69
|
+
export declare class CrewaiTool extends FunctionTool<ToolInputParameters> {
|
|
70
|
+
/** A unique symbol to identify ADK CrewaiTool class. */
|
|
71
|
+
readonly [CREWAI_TOOL_SIGNATURE_SYMBOL] = true;
|
|
72
|
+
/**
|
|
73
|
+
* The wrapped CrewAI tool.
|
|
74
|
+
*/
|
|
75
|
+
readonly tool: CrewaiToolLike;
|
|
76
|
+
constructor(toolOrConfig: CrewaiToolConfig | CrewaiToolLike, options?: {
|
|
77
|
+
name?: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* Builds the `FunctionDeclaration` for the wrapped CrewAI tool.
|
|
82
|
+
*/
|
|
83
|
+
_getDeclaration(): FunctionDeclaration;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -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,30 @@
|
|
|
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
|
+
* Type guard to check if an object is an instance of {@link GoogleApiTool}.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isGoogleApiTool(obj: unknown): obj is GoogleApiTool;
|
|
14
|
+
/**
|
|
15
|
+
* Wraps a {@link RestApiTool} created from a Google API specification and adds
|
|
16
|
+
* helper methods for configuring Google OpenID Connect credentials.
|
|
17
|
+
*/
|
|
18
|
+
export declare class GoogleApiTool extends BaseTool {
|
|
19
|
+
readonly [GOOGLE_API_TOOL_SIGNATURE_SYMBOL] = true;
|
|
20
|
+
readonly restApiTool: RestApiTool;
|
|
21
|
+
constructor(restApiTool: RestApiTool);
|
|
22
|
+
_getDeclaration(): FunctionDeclaration;
|
|
23
|
+
runAsync(request: RunAsyncToolRequest): Promise<unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Configures OpenID Connect OAuth2 client credentials on the underlying
|
|
26
|
+
* {@link RestApiTool}.
|
|
27
|
+
*/
|
|
28
|
+
configureAuth(clientId: string, clientSecret: string): void;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OpenAPIV3 } from 'openapi-types';
|
|
7
|
+
import { ReadonlyContext } from '../../agents/readonly_context.js';
|
|
8
|
+
import { BaseToolset, ToolPredicate } from '../base_toolset.js';
|
|
9
|
+
import { OpenAPIToolset } from '../openapi_tool/openapi_toolset.js';
|
|
10
|
+
import { RestApiTool } from '../openapi_tool/rest_api_tool.js';
|
|
11
|
+
import { GoogleApiTool } from './google_api_tool.js';
|
|
12
|
+
declare const GOOGLE_API_TOOL_SET_SIGNATURE_SYMBOL: unique symbol;
|
|
13
|
+
/**
|
|
14
|
+
* Options for constructing a {@link GoogleApiToolSet}.
|
|
15
|
+
*/
|
|
16
|
+
export interface GoogleApiToolSetOptions {
|
|
17
|
+
apiName?: string;
|
|
18
|
+
apiVersion?: string;
|
|
19
|
+
toolFilter?: ToolPredicate | string[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Options for loading an {@link OpenAPIToolset} pre-configured with Google
|
|
23
|
+
* OpenID Connect endpoints.
|
|
24
|
+
*/
|
|
25
|
+
export interface LoadToolSetWithOidcAuthOptions {
|
|
26
|
+
specFile?: string;
|
|
27
|
+
specDict?: OpenAPIV3.Document;
|
|
28
|
+
scopes?: string[];
|
|
29
|
+
callerDir?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Type guard to check if an object is an instance of {@link GoogleApiToolSet}.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isGoogleApiToolSet(obj: unknown): obj is GoogleApiToolSet;
|
|
35
|
+
/**
|
|
36
|
+
* Toolset that wraps Google Discovery API operations as {@link GoogleApiTool}
|
|
37
|
+
* instances configured for Google OpenID Connect authentication.
|
|
38
|
+
*/
|
|
39
|
+
export declare class GoogleApiToolSet extends BaseToolset {
|
|
40
|
+
readonly [GOOGLE_API_TOOL_SET_SIGNATURE_SYMBOL] = true;
|
|
41
|
+
readonly apiName?: string;
|
|
42
|
+
readonly apiVersion?: string;
|
|
43
|
+
private tools;
|
|
44
|
+
private toolsLoaded;
|
|
45
|
+
private loadingPromise?;
|
|
46
|
+
private pendingAuth?;
|
|
47
|
+
constructor(tools?: Array<RestApiTool | GoogleApiTool>, options?: GoogleApiToolSetOptions);
|
|
48
|
+
private ensureToolsLoaded;
|
|
49
|
+
/**
|
|
50
|
+
* Returns all tools in the toolset matching the active `toolFilter`.
|
|
51
|
+
*/
|
|
52
|
+
getTools(context?: ReadonlyContext): Promise<GoogleApiTool[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Finds a tool in the toolset by name.
|
|
55
|
+
*/
|
|
56
|
+
getTool(toolName: string): Promise<GoogleApiTool | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Configures OAuth2 client ID and secret across all tools in the toolset.
|
|
59
|
+
*/
|
|
60
|
+
configureAuth(clientId: string, clientSecret: string): void;
|
|
61
|
+
close(): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Builds an {@link OpenAPIToolset} from an OpenAPI specification dictionary
|
|
64
|
+
* or YAML/JSON file and configures it with Google's OpenID Connect endpoints.
|
|
65
|
+
*/
|
|
66
|
+
static loadToolSetWithOidcAuth(options?: LoadToolSetWithOidcAuthOptions): OpenAPIToolset;
|
|
67
|
+
/**
|
|
68
|
+
* Fetches and converts a Google API Discovery document and returns a
|
|
69
|
+
* {@link GoogleApiToolSet} containing its operations.
|
|
70
|
+
*/
|
|
71
|
+
static loadToolSet(apiName: string, apiVersion: string): Promise<GoogleApiToolSet>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates a lazy-loaded {@link GoogleApiToolSet} singleton without triggering
|
|
75
|
+
* the `@experimental` class constructor warning at module import time.
|
|
76
|
+
*/
|
|
77
|
+
export declare function createLazyGoogleApiToolSet(apiName: string, apiVersion: string): GoogleApiToolSet;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Pre-configured {@link GoogleApiToolSet} for the Google Calendar v3 API.
|
|
8
|
+
*/
|
|
9
|
+
export declare const calendarToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
10
|
+
/**
|
|
11
|
+
* Pre-configured {@link GoogleApiToolSet} for the Google BigQuery v2 API.
|
|
12
|
+
*/
|
|
13
|
+
export declare const bigqueryToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
14
|
+
/**
|
|
15
|
+
* Pre-configured {@link GoogleApiToolSet} for the Gmail v1 API.
|
|
16
|
+
*/
|
|
17
|
+
export declare const gmailToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
18
|
+
/**
|
|
19
|
+
* Pre-configured {@link GoogleApiToolSet} for the YouTube Data v3 API.
|
|
20
|
+
*/
|
|
21
|
+
export declare const youtubeToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
22
|
+
/**
|
|
23
|
+
* Pre-configured {@link GoogleApiToolSet} for the Google Slides v1 API.
|
|
24
|
+
*/
|
|
25
|
+
export declare const slidesToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
26
|
+
/**
|
|
27
|
+
* Pre-configured {@link GoogleApiToolSet} for the Google Sheets v4 API.
|
|
28
|
+
*/
|
|
29
|
+
export declare const sheetsToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|
|
30
|
+
/**
|
|
31
|
+
* Pre-configured {@link GoogleApiToolSet} for the Google Docs v1 API.
|
|
32
|
+
*/
|
|
33
|
+
export declare const docsToolSet: import("./google_api_tool_set.js").GoogleApiToolSet;
|