TemplateToolConfig
public struct TemplateToolConfig : Sendable, Encodable[Public Preview] Tool configuration options for tools used with server prompt templates.
Warning
This API is a public preview and may be subject to change.
In Server Prompt Templates, TemplateToolConfig allows the client application to supply
runtime configuration parameters for tools declared in the template's frontmatter.
For more details, see Grounding with Google Maps in server prompt templates.
-
Configures how the model should use retrieval options for Grounding with Google Maps.
Declaration
Swift
public let retrievalConfig: RetrievalConfig? -
[Public Preview] Constructs a new
TemplateToolConfig.Warning
This API is a public preview and may be subject to change.
Declaration
Swift
public init(retrievalConfig: RetrievalConfig? = nil)Parameters
retrievalConfigConfigures retrieval options (such as user location coordinates and language preferences) for Grounding with Google Maps.