@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 864 B
TypeScript
import type { AgentMessage } from "@mariozechner/pi-agent-core";
export declare const INPUT_PROVENANCE_KIND_VALUES: readonly ["external_user", "inter_session", "internal_system"];
export type InputProvenanceKind = (typeof INPUT_PROVENANCE_KIND_VALUES)[number];
export type InputProvenance = {
kind: InputProvenanceKind;
sourceSessionKey?: string;
sourceChannel?: string;
sourceTool?: string;
};
export declare function normalizeInputProvenance(value: unknown): InputProvenance | undefined;
export declare function applyInputProvenanceToUserMessage(message: AgentMessage, inputProvenance: InputProvenance | undefined): AgentMessage;
export declare function isInterSessionInputProvenance(value: unknown): boolean;
export declare function hasInterSessionUserProvenance(message: {
role?: unknown;
provenance?: unknown;
} | undefined): boolean;