dtometzki commited on
Commit
56f5718
·
verified ·
1 Parent(s): 6be6b85

Update app_2.py

Browse files
Files changed (1) hide show
  1. app_2.py +5 -1
app_2.py CHANGED
@@ -10,7 +10,11 @@ client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
10
  MODEL = "gemini-3.1-flash-lite-preview"
11
 
12
  # Tools + Config (einmalig)
13
- tools = [types.Tool(googleSearch=types.GoogleSearch())]
 
 
 
 
14
  generate_content_config = types.GenerateContentConfig(
15
  thinking_config=types.ThinkingConfig(thinking_level="MINIMAL"),
16
  tools=tools,
 
10
  MODEL = "gemini-3.1-flash-lite-preview"
11
 
12
  # Tools + Config (einmalig)
13
+ tools = [
14
+ types.Tool(url_context=types.UrlContext()),
15
+ types.Tool(googleSearch=types.GoogleSearch(
16
+ )),
17
+ ]
18
  generate_content_config = types.GenerateContentConfig(
19
  thinking_config=types.ThinkingConfig(thinking_level="MINIMAL"),
20
  tools=tools,