You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run_config = RunConfig(
streaming_mode=StreamingMode.BIDI,
response_modalities=["TEXT"],
save_input_blobs_as_artifacts=True,
)
"""User sends requests"""
live_request_queue.send_content(
types.Content(parts=[types.Part(text=combined_text)])
)
```` async def _downstream_task(
self,
websocket,
user_id: str,
session_id: str,
live_request_queue: LiveRequestQueue,
run_config: RunConfig
) -> None:
"""Receive events from run_live and send to WebSocket."""
async for event in self.runner.run_live(
user_id=user_id,
session_id=session_id,
live_request_queue=live_request_queue,
run_config=run_config,
):
event_json = event.model_dump_json(exclude_none=True, by_alias=True)
await websocket.send_text(event_json)
` I have my run config stream only text. This works as expected. However, I noticed that when the user sends a message to my agent, that message is not stored in events. It is only the agent's response that is stored. What I would like is that events would have the entire conversation history. Is this possible ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions