File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11import logging
2+ from dataclasses import dataclass
23from typing import NotRequired , TypedDict
34
45import sentry_sdk
@@ -106,6 +107,17 @@ class SimilarIssuesEmbeddingsResponse(TypedDict):
106107 responses : list [RawSeerSimilarIssueData ]
107108
108109
110+ # Like the data that comes back from seer, but guaranteed to have a parent group id
111+ @dataclass
112+ class SeerSimilarIssueData :
113+ stacktrace_distance : float
114+ message_distance : float
115+ should_group : bool
116+ parent_group_id : int
117+ # TODO: See if we end up needing the hash here
118+ parent_group_hash : str | None = None
119+
120+
109121def get_similar_issues_embeddings (
110122 similar_issues_request : SimilarIssuesEmbeddingsRequest ,
111123) -> SimilarIssuesEmbeddingsResponse :
You can’t perform that action at this time.
0 commit comments