Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autofix+issue summary): Fix various validation errors #1244

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class InsightSharingRequest(BaseComponentRequest):
task_description: str
memory: list[Message]
past_insights: list[str]
generated_at_memory_index: int
generated_at_memory_index: int = -1


class InsightSharingOutput(BaseComponentOutput):
Expand All @@ -51,4 +51,4 @@ class InsightSharingOutput(BaseComponentOutput):
stacktrace_context: list[StacktraceContext]
breadcrumb_context: list[BreadcrumbContext]
justification: str
generated_at_memory_index: int
generated_at_memory_index: int = -1
4 changes: 2 additions & 2 deletions src/seer/automation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class StacktraceFrame(BaseModel):
abs_path: Optional[Annotated[str, Examples(specialized.file_paths)]]
line_no: Optional[int]
col_no: Optional[int]
context: list[tuple[int, str]]
context: list[tuple[int, str]] = []
repo_name: Optional[str] = None
in_app: bool = False
vars: Optional[dict[str, Any]] = None
Expand Down Expand Up @@ -289,7 +289,7 @@ def validate_stacktrace(cls, sentry_stacktrace: SentryStacktrace | Stacktrace):


class ThreadDetails(BaseModel):
id: Optional[int] = None
id: Optional[int | str] = None
name: Optional[str] = None
crashed: Optional[bool] = False
current: Optional[bool] = False
Expand Down
Loading