import type { Context } from "@earendil-works/pi-ai"; /** Tool names from the provider context snapshot at stream start (not live pi.getActiveTools()). */ export function getActiveContextToolNames(context: Context): ReadonlySet | undefined { return context.tools ? new Set(context.tools.map((tool) => tool.name)) : undefined; }