ADK for TypeScript: API Reference
    Preparing search index...

    Interface ApplicationIntegrationToolsetOptions

    interface ApplicationIntegrationToolsetOptions {
        actions?: string[];
        authCredential?: AuthCredential;
        authScheme?: AuthScheme;
        connection?: string;
        entityOperations?: Record<string, string[]>;
        integration?: string;
        location: string;
        project: string;
        serviceAccountJson?: string;
        toolFilter?:
            | string[]
            | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean);
        toolInstructions?: string;
        toolNamePrefix?: string;
        triggers?: string[];
    }
    actions?: string[]

    需要公开的连接操作(例如: ['ExecuteCustomQuery'].

    authCredential?: AuthCredential

    连接时用于动态生成最终用户凭据的认证信息;该信息适用于各种工具。 authOverrideEnabled 该功能已在连接中启用。

    authScheme?: AuthScheme

    用于连接工具中动态终端用户凭据的身份验证方案; (该方案适用于需要验证终端用户凭据的情况。) authOverrideEnabled 该功能已在连接中启用。

    connection?: string

    “Integration Connectors”的连接名称。请将其与相关设置一起配置。 entityOperations, actions或者两者兼有。

    entityOperations?: Record<string, string[]>

    用于暴露相关数据的操作(这些操作按实体名称进行分类),例如: {Issues: ['LIST', 'GET']}一个空列表会显示该实体支持的所有操作。

    integration?: string

    集成名称。请将其与相关内容一起设置。 triggers 或者单独用于所有触发器(triggers)。

    location: string

    Google Cloud 的位置,例如: us-central1.

    project: string

    Google Cloud 项目的 ID。

    serviceAccountJson?: string

    服务账户密钥(以 JSON 字符串的形式提供)。该密钥用于验证规范请求(spec requests)以及生成的工具(generated tools)的合法性。如果省略该密钥,系统将使用应用程序的默认凭据(Application Default Credentials)来进行身份验证。

    toolFilter?:
        | string[]
        | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean)

    用于筛选哪些生成的工具会被公开(或显示给用户)的过滤器。 getTools.

    toolInstructions?: string

    每个生成的工具描述中都会添加这段文本。默认值为…… ''.

    toolNamePrefix?: string

    每个生成的工具名称的前缀。默认值为…… ''.

    triggers?: string[]

    该集成的 API 触发器 ID,例如: ['api_trigger/my_trigger'].