adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
63 lines (62 loc) • 2.12 kB
JavaScript
;
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntegrationClient = void 0;
/**
* Client for Integration service
*/
class IntegrationClient {
/**
* Creates a new IntegrationClient
*
* @param project GCP project ID
* @param location GCP location
* @param integration Integration name
* @param trigger Trigger name
* @param connection Connection name
* @param entityOperations List of entity operations
* @param actions List of actions
* @param serviceAccountJson Service account JSON credentials
*/
constructor(project, location, integration, trigger, connection, entityOperations, actions, serviceAccountJson) {
this.project = project;
this.location = location;
this.integration = integration;
this.trigger = trigger;
this.connection = connection;
this.entityOperations = entityOperations;
this.actions = actions;
this.serviceAccountJson = serviceAccountJson;
}
/**
* Gets OpenAPI spec for the integration
* @returns OpenAPI spec
*/
getOpenApiSpecForIntegration() {
return { openapi: '3.0.0' };
}
/**
* Gets OpenAPI spec for the connection
* @param toolName Tool name
* @param toolInstructions Tool instructions
* @returns OpenAPI spec
*/
getOpenApiSpecForConnection(toolName, toolInstructions) {
return { openapi: '3.0.0' };
}
}
exports.IntegrationClient = IntegrationClient;