Variable AIPromptSchemaConst
AIPromptSchema: ZodObject<{
AIModelType: ZodNullable<ZodString>;
AIModelTypeID: ZodNullable<ZodString>;
CacheMatchType: ZodUnion<[ZodLiteral<"Exact">, ZodLiteral<"Vector">]>;
CacheMustMatchAgent: ZodBoolean;
CacheMustMatchConfig: ZodBoolean;
CacheMustMatchModel: ZodBoolean;
CacheMustMatchVendor: ZodBoolean;
CacheSimilarityThreshold: ZodNullable<ZodNumber>;
CacheTTLSeconds: ZodNullable<ZodNumber>;
Category: ZodNullable<ZodString>;
CategoryID: ZodNullable<ZodString>;
Description: ZodNullable<ZodString>;
EffortLevel: ZodNullable<ZodNumber>;
EnableCaching: ZodBoolean;
FailoverDelaySeconds: ZodNullable<ZodNumber>;
FailoverErrorScope: ZodUnion<[ZodLiteral<"All">, ZodLiteral<"All">, ZodLiteral<"NetworkOnly">, ZodLiteral<"NetworkOnly">, ZodLiteral<"RateLimitOnly">, ZodLiteral<"RateLimitOnly">, ZodLiteral<"ServiceErrorOnly">, ZodLiteral<"ServiceErrorOnly">]>;
FailoverMaxAttempts: ZodNullable<ZodNumber>;
FailoverModelStrategy: ZodUnion<[ZodLiteral<"PreferDifferentModel">, ZodLiteral<"PreferDifferentModel">, ZodLiteral<"PreferSameModel">, ZodLiteral<"PreferSameModel">, ZodLiteral<"RequireSameModel">, ZodLiteral<"RequireSameModel">]>;
FailoverStrategy: ZodUnion<[ZodLiteral<"NextBestModel">, ZodLiteral<"NextBestModel">, ZodLiteral<"None">, ZodLiteral<"None">, ZodLiteral<"PowerRank">, ZodLiteral<"PowerRank">, ZodLiteral<"SameModelDifferentVendor">, ZodLiteral<"SameModelDifferentVendor">]>;
FrequencyPenalty: ZodNullable<ZodNumber>;
ID: ZodString;
IncludeLogProbs: ZodNullable<ZodBoolean>;
MaxRetries: ZodNumber;
MinP: ZodNullable<ZodNumber>;
MinPowerRank: ZodNullable<ZodNumber>;
ModelSpecificResponseFormat: ZodNullable<ZodString>;
Name: ZodString;
OutputExample: ZodNullable<ZodString>;
OutputType: ZodUnion<[ZodLiteral<"boolean">, ZodLiteral<"date">, ZodLiteral<"number">, ZodLiteral<"object">, ZodLiteral<"string">]>;
ParallelConfigParam: ZodNullable<ZodString>;
ParallelCount: ZodNullable<ZodNumber>;
ParallelizationMode: ZodUnion<[ZodLiteral<"ConfigParam">, ZodLiteral<"ModelSpecific">, ZodLiteral<"None">, ZodLiteral<"StaticCount">]>;
PowerPreference: ZodUnion<[ZodLiteral<"Balanced">, ZodLiteral<"Highest">, ZodLiteral<"Lowest">]>;
PresencePenalty: ZodNullable<ZodNumber>;
PromptPosition: ZodUnion<[ZodLiteral<"First">, ZodLiteral<"Last">]>;
PromptRole: ZodUnion<[ZodLiteral<"Assistant">, ZodLiteral<"System">, ZodLiteral<"SystemOrUser">, ZodLiteral<"User">]>;
ResponseFormat: ZodUnion<[ZodLiteral<"Any">, ZodLiteral<"JSON">, ZodLiteral<"Markdown">, ZodLiteral<"ModelSpecific">, ZodLiteral<"Text">]>;
ResultSelectorPrompt: ZodNullable<ZodString>;
ResultSelectorPromptID: ZodNullable<ZodString>;
RetryDelayMS: ZodNumber;
RetryStrategy: ZodUnion<[ZodLiteral<"Exponential">, ZodLiteral<"Fixed">, ZodLiteral<"Linear">]>;
RootResultSelectorPromptID: ZodNullable<ZodString>;
Seed: ZodNullable<ZodNumber>;
SelectionStrategy: ZodUnion<[ZodLiteral<"ByPower">, ZodLiteral<"Default">, ZodLiteral<"Specific">]>;
Status: ZodUnion<[ZodLiteral<"Active">, ZodLiteral<"Disabled">, ZodLiteral<"Pending">]>;
StopSequences: ZodNullable<ZodString>;
Temperature: ZodNullable<ZodNumber>;
Template: ZodString;
TemplateID: ZodString;
TopK: ZodNullable<ZodNumber>;
TopLogProbs: ZodNullable<ZodNumber>;
TopP: ZodNullable<ZodNumber>;
Type: ZodString;
TypeID: ZodString;
ValidationBehavior: ZodUnion<[ZodLiteral<"None">, ZodLiteral<"Strict">, ZodLiteral<"Warn">]>;
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
}, "strip", ZodTypeAny, {
AIModelType?: string;
AIModelTypeID?: string;
CacheMatchType?: "Exact" | "Vector";
CacheMustMatchAgent?: boolean;
CacheMustMatchConfig?: boolean;
CacheMustMatchModel?: boolean;
CacheMustMatchVendor?: boolean;
CacheSimilarityThreshold?: number;
CacheTTLSeconds?: number;
Category?: string;
CategoryID?: string;
Description?: string;
EffortLevel?: number;
EnableCaching?: boolean;
FailoverDelaySeconds?: number;
FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
FailoverMaxAttempts?: number;
FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor";
FrequencyPenalty?: number;
ID?: string;
IncludeLogProbs?: boolean;
MaxRetries?: number;
MinP?: number;
MinPowerRank?: number;
ModelSpecificResponseFormat?: string;
Name?: string;
OutputExample?: string;
OutputType?: "string" | "number" | "boolean" | "object" | "date";
ParallelConfigParam?: string;
ParallelCount?: number;
ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount";
PowerPreference?: "Balanced" | "Highest" | "Lowest";
PresencePenalty?: number;
PromptPosition?: "First" | "Last";
PromptRole?: "User" | "Assistant" | "System" | "SystemOrUser";
ResponseFormat?: "Any" | "JSON" | "Markdown" | "ModelSpecific" | "Text";
ResultSelectorPrompt?: string;
ResultSelectorPromptID?: string;
RetryDelayMS?: number;
RetryStrategy?: "Exponential" | "Fixed" | "Linear";
RootResultSelectorPromptID?: string;
Seed?: number;
SelectionStrategy?: "ByPower" | "Default" | "Specific";
Status?: "Active" | "Disabled" | "Pending";
StopSequences?: string;
Temperature?: number;
Template?: string;
TemplateID?: string;
TopK?: number;
TopLogProbs?: number;
TopP?: number;
Type?: string;
TypeID?: string;
ValidationBehavior?: "None" | "Warn" | "Strict";
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
}, {
AIModelType?: string;
AIModelTypeID?: string;
CacheMatchType?: "Exact" | "Vector";
CacheMustMatchAgent?: boolean;
CacheMustMatchConfig?: boolean;
CacheMustMatchModel?: boolean;
CacheMustMatchVendor?: boolean;
CacheSimilarityThreshold?: number;
CacheTTLSeconds?: number;
Category?: string;
CategoryID?: string;
Description?: string;
EffortLevel?: number;
EnableCaching?: boolean;
FailoverDelaySeconds?: number;
FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
FailoverMaxAttempts?: number;
FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor";
FrequencyPenalty?: number;
ID?: string;
IncludeLogProbs?: boolean;
MaxRetries?: number;
MinP?: number;
MinPowerRank?: number;
ModelSpecificResponseFormat?: string;
Name?: string;
OutputExample?: string;
OutputType?: "string" | "number" | "boolean" | "object" | "date";
ParallelConfigParam?: string;
ParallelCount?: number;
ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount";
PowerPreference?: "Balanced" | "Highest" | "Lowest";
PresencePenalty?: number;
PromptPosition?: "First" | "Last";
PromptRole?: "User" | "Assistant" | "System" | "SystemOrUser";
ResponseFormat?: "Any" | "JSON" | "Markdown" | "ModelSpecific" | "Text";
ResultSelectorPrompt?: string;
ResultSelectorPromptID?: string;
RetryDelayMS?: number;
RetryStrategy?: "Exponential" | "Fixed" | "Linear";
RootResultSelectorPromptID?: string;
Seed?: number;
SelectionStrategy?: "ByPower" | "Default" | "Specific";
Status?: "Active" | "Disabled" | "Pending";
StopSequences?: string;
Temperature?: number;
Template?: string;
TemplateID?: string;
TopK?: number;
TopLogProbs?: number;
TopP?: number;
Type?: string;
TypeID?: string;
ValidationBehavior?: "None" | "Warn" | "Strict";
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
}> = ...
Type declaration
AIModelType: ZodNullable<ZodString>
AIModelTypeID: ZodNullable<ZodString>
CacheMatchType: ZodUnion<[ZodLiteral<"Exact">, ZodLiteral<"Vector">]>
CacheMustMatchAgent: ZodBoolean
CacheMustMatchConfig: ZodBoolean
CacheMustMatchModel: ZodBoolean
CacheMustMatchVendor: ZodBoolean
CacheSimilarityThreshold: ZodNullable<ZodNumber>
CacheTTLSeconds: ZodNullable<ZodNumber>
Category: ZodNullable<ZodString>
CategoryID: ZodNullable<ZodString>
Description: ZodNullable<ZodString>
EffortLevel: ZodNullable<ZodNumber>
EnableCaching: ZodBoolean
FailoverDelaySeconds: ZodNullable<ZodNumber>
FailoverErrorScope: ZodUnion<[ZodLiteral<"All">, ZodLiteral<"All">, ZodLiteral<"NetworkOnly">, ZodLiteral<"NetworkOnly">, ZodLiteral<"RateLimitOnly">, ZodLiteral<"RateLimitOnly">, ZodLiteral<"ServiceErrorOnly">, ZodLiteral<"ServiceErrorOnly">]>
FailoverMaxAttempts: ZodNullable<ZodNumber>
FailoverModelStrategy: ZodUnion<[ZodLiteral<"PreferDifferentModel">, ZodLiteral<"PreferDifferentModel">, ZodLiteral<"PreferSameModel">, ZodLiteral<"PreferSameModel">, ZodLiteral<"RequireSameModel">, ZodLiteral<"RequireSameModel">]>
FailoverStrategy: ZodUnion<[ZodLiteral<"NextBestModel">, ZodLiteral<"NextBestModel">, ZodLiteral<"None">, ZodLiteral<"None">, ZodLiteral<"PowerRank">, ZodLiteral<"PowerRank">, ZodLiteral<"SameModelDifferentVendor">, ZodLiteral<"SameModelDifferentVendor">]>
FrequencyPenalty: ZodNullable<ZodNumber>
ID: ZodString
IncludeLogProbs: ZodNullable<ZodBoolean>
MaxRetries: ZodNumber
MinP: ZodNullable<ZodNumber>
MinPowerRank: ZodNullable<ZodNumber>
ModelSpecificResponseFormat: ZodNullable<ZodString>
Name: ZodString
OutputExample: ZodNullable<ZodString>
OutputType: ZodUnion<[ZodLiteral<"boolean">, ZodLiteral<"date">, ZodLiteral<"number">, ZodLiteral<"object">, ZodLiteral<"string">]>
ParallelConfigParam: ZodNullable<ZodString>
ParallelCount: ZodNullable<ZodNumber>
ParallelizationMode: ZodUnion<[ZodLiteral<"ConfigParam">, ZodLiteral<"ModelSpecific">, ZodLiteral<"None">, ZodLiteral<"StaticCount">]>
PowerPreference: ZodUnion<[ZodLiteral<"Balanced">, ZodLiteral<"Highest">, ZodLiteral<"Lowest">]>
PresencePenalty: ZodNullable<ZodNumber>
PromptPosition: ZodUnion<[ZodLiteral<"First">, ZodLiteral<"Last">]>
PromptRole: ZodUnion<[ZodLiteral<"Assistant">, ZodLiteral<"System">, ZodLiteral<"SystemOrUser">, ZodLiteral<"User">]>
ResponseFormat: ZodUnion<[ZodLiteral<"Any">, ZodLiteral<"JSON">, ZodLiteral<"Markdown">, ZodLiteral<"ModelSpecific">, ZodLiteral<"Text">]>
ResultSelectorPrompt: ZodNullable<ZodString>
ResultSelectorPromptID: ZodNullable<ZodString>
RetryDelayMS: ZodNumber
RetryStrategy: ZodUnion<[ZodLiteral<"Exponential">, ZodLiteral<"Fixed">, ZodLiteral<"Linear">]>
RootResultSelectorPromptID: ZodNullable<ZodString>
Seed: ZodNullable<ZodNumber>
SelectionStrategy: ZodUnion<[ZodLiteral<"ByPower">, ZodLiteral<"Default">, ZodLiteral<"Specific">]>
Status: ZodUnion<[ZodLiteral<"Active">, ZodLiteral<"Disabled">, ZodLiteral<"Pending">]>
StopSequences: ZodNullable<ZodString>
Temperature: ZodNullable<ZodNumber>
Template: ZodString
TemplateID: ZodString
TopK: ZodNullable<ZodNumber>
TopLogProbs: ZodNullable<ZodNumber>
TopP: ZodNullable<ZodNumber>
Type: ZodString
TypeID: ZodString
ValidationBehavior: ZodUnion<[ZodLiteral<"None">, ZodLiteral<"Strict">, ZodLiteral<"Warn">]>
__mj_CreatedAt: ZodDate
__mj_UpdatedAt: ZodDate
Type declaration
Optional AIModelType?: string
Optional AIModelTypeID?: string
Optional CacheMatchType?: "Exact" | "Vector"
Optional CacheMustMatchAgent?: boolean
Optional CacheMustMatchConfig?: boolean
Optional CacheMustMatchModel?: boolean
Optional CacheMustMatchVendor?: boolean
Optional CacheSimilarityThreshold?: number
Optional CacheTTLSeconds?: number
Optional Category?: string
Optional CategoryID?: string
Optional Description?: string
Optional EffortLevel?: number
Optional EnableCaching?: boolean
Optional FailoverDelaySeconds?: number
Optional FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly"
Optional FailoverMaxAttempts?: number
Optional FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel"
Optional FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor"
Optional FrequencyPenalty?: number
Optional ID?: string
Optional IncludeLogProbs?: boolean
Optional MaxRetries?: number
Optional MinP?: number
Optional MinPowerRank?: number
Optional ModelSpecificResponseFormat?: string
Optional Name?: string
Optional OutputExample?: string
Optional OutputType?: "string" | "number" | "boolean" | "object" | "date"
Optional ParallelConfigParam?: string
Optional ParallelCount?: number
Optional ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount"
Optional PowerPreference?: "Balanced" | "Highest" | "Lowest"
Optional PresencePenalty?: number
Optional PromptPosition?: "First" | "Last"
Optional PromptRole?: "User" | "Assistant" | "System" | "SystemOrUser"
Optional ResponseFormat?: "Any" | "JSON" | "Markdown" | "ModelSpecific" | "Text"
Optional ResultSelectorPrompt?: string
Optional ResultSelectorPromptID?: string
Optional RetryDelayMS?: number
Optional RetryStrategy?: "Exponential" | "Fixed" | "Linear"
Optional RootResultSelectorPromptID?: string
Optional Seed?: number
Optional SelectionStrategy?: "ByPower" | "Default" | "Specific"
Optional Status?: "Active" | "Disabled" | "Pending"
Optional StopSequences?: string
Optional Temperature?: number
Optional Template?: string
Optional TemplateID?: string
Optional TopK?: number
Optional TopLogProbs?: number
Optional TopP?: number
Optional Type?: string
Optional TypeID?: string
Optional ValidationBehavior?: "None" | "Warn" | "Strict"
Optional __mj_CreatedAt?: Date
Optional __mj_UpdatedAt?: Date
Type declaration
Optional AIModelType?: string
Optional AIModelTypeID?: string
Optional CacheMatchType?: "Exact" | "Vector"
Optional CacheMustMatchAgent?: boolean
Optional CacheMustMatchConfig?: boolean
Optional CacheMustMatchModel?: boolean
Optional CacheMustMatchVendor?: boolean
Optional CacheSimilarityThreshold?: number
Optional CacheTTLSeconds?: number
Optional Category?: string
Optional CategoryID?: string
Optional Description?: string
Optional EffortLevel?: number
Optional EnableCaching?: boolean
Optional FailoverDelaySeconds?: number
Optional FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly"
Optional FailoverMaxAttempts?: number
Optional FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel"
Optional FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor"
Optional FrequencyPenalty?: number
Optional ID?: string
Optional IncludeLogProbs?: boolean
Optional MaxRetries?: number
Optional MinP?: number
Optional MinPowerRank?: number
Optional ModelSpecificResponseFormat?: string
Optional Name?: string
Optional OutputExample?: string
Optional OutputType?: "string" | "number" | "boolean" | "object" | "date"
Optional ParallelConfigParam?: string
Optional ParallelCount?: number
Optional ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount"
Optional PowerPreference?: "Balanced" | "Highest" | "Lowest"
Optional PresencePenalty?: number
Optional PromptPosition?: "First" | "Last"
Optional PromptRole?: "User" | "Assistant" | "System" | "SystemOrUser"
Optional ResponseFormat?: "Any" | "JSON" | "Markdown" | "ModelSpecific" | "Text"
Optional ResultSelectorPrompt?: string
Optional ResultSelectorPromptID?: string
Optional RetryDelayMS?: number
Optional RetryStrategy?: "Exponential" | "Fixed" | "Linear"
Optional RootResultSelectorPromptID?: string
Optional Seed?: number
Optional SelectionStrategy?: "ByPower" | "Default" | "Specific"
Optional Status?: "Active" | "Disabled" | "Pending"
Optional StopSequences?: string
Optional Temperature?: number
Optional Template?: string
Optional TemplateID?: string
Optional TopK?: number
Optional TopLogProbs?: number
Optional TopP?: number
Optional Type?: string
Optional TypeID?: string
Optional ValidationBehavior?: "None" | "Warn" | "Strict"
Optional __mj_CreatedAt?: Date
Optional __mj_UpdatedAt?: Date
zod schema definition for the entity AI Prompts