Files
klz-cables.com/.pnpm-store/v10/files/4d/7cef04ce39a0856da80e4d4730f0eeafd756c8056ad82e0710e10578e1c1065f0aa863d1529770e27b162de0697c99eaf77ba5f4032242c61844b3fb8f2deb
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

36 lines
1.1 KiB
Plaintext

import { 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