Skip to content

Commit e01fdae

Browse files
1 parent b9fd9fa commit e01fdae

File tree

2,941 files changed

+83
-2712793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,941 files changed

+83
-2712793
lines changed

google/cloud/aiplatform_v1/types/tool.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,73 @@ class Tool(proto.Message):
106106
specific Function Declarations.
107107
"""
108108

109+
class PhishBlockThreshold(proto.Enum):
110+
r"""These are available confidence level user can set to block
111+
malicious urls with chosen confidence and above. For
112+
understanding different confidence of webrisk, please refer to
113+
https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel
114+
115+
Values:
116+
PHISH_BLOCK_THRESHOLD_UNSPECIFIED (0):
117+
Defaults to unspecified.
118+
BLOCK_LOW_AND_ABOVE (30):
119+
Blocks Low and above confidence URL that is
120+
risky.
121+
BLOCK_MEDIUM_AND_ABOVE (40):
122+
Blocks Medium and above confidence URL that
123+
is risky.
124+
BLOCK_HIGH_AND_ABOVE (50):
125+
Blocks High and above confidence URL that is
126+
risky.
127+
BLOCK_HIGHER_AND_ABOVE (55):
128+
Blocks Higher and above confidence URL that
129+
is risky.
130+
BLOCK_VERY_HIGH_AND_ABOVE (60):
131+
Blocks Very high and above confidence URL
132+
that is risky.
133+
BLOCK_ONLY_EXTREMELY_HIGH (100):
134+
Blocks Extremely high confidence URL that is
135+
risky.
136+
"""
137+
138+
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0
139+
BLOCK_LOW_AND_ABOVE = 30
140+
BLOCK_MEDIUM_AND_ABOVE = 40
141+
BLOCK_HIGH_AND_ABOVE = 50
142+
BLOCK_HIGHER_AND_ABOVE = 55
143+
BLOCK_VERY_HIGH_AND_ABOVE = 60
144+
BLOCK_ONLY_EXTREMELY_HIGH = 100
145+
109146
class GoogleSearch(proto.Message):
110147
r"""GoogleSearch tool type.
111148
Tool to support Google Search in Model. Powered by Google.
112149
150+
151+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
152+
113153
Attributes:
114154
exclude_domains (MutableSequence[str]):
115155
Optional. List of domains to be excluded from the search
116156
results. The default limit is 2000 domains. Example:
117157
["amazon.com", "facebook.com"].
158+
blocking_confidence (google.cloud.aiplatform_v1.types.Tool.PhishBlockThreshold):
159+
Optional. Sites with confidence level chosen
160+
& above this value will be blocked from the
161+
search results.
162+
163+
This field is a member of `oneof`_ ``_blocking_confidence``.
118164
"""
119165

120166
exclude_domains: MutableSequence[str] = proto.RepeatedField(
121167
proto.STRING,
122168
number=3,
123169
)
170+
blocking_confidence: "Tool.PhishBlockThreshold" = proto.Field(
171+
proto.ENUM,
172+
number=4,
173+
optional=True,
174+
enum="Tool.PhishBlockThreshold",
175+
)
124176

125177
class CodeExecution(proto.Message):
126178
r"""Tool that executes code generated by the model, and automatically
@@ -692,17 +744,32 @@ class EnterpriseWebSearch(proto.Message):
692744
r"""Tool to search public web data, powered by Vertex AI Search
693745
and Sec4 compliance.
694746
747+
748+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
749+
695750
Attributes:
696751
exclude_domains (MutableSequence[str]):
697752
Optional. List of domains to be excluded from
698753
the search results. The default limit is 2000
699754
domains.
755+
blocking_confidence (google.cloud.aiplatform_v1.types.Tool.PhishBlockThreshold):
756+
Optional. Sites with confidence level chosen
757+
& above this value will be blocked from the
758+
search results.
759+
760+
This field is a member of `oneof`_ ``_blocking_confidence``.
700761
"""
701762

702763
exclude_domains: MutableSequence[str] = proto.RepeatedField(
703764
proto.STRING,
704765
number=1,
705766
)
767+
blocking_confidence: "Tool.PhishBlockThreshold" = proto.Field(
768+
proto.ENUM,
769+
number=2,
770+
optional=True,
771+
enum="Tool.PhishBlockThreshold",
772+
)
706773

707774

708775
class DynamicRetrievalConfig(proto.Message):

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/v1/.flake8

Lines changed: 0 additions & 34 deletions
This file was deleted.

owl-bot-staging/v1/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

owl-bot-staging/v1/MANIFEST.in

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)