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

    Interface ChromeBuiltInLlmParams

    构造函数的选项 ChromeBuiltInLlm.

    interface ChromeBuiltInLlmParams {
        expectedInputs?: ChromeExpectedModality[];
        expectedOutputs?: ChromeExpectedModality[];
        languageModel?: ChromeLanguageModelFactory;
        model?: string;
        normalizeSystemPrompt?: (systemPrompt: string) => string;
        onDiagnostic?: (diagnostic: ChromeBuiltInDiagnostic) => void;
        onDownloadProgress?: (loaded: number) => void;
        temperature?: number;
        topK?: number;
    }
    expectedInputs?: ChromeExpectedModality[]

    在会话创建时可以声明的选项/设置(Modalities to declare at session creation)。

    expectedOutputs?: ChromeExpectedModality[]

    注入一个替代性的实现版本…… LanguageModel `global, for` 用于测试以及作为临时替代方案(即“占位符”)的用途。默认值为…… globalThis.LanguageModel.

    model?: string

    用于注册表匹配的模型 ID。默认值为…… chrome-on-device.

    normalizeSystemPrompt?: (systemPrompt: string) => string

    在创建会话之前,重新编写系统提示信息(即显示在用户界面上的提示文本)。

    这种现象的出现是由于与 ADK(Adobe Digital Kit)之间的某种特定且成本较高的交互过程所致。每个请求在发送前都会被 ADK 的身份验证机制添加前缀(即“ADK’s identity processor”生成的标识信息)。

    You are an agent. Your internal name is "<agent name>".
    

    在……的下面;在……的范围内 ParallelAgent 每个子节点都有一个不同的名称,因此每个子节点都会生成一个(特定的结果或数据)。 不同的;有区别的 系统提示(system prompt)导致“warm base session”从未被触发;因此每个子进程(child process)都需要支付全额费用(full fee)。 create() “这是最昂贵的通话服务;它只能在通话量最大的时候使用。”

    Pass stripAdkIdentityPreamble “to drop it”这个选项是安全的;无论何时,只要代理转移功能(agent transfer)被禁用,这个选项都可以使用,因为身份验证机制(identity line)的存在就是为了支持代理转移过程。对于那些通过名称来路由请求的多代理系统(multi-agent setups),建议保持该选项的设置状态不变(即不进行任何修改)。

    onDiagnostic?: (diagnostic: ChromeBuiltInDiagnostic) => void

    接收关于系统运行时间(timing)以及上下文(context)的诊断信息。

    onDownloadProgress?: (loaded: number) => void

    在模型首次被使用时,系统会接收表示数据加载进度的字节信息。

    temperature?: number

    采样温度(Sampling temperature)。仅适用于扩展(extension)相关的场景;在普通的网页(plain web page)上则不被支持。 create() 系统会拒绝该请求,然后适配器会尝试再次发送请求(但不再包含该请求内容)。

    topK?: number

    抽取排名前 K 的样本。受相同限制的约束(即:必须遵循相同的规则或条件)。 temperature.