You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google/genai/types.py
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -277,12 +277,13 @@ class PhishBlockThreshold(_common.CaseInSensitiveEnum):
277
277
class Behavior(_common.CaseInSensitiveEnum):
278
278
"""Specifies the function Behavior.
279
279
280
-
Currently only supported by the BidiGenerateContent method. This enum is not
281
-
supported in Vertex AI.
280
+
Currently only non-blocking functions are supported. If not specified, the
281
+
system keeps the current function call behavior. This field is currently only
282
+
supported by the BidiGenerateContent method.
282
283
"""
283
284
284
285
UNSPECIFIED = 'UNSPECIFIED'
285
-
"""This value is unused."""
286
+
"""This value is unspecified."""
286
287
BLOCKING = 'BLOCKING'
287
288
"""If set, the system will wait to receive the function response before continuing the conversation."""
288
289
NON_BLOCKING = 'NON_BLOCKING'
@@ -4392,7 +4393,7 @@ class FunctionDeclaration(_common.BaseModel):
4392
4393
)
4393
4394
behavior: Optional[Behavior] = Field(
4394
4395
default=None,
4395
-
description="""Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This field is not supported in Vertex AI.""",
4396
+
description="""Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.""",
4396
4397
)
4397
4398
4398
4399
@classmethod
@@ -4615,7 +4616,7 @@ class FunctionDeclarationDict(TypedDict, total=False):
4615
4616
"""Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."""
4616
4617
4617
4618
behavior: Optional[Behavior]
4618
-
"""Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This field is not supported in Vertex AI."""
4619
+
"""Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method."""
0 commit comments