@arizeai/phoenix-evals 0.7.0 → 0.9.0

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.
Files changed (107) hide show
  1. package/dist/esm/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  2. package/dist/esm/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  3. package/dist/esm/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.js +33 -0
  4. package/dist/esm/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  5. package/dist/esm/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  6. package/dist/esm/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  7. package/dist/esm/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.js +30 -0
  8. package/dist/esm/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  9. package/dist/esm/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  10. package/dist/esm/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  11. package/dist/esm/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.js +86 -0
  12. package/dist/esm/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  13. package/dist/esm/__generated__/default_templates/index.d.ts +3 -0
  14. package/dist/esm/__generated__/default_templates/index.d.ts.map +1 -1
  15. package/dist/esm/__generated__/default_templates/index.js +3 -0
  16. package/dist/esm/__generated__/default_templates/index.js.map +1 -1
  17. package/dist/esm/core/EvaluatorBase.d.ts.map +1 -1
  18. package/dist/esm/llm/createCorrectnessEvaluator.d.ts.map +1 -1
  19. package/dist/esm/llm/createDocumentRelevanceEvaluator.d.ts.map +1 -1
  20. package/dist/esm/llm/createDocumentRelevanceEvaluator.js.map +1 -1
  21. package/dist/esm/llm/createFaithfulnessEvaluator.d.ts +24 -0
  22. package/dist/esm/llm/createFaithfulnessEvaluator.d.ts.map +1 -0
  23. package/dist/esm/llm/createFaithfulnessEvaluator.js +19 -0
  24. package/dist/esm/llm/createFaithfulnessEvaluator.js.map +1 -0
  25. package/dist/esm/llm/createHallucinationEvaluator.d.ts +12 -0
  26. package/dist/esm/llm/createHallucinationEvaluator.d.ts.map +1 -1
  27. package/dist/esm/llm/createHallucinationEvaluator.js +17 -0
  28. package/dist/esm/llm/createHallucinationEvaluator.js.map +1 -1
  29. package/dist/esm/llm/createToolInvocationEvaluator.d.ts +74 -0
  30. package/dist/esm/llm/createToolInvocationEvaluator.d.ts.map +1 -0
  31. package/dist/esm/llm/createToolInvocationEvaluator.js +60 -0
  32. package/dist/esm/llm/createToolInvocationEvaluator.js.map +1 -0
  33. package/dist/esm/llm/createToolResponseHandlingEvaluator.d.ts +78 -0
  34. package/dist/esm/llm/createToolResponseHandlingEvaluator.d.ts.map +1 -0
  35. package/dist/esm/llm/createToolResponseHandlingEvaluator.js +59 -0
  36. package/dist/esm/llm/createToolResponseHandlingEvaluator.js.map +1 -0
  37. package/dist/esm/llm/createToolSelectionEvaluator.d.ts +64 -0
  38. package/dist/esm/llm/createToolSelectionEvaluator.d.ts.map +1 -0
  39. package/dist/esm/llm/createToolSelectionEvaluator.js +50 -0
  40. package/dist/esm/llm/createToolSelectionEvaluator.js.map +1 -0
  41. package/dist/esm/llm/index.d.ts +9 -5
  42. package/dist/esm/llm/index.d.ts.map +1 -1
  43. package/dist/esm/llm/index.js +9 -5
  44. package/dist/esm/llm/index.js.map +1 -1
  45. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  46. package/dist/esm/types/evals.d.ts.map +1 -1
  47. package/dist/src/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  48. package/dist/src/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  49. package/dist/src/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.js +36 -0
  50. package/dist/src/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  51. package/dist/src/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  52. package/dist/src/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  53. package/dist/src/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.js +33 -0
  54. package/dist/src/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  55. package/dist/src/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.d.ts +3 -0
  56. package/dist/src/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.d.ts.map +1 -0
  57. package/dist/src/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.js +89 -0
  58. package/dist/src/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.js.map +1 -0
  59. package/dist/src/__generated__/default_templates/index.d.ts +3 -0
  60. package/dist/src/__generated__/default_templates/index.d.ts.map +1 -1
  61. package/dist/src/__generated__/default_templates/index.js +7 -1
  62. package/dist/src/__generated__/default_templates/index.js.map +1 -1
  63. package/dist/src/core/EvaluatorBase.d.ts.map +1 -1
  64. package/dist/src/llm/createCorrectnessEvaluator.d.ts.map +1 -1
  65. package/dist/src/llm/createDocumentRelevanceEvaluator.d.ts.map +1 -1
  66. package/dist/src/llm/createDocumentRelevanceEvaluator.js.map +1 -1
  67. package/dist/src/llm/createFaithfulnessEvaluator.d.ts +24 -0
  68. package/dist/src/llm/createFaithfulnessEvaluator.d.ts.map +1 -0
  69. package/dist/src/llm/createFaithfulnessEvaluator.js +30 -0
  70. package/dist/src/llm/createFaithfulnessEvaluator.js.map +1 -0
  71. package/dist/src/llm/createHallucinationEvaluator.d.ts +12 -0
  72. package/dist/src/llm/createHallucinationEvaluator.d.ts.map +1 -1
  73. package/dist/src/llm/createHallucinationEvaluator.js +17 -0
  74. package/dist/src/llm/createHallucinationEvaluator.js.map +1 -1
  75. package/dist/src/llm/createToolInvocationEvaluator.d.ts +74 -0
  76. package/dist/src/llm/createToolInvocationEvaluator.d.ts.map +1 -0
  77. package/dist/src/llm/createToolInvocationEvaluator.js +71 -0
  78. package/dist/src/llm/createToolInvocationEvaluator.js.map +1 -0
  79. package/dist/src/llm/createToolResponseHandlingEvaluator.d.ts +78 -0
  80. package/dist/src/llm/createToolResponseHandlingEvaluator.d.ts.map +1 -0
  81. package/dist/src/llm/createToolResponseHandlingEvaluator.js +70 -0
  82. package/dist/src/llm/createToolResponseHandlingEvaluator.js.map +1 -0
  83. package/dist/src/llm/createToolSelectionEvaluator.d.ts +64 -0
  84. package/dist/src/llm/createToolSelectionEvaluator.d.ts.map +1 -0
  85. package/dist/src/llm/createToolSelectionEvaluator.js +61 -0
  86. package/dist/src/llm/createToolSelectionEvaluator.js.map +1 -0
  87. package/dist/src/llm/index.d.ts +9 -5
  88. package/dist/src/llm/index.d.ts.map +1 -1
  89. package/dist/src/llm/index.js +9 -5
  90. package/dist/src/llm/index.js.map +1 -1
  91. package/dist/src/types/evals.d.ts.map +1 -1
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +1 -1
  94. package/src/__generated__/default_templates/FAITHFULNESS_CLASSIFICATION_EVALUATOR_CONFIG.ts +35 -0
  95. package/src/__generated__/default_templates/TOOL_INVOCATION_CLASSIFICATION_EVALUATOR_CONFIG.ts +32 -0
  96. package/src/__generated__/default_templates/TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.ts +88 -0
  97. package/src/__generated__/default_templates/index.ts +3 -0
  98. package/src/core/EvaluatorBase.ts +3 -3
  99. package/src/llm/createCorrectnessEvaluator.ts +3 -3
  100. package/src/llm/createDocumentRelevanceEvaluator.ts +7 -11
  101. package/src/llm/createFaithfulnessEvaluator.ts +52 -0
  102. package/src/llm/createHallucinationEvaluator.ts +25 -3
  103. package/src/llm/createToolInvocationEvaluator.ts +103 -0
  104. package/src/llm/createToolResponseHandlingEvaluator.ts +109 -0
  105. package/src/llm/createToolSelectionEvaluator.ts +93 -0
  106. package/src/llm/index.ts +9 -5
  107. package/src/types/evals.ts +5 -4
