File: bling_prototyping.proto

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (75 lines) | stat: -rw-r--r-- 2,276 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

edition = "2023";

package optimization_guide.proto;

import "components/optimization_guide/proto/features/common_quality_data.proto";

option optimize_for = LITE_RUNTIME;
option java_package = "org.chromium.components.optimization_guide.features.proto";

option java_outer_classname = "BlingPrototypingProto";

// DO NOT EDIT THIS FILE DIRECTLY!
//
// This file is generated in g3 and then synced to Chrome. Instead, please refer to
// http://go/chrome-mqls-onboarding (Google-internal link), and then changes will
// be synced with Chrome automatically.

// Next ID: 3
message BlingPrototypingLoggingData {
  // The feature request.
  BlingPrototypingRequest request = 1 [features = { field_presence: EXPLICIT }];

  // The feature response.
  BlingPrototypingResponse response = 2 [features = { field_presence: EXPLICIT }];
}

// The request to execute a prototyping prompt in Bling.
// Next ID: 7
message BlingPrototypingRequest {
  // The prompt to pass to the model.
  string query = 2 [features = { field_presence: IMPLICIT }];

  // The page context of the current tab.
  PageContext page_context = 3 [features = { field_presence: EXPLICIT }];

  // The system instructions to pass to the model.
  string system_instructions = 4 [features = { field_presence: IMPLICIT }];

  // The temperature to pass to the model.
  float temperature = 5 [features = { field_presence: IMPLICIT }];

  // The model to use. Default is MODEL_ENUM_EVERGREEN_GEMINI_V3.
  ModelEnum model_enum = 6 [features = { field_presence: IMPLICIT }];

  enum ModelEnum {
    MODEL_ENUM_UNSPECIFIED = 0;

    MODEL_ENUM_EVERGREEN_GEMINI_V2 = 1;

    MODEL_ENUM_SUP_GEMINI_V2 = 2;

    MODEL_ENUM_EVERGREEN_GEMINI_V2_MULTI_MODAL = 3;

    MODEL_ENUM_EVERGREEN_GEMINI_V2_MULTI_MODAL_MPP = 4;

    MODEL_ENUM_EVERGREEN_GEMINI_V3 = 5;

    MODEL_ENUM_EVERGREEN_GEMINI_NANO_V2_MULTI_MODAL = 6;

    MODEL_ENUM_EVERGREEN_GEMINI_V3_XS = 7;
  }

  reserved 1;
}

// The response from executing a prototyping prompt in Bling.
// Next ID: 2
message BlingPrototypingResponse {
  // The model's output.
  string output = 1 [features = { field_presence: IMPLICIT }];
}