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

    Interface ToolCallIntegrityPluginOptions

    interface ToolCallIntegrityPluginOptions {
        allowUnstampedCalls?: boolean;
        name?: string;
        secretKey:
            | Uint8Array<ArrayBufferLike>
            | readonly Uint8Array<ArrayBufferLike>[];
    }
    allowUnstampedCalls?: boolean

    对于那些没有“印章”(即没有特定标记或验证信息的)函数调用,系统会记录警告信息,而不会直接抛出错误。 例如:那些在插件安装之前就已经被执行的函数调用。虽然这些调用仍然会被执行,但系统会检测到这种“篡改行为”(即有人试图删除或修改这些标记),不过这种行为本身是无法被阻止的。 如果某个“印章”存在但内容错误,系统会立即拒绝该调用。 系统默认采用这种处理方式。 false.

    name?: string

    插件的名称。默认值为…… 'tool_call_integrity'.

    secretKey: Uint8Array<ArrayBufferLike> | readonly Uint8Array<ArrayBufferLike>[]

    HMAC密钥,或在密钥轮换过程中使用的密钥列表。第一个密钥用于标记新的请求;在验证过程中,所有密钥都会被接受。