File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
vertexai/preview/reasoning_engines/templates Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 17
17
18
18
19
19
if TYPE_CHECKING :
20
- try :
21
- from google .genai import types
22
-
23
- ContentDict = types .Content
24
- except (ImportError , AttributeError ):
25
- ContentDict = Dict
26
-
27
20
try :
28
21
from google .adk .events .event import Event
29
22
@@ -450,15 +443,15 @@ def set_up(self):
450
443
def stream_query (
451
444
self ,
452
445
* ,
453
- message : Union [str , "ContentDict" ],
446
+ message : Union [str , Dict [ str , Any ] ],
454
447
user_id : str ,
455
448
session_id : Optional [str ] = None ,
456
449
** kwargs ,
457
450
):
458
451
"""Streams responses from the ADK application in response to a message.
459
452
460
453
Args:
461
- message (str):
454
+ message (Union[ str, Dict[str, Any]] ):
462
455
Required. The message to stream responses for.
463
456
user_id (str):
464
457
Required. The ID of the user.
You can’t perform that action at this time.
0 commit comments