mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-21 09:31:18 +00:00
feat(source-weatherkit): add insight slot (#54)
Add LLM-fillable insight slot to weather-current feed items. Prompt lives in a separate .txt file for easy iteration. Also adds interactive CLI script (scripts/query.ts) for querying WeatherKit with credential caching and JSON output. Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { Context, TimeRelevance, UnknownActionError } from "@aris/core"
|
||||
import { LocationKey } from "@aris/source-location"
|
||||
|
||||
import { WeatherFeedItemType, type WeatherFeedItem } from "./feed-items"
|
||||
import currentWeatherInsightPrompt from "./prompts/current-weather-insight.txt"
|
||||
import { WeatherKey, type Weather } from "./weather-context"
|
||||
import {
|
||||
DefaultWeatherKitClient,
|
||||
@@ -309,6 +310,12 @@ function createCurrentWeatherFeedItem(
|
||||
windSpeed: convertSpeed(current.windSpeed, units),
|
||||
},
|
||||
signals,
|
||||
slots: {
|
||||
insight: {
|
||||
description: currentWeatherInsightPrompt,
|
||||
content: null,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user