The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { Field, ObjectType } from '@nestjs/graphql';
import GraphQLJSON from 'graphql-type-json';
import { type RunAgentResult } from 'twenty-shared/application';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
@ObjectType('RunAgentResult')
export class RunAgentResultDTO implements RunAgentResult {
@Field(() => UUIDScalarType)
threadId: string;
@Field(() => UUIDScalarType)
runId: string;
@Field(() => String)
status: RunAgentResult['status'];
@Field(() => GraphQLJSON, { nullable: true })
result: object | null;
@Field(() => String, { nullable: true })
error: string | null;
@Field()
success: boolean;
}