vortex/test/fixtures/agent-task.stub.ts
2024-03-15 16:33:35 +08:00

22 lines
459 B
TypeScript

import { AgentTask } from ".prisma/client";
import { agentStub } from "./agent.stub";
export const agentTaskStub = {
helloTask: Object.freeze<AgentTask>({
id: "hello-task-id",
agentId: agentStub.agent.id,
type: "hello",
task: {
id: "hello-task-id",
type: "hello",
},
result: {
id: "hello-task-id",
success: true,
},
status: "SUCCEEDED",
createdAt: new Date(),
updatedAt: new Date(),
}),
};