types.go

 1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5package habits
 6
 7// TrackInput is the input for the track_habit_activity tool.
 8type TrackInput struct {
 9	// HabitID is the ID of the habit to track.
10	// Must be a valid habit_id from the habits resource.
11	HabitID string `json:"habit_id" jsonschema:"required"`
12	// PerformedOn is the date when the habit was performed in YYYY-MM-DD format.
13	PerformedOn string `json:"performed_on" jsonschema:"required"`
14}
15
16// TrackOutput is the output for the track_habit_activity tool.
17type TrackOutput struct {
18	Status  string `json:"status"`  // Status of the tracking operation
19	Message string `json:"message"` // Human-readable message about the result
20}