Expedition Dispatch
Read the itinerary and crew manifest, then use the latest observations to forecast water use.
Model cloudflare/clairic
Source
Fields to extract
expedition_nametext- Name of the expedition at the top of the dispatch.
supply_cratesnumber- Number of supply crates packed.
departure_datedate- Calendar date on which the expedition departs.
radio_checktime- Local time of the first radio check.
filed_atdatetime- Timestamp at which the dispatch was filed, including the stated offset.
travel_durationduration- Expected travel duration in hours.
crewlist · text- Names of the crew members.
water_historylist · number- Observed daily water use, oldest to latest.
resupply_dateslist · date- Scheduled resupply dates in order.
next_day_waterestimate- Estimate water use in liters on the next day given the observations and weather bulletin.
water_outlookforecast- Forecast water use in liters for each of the next three days after the last observation.
View C# example
using ExtractionsDotNet;
using var client = OpenRouterExtractionsClient.FromEnvironment();
var dispatch = await File.ReadAllTextAsync("dispatch.txt");
var response = await client.ExtractAsync(new ExtractionRequest("cloudflare/clairic",
new Dictionary<string, ExtractionField>
{
["expedition_name"] = new TextField { Instructions = "Name of the expedition at the top of the dispatch." },
["departure_date"] = new DateField { Instructions = "Calendar date on which the expedition departs." },
["radio_check"] = new TimeField { Instructions = "Local time of the first radio check." },
["filed_at"] = new DateTimeField { Instructions = "Timestamp at which the dispatch was filed, including the stated offset." },
["travel_duration"] = new DurationField { Unit = DurationUnit.Hours, Decimals = 2 },
["crew"] = new ListField(ListItemType.Text) { Instructions = "Names of the crew members." },
["water_history"] = new ListField(ListItemType.Number) { Unit = "liters", Decimals = 1 },
["next_day_water"] = new EstimateField(0, 80) { Unit = "liters", Step = 0.5 },
["water_outlook"] = new ForecastField(0, 80, 3, ForecastInterval.Day) { Unit = "liters", Step = 0.5 }
})
{
State = dispatch
});
Console.WriteLine($"{response.GetText("expedition_name").Value} departs {response.GetDate("departure_date").Value}");
Console.WriteLine($"Radio check {response.GetTime("radio_check").Value}, filed {response.GetDateTime("filed_at").Value}");
Console.WriteLine($"Travel: {response.GetDuration("travel_duration").Value} h");
Console.WriteLine($"Crew: {string.Join(", ", response.GetList<string>("crew").Value ?? [])}");
// Estimates and forecasts carry a distribution, not just a number.
var tomorrow = response.GetEstimate<double>("next_day_water");
Console.WriteLine($"Tomorrow: {tomorrow.Value} L (P10 {tomorrow.P10}, P90 {tomorrow.P90})");
// Value, P10, and P90 hold one entry per forecast step; per-step Steps details are optional.
var outlook = response.GetForecast<double>("water_outlook");
for (var day = 0; day < (outlook.Value?.Count ?? 0); day++)
Console.WriteLine($" Day {day + 1}: {outlook.Value![day]} L (P10 {outlook.P10?[day]}, P90 {outlook.P90?[day]})");