@salesforce/agents 0.2.0 → 0.2.1

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.
@@ -2,6 +2,10 @@ import { Connection } from '@salesforce/core';
2
2
  import { Duration } from '@salesforce/kit';
3
3
  type Format = 'human' | 'json';
4
4
  type TestStatus = 'NEW' | 'IN_PROGRESS' | 'COMPLETED' | 'ERROR';
5
+ type AgentTestStartResponse = {
6
+ aiEvaluationId: string;
7
+ status: TestStatus;
8
+ };
5
9
  type AgentTestStatusResponse = {
6
10
  status: TestStatus;
7
11
  startTime: string;
@@ -53,9 +57,7 @@ export declare class AgentTester {
53
57
  * @param type - Specifies whether the provided identifier is a 'name' or 'id'. Defaults to 'name'. If 'name' is provided, nameOrId is treated as the name of the AiEvaluationDefinition. If 'id' is provided, nameOrId is treated as the unique ID of the AiEvaluationDefinition.
54
58
  * @returns A promise that resolves to an object containing the ID of the started AI evaluation run.
55
59
  */
56
- start(nameOrId: string, type?: 'name' | 'id'): Promise<{
57
- aiEvaluationId: string;
58
- }>;
60
+ start(nameOrId: string, type?: 'name' | 'id'): Promise<AgentTestStartResponse>;
59
61
  status(jobId: string): Promise<AgentTestStatusResponse>;
60
62
  poll(jobId: string, { format, timeout, }?: {
61
63
  format?: Format;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/agents",
3
3
  "description": "Client side APIs for working with Salesforce agents",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "license": "BSD-3-Clause",
6
6
  "author": "Salesforce",
7
7
  "main": "lib/index",