@@ -0,0 +1,59 @@
1
+ import { TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG } from "../__generated__/default_templates/index.js";
2
+ import { createClassificationEvaluator } from "./createClassificationEvaluator.js";
3
+ /**
4
+ * Creates a tool response handling evaluator function.
5
+ *
6
+ * This function returns an evaluator that determines whether an AI agent properly
7
+ * handled a tool's response, including error handling, data extraction,
8
+ * transformation, and safe information disclosure.
9
+ *
10
+ * @param args - The arguments for creating the tool response handling evaluator.
11
+ * @param args.model - The model to use for classification.
12
+ * @param args.choices - The possible classification choices (defaults to correct/incorrect).
13
+ * @param args.promptTemplate - The prompt template to use.
14
+ * @param args.telemetry - The telemetry to use for the evaluator.
15
+ *
16
+ * @returns An evaluator function that takes a {@link ToolResponseHandlingEvaluationRecord}
17
+ * and returns a classification result indicating whether the tool response handling
18
+ * is correct or incorrect.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const evaluator = createToolResponseHandlingEvaluator({ model: openai("gpt-4o-mini") });
23
+ *
24
+ * // Example: Correct extraction from tool result
25
+ * const result = await evaluator.evaluate({
26
+ * input: "What's the weather in Seattle?",
27
+ * toolCall: 'get_weather(location="Seattle")',
28
+ * toolResult: JSON.stringify({
29
+ * temperature: 58,
30
+ * unit: "fahrenheit",
31
+ * conditions: "partly cloudy"
32
+ * }),
33
+ * output: "The weather in Seattle is 58°F and partly cloudy."
34
+ * });
35
+ * console.log(result.label); // "correct"
36
+ *
37
+ * // Example: Hallucinated data (incorrect)
38
+ * const resultHallucinated = await evaluator.evaluate({
39
+ * input: "What restaurants are nearby?",
40
+ * toolCall: 'search_restaurants(location="downtown")',
41
+ * toolResult: JSON.stringify({
42
+ * results: [{ name: "Cafe Luna", rating: 4.2 }]
43
+ * }),
44
+ * output: "I found Cafe Luna (4.2 stars) and Mario's Italian (4.8 stars) nearby."
45
+ * });
46
+ * console.log(resultHallucinated.label); // "incorrect" - Mario's was hallucinated
47
+ * ```
48
+ */
49
+ export function createToolResponseHandlingEvaluator(args) {
50
+ const { choices = TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.choices, promptTemplate = TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.template, optimizationDirection = TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.optimizationDirection, name = TOOL_RESPONSE_HANDLING_CLASSIFICATION_EVALUATOR_CONFIG.name, ...rest } = args;
51
+ return createClassificationEvaluator({
52
+ ...rest,
53
+ promptTemplate,
54
+ choices,
55
+ optimizationDirection,
56
+ name,
57
+ });
58
+ }
59
+ //# sourceMappingURL=createToolResponseHandlingEvaluator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createToolResponseHandlingEvaluator.js","sourceRoot":"","sources":["../../../src/llm/createToolResponseHandlingEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sDAAsD,EAAE,MAAM,oCAAoC,CAAC;AAI5G,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAsChF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,UAAU,mCAAmC,CAIjD,IAAmD;IAEnD,MAAM,EACJ,OAAO,GAAG,sDAAsD,CAAC,OAAO,EACxE,cAAc,GAAG,sDAAsD,CAAC,QAAQ,EAChF,qBAAqB,GAAG,sDAAsD,CAAC,qBAAqB,EACpG,IAAI,GAAG,sDAAsD,CAAC,IAAI,EAClE,GAAG,IAAI,EACR,GAAG,IAAI,CAAC;IACT,OAAO,6BAA6B,CAAa;QAC/C,GAAG,IAAI;QACP,cAAc;QACd,OAAO;QACP,qBAAqB;QACrB,IAAI;KACL,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { CreateClassificationEvaluatorArgs } from "../types/evals.js";
2
+ import { ClassificationEvaluator } from "./ClassificationEvaluator.js";
3
+ export interface ToolSelectionEvaluatorArgs<RecordType extends Record<string, unknown> = ToolSelectionEvaluationRecord> extends Omit<CreateClassificationEvaluatorArgs<RecordType>, "promptTemplate" | "choices" | "optimizationDirection" | "name"> {
4
+ optimizationDirection?: CreateClassificationEvaluatorArgs<RecordType>["optimizationDirection"];
5
+ name?: CreateClassificationEvaluatorArgs<RecordType>["name"];
6
+ choices?: CreateClassificationEvaluatorArgs<RecordType>["choices"];
7
+ promptTemplate?: CreateClassificationEvaluatorArgs<RecordType>["promptTemplate"];
8
+ }
9
+ /**
10
+ * A record to be evaluated by the tool selection evaluator.
11
+ */
12
+ export type ToolSelectionEvaluationRecord = {
13
+ /**
14
+ * The input query or conversation context.
15
+ */
16
+ input: string;
17
+ /**
18
+ * The available tools that the LLM could use.
19
+ */
20
+ availableTools: string;
21
+ /**
22
+ * The tool or tools selected by the LLM.
23
+ */
24
+ toolSelection: string;
25
+ };
26
+ /**
27
+ * Creates a tool selection evaluator function.
28
+ *
29
+ * This function returns an evaluator that determines whether the correct tool
30
+ * was selected for a given context. Unlike the tool invocation evaluator which
31
+ * checks if the tool was called correctly with proper arguments, this evaluator
32
+ * focuses on whether the right tool was chosen in the first place.
33
+ *
34
+ * The evaluator checks for:
35
+ * - Whether the LLM chose the best available tool for the user query
36
+ * - Whether the tool name exists in the available tools list
37
+ * - Whether the correct number of tools were selected for the task
38
+ * - Whether the tool selection is safe and appropriate
39
+ *
40
+ * @param args - The arguments for creating the tool selection evaluator.
41
+ * @param args.model - The model to use for classification.
42
+ * @param args.choices - The possible classification choices (defaults to correct/incorrect).
43
+ * @param args.promptTemplate - The prompt template to use (defaults to TOOL_SELECTION_TEMPLATE).
44
+ * @param args.telemetry - The telemetry to use for the evaluator.
45
+ *
46
+ * @returns An evaluator function that takes a {@link ToolSelectionEvaluationRecord} and returns
47
+ * a classification result indicating whether the tool selection is correct or incorrect.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const evaluator = createToolSelectionEvaluator({ model: openai("gpt-4o-mini") });
52
+ *
53
+ * const result = await evaluator.evaluate({
54
+ * input: "User: What is the weather in San Francisco?",
55
+ * availableTools: `WeatherTool: Get the current weather for a location.
56
+ * NewsTool: Stay connected to global events with our up-to-date news around the world.
57
+ * MusicTool: Create playlists, search for music, and check the latest music trends.`,
58
+ * toolSelection: "WeatherTool"
59
+ * });
60
+ * console.log(result.label); // "correct" or "incorrect"
61
+ * ```
62
+ */
63
+ export declare function createToolSelectionEvaluator<RecordType extends Record<string, unknown> = ToolSelectionEvaluationRecord>(args: ToolSelectionEvaluatorArgs<RecordType>): ClassificationEvaluator<RecordType>;
64
+ //# sourceMappingURL=createToolSelectionEvaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createToolSelectionEvaluator.d.ts","sourceRoot":"","sources":["../../../src/llm/createToolSelectionEvaluator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,WAAW,0BAA0B,CACzC,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,6BAA6B,CAC1E,SAAQ,IAAI,CACZ,iCAAiC,CAAC,UAAU,CAAC,EAC7C,gBAAgB,GAAG,SAAS,GAAG,uBAAuB,GAAG,MAAM,CAChE;IACC,qBAAqB,CAAC,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAC,uBAAuB,CAAC,CAAC;IAC/F,IAAI,CAAC,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;IACnE,cAAc,CAAC,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAC;CAClF;AAED;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,6BAA6B,EAE1E,IAAI,EAAE,0BAA0B,CAAC,UAAU,CAAC,GAC3C,uBAAuB,CAAC,UAAU,CAAC,CAerC"}
@@ -0,0 +1,50 @@
1
+ import { TOOL_SELECTION_CLASSIFICATION_EVALUATOR_CONFIG } from "../__generated__/default_templates/index.js";
2
+ import { createClassificationEvaluator } from "./createClassificationEvaluator.js";
3
+ /**
4
+ * Creates a tool selection evaluator function.
5
+ *
6
+ * This function returns an evaluator that determines whether the correct tool
7
+ * was selected for a given context. Unlike the tool invocation evaluator which
8
+ * checks if the tool was called correctly with proper arguments, this evaluator
9
+ * focuses on whether the right tool was chosen in the first place.
10
+ *
11
+ * The evaluator checks for:
12
+ * - Whether the LLM chose the best available tool for the user query
13
+ * - Whether the tool name exists in the available tools list
14
+ * - Whether the correct number of tools were selected for the task
15
+ * - Whether the tool selection is safe and appropriate
16
+ *
17
+ * @param args - The arguments for creating the tool selection evaluator.
18
+ * @param args.model - The model to use for classification.
19
+ * @param args.choices - The possible classification choices (defaults to correct/incorrect).
20
+ * @param args.promptTemplate - The prompt template to use (defaults to TOOL_SELECTION_TEMPLATE).
21
+ * @param args.telemetry - The telemetry to use for the evaluator.
22
+ *
23
+ * @returns An evaluator function that takes a {@link ToolSelectionEvaluationRecord} and returns
24
+ * a classification result indicating whether the tool selection is correct or incorrect.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const evaluator = createToolSelectionEvaluator({ model: openai("gpt-4o-mini") });
29
+ *
30
+ * const result = await evaluator.evaluate({
31
+ * input: "User: What is the weather in San Francisco?",
32
+ * availableTools: `WeatherTool: Get the current weather for a location.
33
+ * NewsTool: Stay connected to global events with our up-to-date news around the world.
34
+ * MusicTool: Create playlists, search for music, and check the latest music trends.`,
35
+ * toolSelection: "WeatherTool"
36
+ * });
37
+ * console.log(result.label); // "correct" or "incorrect"
38
+ * ```
39
+ */
40
+ export function createToolSelectionEvaluator(args) {
41
+ const { choices = TOOL_SELECTION_CLASSIFICATION_EVALUATOR_CONFIG.choices, promptTemplate = TOOL_SELECTION_CLASSIFICATION_EVALUATOR_CONFIG.template, optimizationDirection = TOOL_SELECTION_CLASSIFICATION_EVALUATOR_CONFIG.optimizationDirection, name = TOOL_SELECTION_CLASSIFICATION_EVALUATOR_CONFIG.name, ...rest } = args;
42
+ return createClassificationEvaluator({
43
+ ...rest,
44
+ promptTemplate,
45
+ choices,
46
+ optimizationDirection,
47
+ name,
48
+ });
49
+ }
50
+ //# sourceMappingURL=createToolSelectionEvaluator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createToolSelectionEvaluator.js","sourceRoot":"","sources":["../../../src/llm/createToolSelectionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,MAAM,oCAAoC,CAAC;AAIpG,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAgChF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,4BAA4B,CAG1C,IAA4C;IAE5C,MAAM,EACJ,OAAO,GAAG,8CAA8C,CAAC,OAAO,EAChE,cAAc,GAAG,8CAA8C,CAAC,QAAQ,EACxE,qBAAqB,GAAG,8CAA8C,CAAC,qBAAqB,EAC5F,IAAI,GAAG,8CAA8C,CAAC,IAAI,EAC1D,GAAG,IAAI,EACR,GAAG,IAAI,CAAC;IACT,OAAO,6BAA6B,CAAa;QAC/C,GAAG,IAAI;QACP,cAAc;QACd,OAAO;QACP,qBAAqB;QACrB,IAAI;KACL,CAAC,CAAC;AACL,CAAC"}
@@ -1,9 +1,13 @@
1
- export * from "./generateClassification.js";
2
- export * from "./createClassifierFn.js";
1
+ export * from "./ClassificationEvaluator.js";
3
2
  export * from "./createClassificationEvaluator.js";
