Skip to content

Commit fc537e3

Browse files
authored
Update quickstart-streaming.md (#209)
Fix error Error in event_generator: cannot import name 'google_search' from 'google.adk.tools'
1 parent 559ef00 commit fc537e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/get-started/quickstart-streaming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For `model`, please double check the model ID as described earlier in the [Model
5151

5252
```py
5353
from google.adk.agents import Agent
54-
from google.adk.tools import google_search # Import the tool
54+
from google.adk.tools import built_in_google_search # Import the tool
5555

5656
root_agent = Agent(
5757
# A unique name for the agent.
@@ -64,7 +64,7 @@ root_agent = Agent(
6464
# Instructions to set the agent's behavior.
6565
instruction="You are an expert researcher. You always stick to the facts.",
6666
# Add google_search tool to perform grounding with Google search.
67-
tools=[google_search]
67+
tools=[built_in_google_search]
6868
)
6969
```
7070

0 commit comments

Comments
 (0)