1package google
2
3type thinkingConfig struct {
4 ThinkingBudget *int64 `json:"thinking_budget"`
5 IncludeThoughts *bool `json:"include_thoughts"`
6}
7
8type safetySetting struct {
9 // 'HARM_CATEGORY_UNSPECIFIED',
10 // 'HARM_CATEGORY_HATE_SPEECH',
11 // 'HARM_CATEGORY_DANGEROUS_CONTENT',
12 // 'HARM_CATEGORY_HARASSMENT',
13 // 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
14 // 'HARM_CATEGORY_CIVIC_INTEGRITY',
15 Category string `json:"category"`
16
17 // 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
18 // 'BLOCK_LOW_AND_ABOVE',
19 // 'BLOCK_MEDIUM_AND_ABOVE',
20 // 'BLOCK_ONLY_HIGH',
21 // 'BLOCK_NONE',
22 // 'OFF',
23 Threshold string `json:"threshold"`
24}
25type providerOptions struct {
26 ThinkingConfig *thinkingConfig `json:"thinking_config"`
27
28 // Optional.
29 // The name of the cached content used as context to serve the prediction.
30 // Format: cachedContents/{cachedContent}
31 CachedContent string `json:"cached_content"`
32
33 // Optional. A list of unique safety settings for blocking unsafe content.
34 SafetySettings []safetySetting `json:"safety_settings"`
35 // 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
36 // 'BLOCK_LOW_AND_ABOVE',
37 // 'BLOCK_MEDIUM_AND_ABOVE',
38 // 'BLOCK_ONLY_HIGH',
39 // 'BLOCK_NONE',
40 // 'OFF',
41 Threshold string `json:"threshold"`
42}