Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/sentry/seer/agent/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ def start_run(
):
agent_run_options["embed_widgets"] = get_embed_widgets()

if features.has(
"organizations:seer-explorer-stream",
self.organization,
actor=self.user,
):
agent_run_options["enable_streaming"] = True
Comment thread
natemoo-re marked this conversation as resolved.

user_id = (
self.user.id
if self.user and hasattr(self.user, "id") and self.user.id is not None
Expand Down Expand Up @@ -595,6 +602,13 @@ def continue_run(
):
agent_run_options["embed_widgets"] = get_embed_widgets()

if features.has(
"organizations:seer-explorer-stream",
self.organization,
actor=self.user,
):
agent_run_options["enable_streaming"] = True

response = make_agent_chat_request(chat_body, viewer_context=self.viewer_context)

if response.status >= 400:
Expand Down
Loading