@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
11 lines • 691 B
TypeScript
/**
* The `createdAt` / `updatedAt` every Agora console reads the same way. A store hands back whatever
* its driver gave it — epoch ms (the agent tables' `BIGINT`, possibly as a string or a bigint), a
* `Date`, an ISO string, a Luxon `DateTime` — and these turn it into a `Date`, or the ISO 8601 string
* (`null` when unknown) the JSON APIs send.
*/
/** `value` as a `Date`, or `undefined` when it is absent or not a time. */
export declare function toDate(value: unknown): Date | undefined;
/** `value` as an ISO 8601 string, or `null` when it is absent or not a time. */
export declare function toIsoOrNull(value: unknown): string | null;
//# sourceMappingURL=timestamps.d.ts.map