Optional
functionCallingConfig?: {Function calling options.
E.g. forced tool call:
config: {
functionCallingConfig: {
mode: 'ANY',
}
}
Optional
googleSearchRetrieval?: { disableAttribution?: boolean }Google Search retrieval options.
config: {
googleSearchRetrieval: {
disableAttribution: true,
}
}
Optional
location?: stringGCP region (e.g. us-central1)
Optional
maxOutputTokens?: numberOptional
safetySettings?: { category: HarmCategory; threshold: HarmBlockThreshold }[]Safety filter settings. See: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-filters#configurable-filters
E.g.
config: {
safetySettings: [
{
category: 'HARM_CATEGORY_HATE_SPEECH',
threshold: 'BLOCK_LOW_AND_ABOVE',
},
{
category: 'HARM_CATEGORY_DANGEROUS_CONTENT',
threshold: 'BLOCK_MEDIUM_AND_ABOVE',
},
{
category: 'HARM_CATEGORY_HARASSMENT',
threshold: 'BLOCK_ONLY_HIGH',
},
{
category: 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
threshold: 'BLOCK_NONE',
},
],
}
Optional
stopSequences?: string[]Optional
temperature?: numberOptional
topK?: numberOptional
topP?: numberOptional
version?: stringOptional
vertexRetrieval?: {Vertex retrieval options.
E.g.
config: {
vertexRetrieval: {
datastore: {
projectId: 'your-cloud-project',
location: 'us-central1',
collection: 'your-collection',
},
disableAttribution: true,
}
}
Gemini model configuration options.
E.g.