@zuplo/runtime 6.61.11 → 6.61.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/esm/index.js +70 -69
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +49 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -2721,6 +2721,55 @@ export declare interface FormDataToJsonInboundPolicyOptions {
|
|
|
2721
2721
|
optionalHoneypotName?: string;
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
+
/**
|
|
2725
|
+
* Galileo Tracing Inbound Policy
|
|
2726
|
+
* @title Galileo Tracing Inbound Policy
|
|
2727
|
+
* @product ai-gateway
|
|
2728
|
+
*
|
|
2729
|
+
* This policy automatically handles tracing for both streaming and non-streaming
|
|
2730
|
+
* responses from AI Gateway. It creates complete traces with workflow and LLM spans
|
|
2731
|
+
* when responses complete.
|
|
2732
|
+
*
|
|
2733
|
+
* For streaming responses, it clones the response stream and processes it in
|
|
2734
|
+
* the background using `waitUntil`, allowing the original stream to pass through
|
|
2735
|
+
* unmodified while still capturing the complete content for tracing.
|
|
2736
|
+
*
|
|
2737
|
+
* @param request - The ZuploRequest
|
|
2738
|
+
* @param context - The ZuploContext
|
|
2739
|
+
* @param options - The policy options set in policies.json
|
|
2740
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
2741
|
+
* @returns A Request or a Response
|
|
2742
|
+
*/
|
|
2743
|
+
export declare function GalileoTracingInboundPolicy(
|
|
2744
|
+
request: ZuploRequest,
|
|
2745
|
+
context: ZuploContext,
|
|
2746
|
+
options: GalileoTracingPolicyOptions,
|
|
2747
|
+
policyName: string
|
|
2748
|
+
): Promise<ZuploRequest | Response>;
|
|
2749
|
+
|
|
2750
|
+
/**
|
|
2751
|
+
* Track AI Gateway requests and responses using Galileo's LLM observability platform.
|
|
2752
|
+
* @public
|
|
2753
|
+
*/
|
|
2754
|
+
export declare interface GalileoTracingPolicyOptions {
|
|
2755
|
+
/**
|
|
2756
|
+
* The Galileo API key for authentication.
|
|
2757
|
+
*/
|
|
2758
|
+
apiKey: string;
|
|
2759
|
+
/**
|
|
2760
|
+
* The Galileo project ID (UUID) for organizing traces.
|
|
2761
|
+
*/
|
|
2762
|
+
projectId: string;
|
|
2763
|
+
/**
|
|
2764
|
+
* The Galileo log stream ID (UUID) for organizing traces.
|
|
2765
|
+
*/
|
|
2766
|
+
logStreamId: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* The base URL for the Galileo API (optional, defaults to https://api.galileo.ai).
|
|
2769
|
+
*/
|
|
2770
|
+
baseUrl?: string;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2724
2773
|
/**
|
|
2725
2774
|
* Function to generate request logger entries
|
|
2726
2775
|
* @public
|