4
- export * from "./createHallucinationEvaluator.js";
5
- export * from "./createDocumentRelevanceEvaluator.js";
3
+ export * from "./createClassifierFn.js";
6
4
  export * from "./createCorrectnessEvaluator.js";
7
- export * from "./ClassificationEvaluator.js";
5
+ export * from "./createDocumentRelevanceEvaluator.js";
6
+ export * from "./createFaithfulnessEvaluator.js";
7
+ export * from "./createHallucinationEvaluator.js";
8
+ export * from "./createToolInvocationEvaluator.js";
9
+ export * from "./createToolResponseHandlingEvaluator.js";
10
+ export * from "./createToolSelectionEvaluator.js";
11
+ export * from "./generateClassification.js";
8
12
  export * from "./LLMEvaluator.js";
9
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
@@ -1,9 +1,13 @@
1
- export * from "./generateClassification.js";
2
- export * from "./createClassifierFn.js";
1
+ export * from "./ClassificationEvaluator.js";
3
2
  export * from "./createClassificationEvaluator.js";
4
- export * from "./createHallucinationEvaluator.js";
5
- export * from "./createDocumentRelevanceEvaluator.js";
3
+ export * from "./createClassifierFn.js";
6
4
  export * from "./createCorrectnessEvaluator.js";
7
- export * from "./ClassificationEvaluator.js";
5
+ export * from "./createDocumentRelevanceEvaluator.js";
6
+ export * from "./createFaithfulnessEvaluator.js";
7
+ export * from "./createHallucinationEvaluator.js"; // Deprecated: use createFaithfulnessEvaluator
8
+ export * from "./createToolInvocationEvaluator.js";
9
+ export * from "./createToolResponseHandlingEvaluator.js";
10
+ export * from "./createToolSelectionEvaluator.js";
11
+ export * from "./generateClassification.js";
8
12
  export * from "./LLMEvaluator.js";
9
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/llm/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/llm/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC,CAAC,8CAA8C;AAC9F,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}