Skip to content

Commit

Permalink
chore: simplify SectionsData definition
Browse files Browse the repository at this point in the history
  • Loading branch information
nherment committed Jan 30, 2025
1 parent 3d8c877 commit b244594
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions holmes/core/investigation_structured_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

OutputSectionsDataType = Optional[Dict[str, Union[str, None]]]

class SectionsData(RootModel):
root: OutputSectionsDataType
SectionsData = RootModel[OutputSectionsDataType]

DEFAULT_SECTIONS:InputSectionsDataType = {
"Alert Explanation": "1-2 sentences explaining the alert itself - note don't say \"The alert indicates a warning event related to a Kubernetes pod doing blah\" rather just say \"The pod XYZ did blah\" because that is what the user actually cares about",
Expand Down

0 comments on commit b244594

Please sign in to comment.