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

🤖 Enhancements to Pydantic Models with Default Values #1252

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
@@ -1,4 +1,4 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field

from seer.automation.agent.models import Message
from seer.automation.component import BaseComponentOutput, BaseComponentRequest
Expand Down Expand Up @@ -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 = Field(default=-1)
3 changes: 2 additions & 1 deletion src/seer/automation/autofix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ def is_valid_uuid(uuid_string: str) -> bool:
return False



class DefaultStep(BaseStep):
type: Literal[StepType.DEFAULT] = StepType.DEFAULT
insights: list[InsightSharingOutput] = []
insights: list[InsightSharingOutput] = Field(default_factory=list)


class RootCauseStep(BaseStep):
Expand Down
Loading