Skip to content

Commit 66534ed

Browse files
mattleibowCopilot
andcommitted
Fix day count schema: allow 1-7 days instead of hardcoded 3
The [Length(3,3)] attribute on Itinerary.Days forced exactly 3 days regardless of user selection (1-7). Changed to [Length(1,7)] to match the UI range. Also relaxed DayPlan.Activities from [Length(3,3)] to [Length(3,5)] for richer itineraries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fc14f63 commit 66534ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

10.0/AI/LocalChatClientWithAgents/src/Models/Itinerary.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public record Itinerary
1717
[Description("An explanation of how the itinerary meets the person's special requests.")]
1818
public required string Rationale { get; init; }
1919

20-
[Description("A list of day-by-day plans.")]
21-
[Length(3, 3)]
20+
[Description("A list of day-by-day plans matching the requested number of days.")]
21+
[Length(1, 7)]
2222
public required List<DayPlan> Days { get; init; }
2323

2424
public static Itinerary GetExampleTripToJapan() =>
@@ -78,7 +78,7 @@ public record DayPlan
7878

7979
public required string Destination { get; init; }
8080

81-
[Length(3, 3)]
81+
[Length(3, 5)]
8282
public required List<Activity> Activities { get; init; }
8383
}
8484

0 commit comments

Comments
 (0)