@@ -1545,6 +1545,32 @@ def update!(**args)
1545
1545
end
1546
1546
end
1547
1547
1548
+ # Tool to retrieve public maps data for grounding, powered by Google.
1549
+ class GoogleCloudAiplatformV1beta1GoogleMaps
1550
+ include Google ::Apis ::Core ::Hashable
1551
+
1552
+ # The generic reusable api auth config. Deprecated. Please use AuthConfig (
1553
+ # google/cloud/aiplatform/master/auth.proto) instead.
1554
+ # Corresponds to the JSON property `apiAuth`
1555
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ApiAuth]
1556
+ attr_accessor :api_auth
1557
+
1558
+ # Auth configuration to run the extension.
1559
+ # Corresponds to the JSON property `authConfig`
1560
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AuthConfig]
1561
+ attr_accessor :auth_config
1562
+
1563
+ def initialize ( **args )
1564
+ update! ( **args )
1565
+ end
1566
+
1567
+ # Update properties of this object
1568
+ def update! ( **args )
1569
+ @api_auth = args [ :api_auth ] if args . key? ( :api_auth )
1570
+ @auth_config = args [ :auth_config ] if args . key? ( :auth_config )
1571
+ end
1572
+ end
1573
+
1548
1574
# Tool to retrieve public web data for grounding, powered by Google.
1549
1575
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
1550
1576
include Google ::Apis ::Core ::Hashable
@@ -1568,6 +1594,11 @@ def update!(**args)
1568
1594
class GoogleCloudAiplatformV1beta1GroundingChunk
1569
1595
include Google ::Apis ::Core ::Hashable
1570
1596
1597
+ # Chunk from Google Maps.
1598
+ # Corresponds to the JSON property `maps`
1599
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMaps]
1600
+ attr_accessor :maps
1601
+
1571
1602
# Chunk from context retrieved by the retrieval tools.
1572
1603
# Corresponds to the JSON property `retrievedContext`
1573
1604
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext]
@@ -1584,11 +1615,50 @@ def initialize(**args)
1584
1615
1585
1616
# Update properties of this object
1586
1617
def update! ( **args )
1618
+ @maps = args [ :maps ] if args . key? ( :maps )
1587
1619
@retrieved_context = args [ :retrieved_context ] if args . key? ( :retrieved_context )
1588
1620
@web = args [ :web ] if args . key? ( :web )
1589
1621
end
1590
1622
end
1591
1623
1624
+ # Chunk from Google Maps.
1625
+ class GoogleCloudAiplatformV1beta1GroundingChunkMaps
1626
+ include Google ::Apis ::Core ::Hashable
1627
+
1628
+ # This Place's resource name, in `places/`place_id`` format. Can be used to look
1629
+ # up the Place.
1630
+ # Corresponds to the JSON property `placeId`
1631
+ # @return [String]
1632
+ attr_accessor :place_id
1633
+
1634
+ # Text of the chunk.
1635
+ # Corresponds to the JSON property `text`
1636
+ # @return [String]
1637
+ attr_accessor :text
1638
+
1639
+ # Title of the chunk.
1640
+ # Corresponds to the JSON property `title`
1641
+ # @return [String]
1642
+ attr_accessor :title
1643
+
1644
+ # URI reference of the chunk.
1645
+ # Corresponds to the JSON property `uri`
1646
+ # @return [String]
1647
+ attr_accessor :uri
1648
+
1649
+ def initialize ( **args )
1650
+ update! ( **args )
1651
+ end
1652
+
1653
+ # Update properties of this object
1654
+ def update! ( **args )
1655
+ @place_id = args [ :place_id ] if args . key? ( :place_id )
1656
+ @text = args [ :text ] if args . key? ( :text )
1657
+ @title = args [ :title ] if args . key? ( :title )
1658
+ @uri = args [ :uri ] if args . key? ( :uri )
1659
+ end
1660
+ end
1661
+
1592
1662
# Chunk from context retrieved by the retrieval tools.
1593
1663
class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
1594
1664
include Google ::Apis ::Core ::Hashable
@@ -1662,6 +1732,13 @@ def update!(**args)
1662
1732
class GoogleCloudAiplatformV1beta1GroundingMetadata
1663
1733
include Google ::Apis ::Core ::Hashable
1664
1734
1735
+ # Optional. Output only. Resource name of the Google Maps widget context token
1736
+ # to be used with the PlacesContextElement widget to render contextual data.
1737
+ # This is populated only for Google Maps grounding.
1738
+ # Corresponds to the JSON property `googleMapsWidgetContextToken`
1739
+ # @return [String]
1740
+ attr_accessor :google_maps_widget_context_token
1741
+
1665
1742
# List of supporting references retrieved from specified grounding source.
1666
1743
# Corresponds to the JSON property `groundingChunks`
1667
1744
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunk>]
@@ -1698,6 +1775,7 @@ def initialize(**args)
1698
1775
1699
1776
# Update properties of this object
1700
1777
def update! ( **args )
1778
+ @google_maps_widget_context_token = args [ :google_maps_widget_context_token ] if args . key? ( :google_maps_widget_context_token )
1701
1779
@grounding_chunks = args [ :grounding_chunks ] if args . key? ( :grounding_chunks )
1702
1780
@grounding_supports = args [ :grounding_supports ] if args . key? ( :grounding_supports )
1703
1781
@retrieval_metadata = args [ :retrieval_metadata ] if args . key? ( :retrieval_metadata )
@@ -2654,11 +2732,16 @@ class GoogleCloudAiplatformV1beta1Tool
2654
2732
# subset of these functions by populating FunctionCall in the response. User
2655
2733
# should provide a FunctionResponse for each function call in the next turn.
2656
2734
# Based on the function responses, Model will generate the final response back
2657
- # to the user. Maximum 128 function declarations can be provided.
2735
+ # to the user. Maximum 512 function declarations can be provided.
2658
2736
# Corresponds to the JSON property `functionDeclarations`
2659
2737
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
2660
2738
attr_accessor :function_declarations
2661
2739
2740
+ # Tool to retrieve public maps data for grounding, powered by Google.
2741
+ # Corresponds to the JSON property `googleMaps`
2742
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleMaps]
2743
+ attr_accessor :google_maps
2744
+
2662
2745
# GoogleSearch tool type. Tool to support Google Search in Model. Powered by
2663
2746
# Google.
2664
2747
# Corresponds to the JSON property `googleSearch`
@@ -2690,6 +2773,7 @@ def update!(**args)
2690
2773
@computer_use = args [ :computer_use ] if args . key? ( :computer_use )
2691
2774
@enterprise_web_search = args [ :enterprise_web_search ] if args . key? ( :enterprise_web_search )
2692
2775
@function_declarations = args [ :function_declarations ] if args . key? ( :function_declarations )
2776
+ @google_maps = args [ :google_maps ] if args . key? ( :google_maps )
2693
2777
@google_search = args [ :google_search ] if args . key? ( :google_search )
2694
2778
@google_search_retrieval = args [ :google_search_retrieval ] if args . key? ( :google_search_retrieval )
2695
2779
@retrieval = args [ :retrieval ] if args . key? ( :retrieval )
0 commit comments