Files
klz-cables.com/.pnpm-store/v10/files/5d/8e5b8ad39e9405987f7cddeba5a881d086f31b130f84d8f73edddc2c1ac87cdca5cb2322878539fb1922b3d4ddaa5ca126e5c5c7c5340d546d5911777de34a
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

35 lines
1.1 KiB
Plaintext

import type { GoogleGenAIIstrumentedMethod } from './types';
/**
* Check if a method path should be instrumented
*/
export declare function shouldInstrument(methodPath: string): methodPath is GoogleGenAIIstrumentedMethod;
/**
* Check if a method is a streaming method
*/
export declare function isStreamingMethod(methodPath: string): boolean;
export type ContentListUnion = Content | Content[] | PartListUnion;
export type ContentUnion = Content | PartUnion[] | PartUnion;
export type Content = {
parts?: Part[];
role?: string;
};
export type PartUnion = Part | string;
export type Part = Record<string, unknown> & {
inlineData?: {
data?: string;
displayName?: string;
mimeType?: string;
};
text?: string;
};
export type PartListUnion = PartUnion[] | PartUnion;
export type Message = Record<string, unknown> & {
role: string;
content?: PartListUnion;
parts?: PartListUnion;
};
/**
*
*/
export declare function contentUnionToMessages(content: ContentListUnion, role?: string): Message[];
//# sourceMappingURL=utils.d.ts.map