Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
No EOL
1 KiB
Text
27 lines
No EOL
1 KiB
Text
import type { InstrumentedMethod, OpenAiChatCompletionObject, OpenAIResponseObject } from './types';
|
|
/**
|
|
* Maps OpenAI method paths to Sentry operation names
|
|
*/
|
|
export declare function getOperationName(methodPath: string): string;
|
|
/**
|
|
* Get the span operation for OpenAI methods
|
|
* Following Sentry's convention: "gen_ai.{operation_name}"
|
|
*/
|
|
export declare function getSpanOperation(methodPath: string): string;
|
|
/**
|
|
* Check if a method path should be instrumented
|
|
*/
|
|
export declare function shouldInstrument(methodPath: string): methodPath is InstrumentedMethod;
|
|
/**
|
|
* Build method path from current traversal
|
|
*/
|
|
export declare function buildMethodPath(currentPath: string, prop: string): string;
|
|
/**
|
|
* Check if response is a Chat Completion object
|
|
*/
|
|
export declare function isChatCompletionResponse(response: unknown): response is OpenAiChatCompletionObject;
|
|
/**
|
|
* Check if response is a Responses API object
|
|
*/
|
|
export declare function isResponsesApiResponse(response: unknown): response is OpenAIResponseObject;
|
|
//# sourceMappingURL=utils.d.ts.map |