Skip to content

Commit

Permalink
fix: export more types
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Dec 2, 2024
1 parent b5b315e commit 0a1d408
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/agentTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import { MaybeMock } from './maybe-mock';

type Format = 'human' | 'json';

type TestStatus = 'NEW' | 'IN_PROGRESS' | 'COMPLETED' | 'ERROR';
export type TestStatus = 'NEW' | 'IN_PROGRESS' | 'COMPLETED' | 'ERROR';

type AgentTestStartResponse = {
export type AgentTestStartResponse = {
aiEvaluationId: string;
status: TestStatus;
};

type AgentTestStatusResponse = {
export type AgentTestStatusResponse = {
status: TestStatus;
startTime: string;
endTime?: string;
errorMessage?: string;
};

type TestCaseResult = {
export type TestCaseResult = {
status: TestStatus;
number: string;
startTime: string;
Expand Down Expand Up @@ -53,7 +53,7 @@ type TestCaseResult = {
}>;
};

type AgentTestDetailsResponse = {
export type AgentTestDetailsResponse = {
status: TestStatus;
startTime: string;
endTime?: string;
Expand Down
19 changes: 13 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
*/

export {
AgentCreateConfig,
AgentCreateResponse,
AgentJobSpec,
AgentJobSpecCreateConfig,
AgentJobSpecCreateResponse,
type AgentCreateConfig,
type AgentCreateResponse,
type AgentJobSpec,
type AgentJobSpecCreateConfig,
type AgentJobSpecCreateResponse,
SfAgent,
} from './types';
export { Agent } from './agent';
export { AgentTester } from './agentTester';
export {
AgentTester,
type AgentTestDetailsResponse,
type AgentTestStartResponse,
type AgentTestStatusResponse,
type TestCaseResult,
type TestStatus,
} from './agentTester';

0 comments on commit 0a1d408

Please sign in to comment.