@memberjunction/react-runtime 5.19.0 → 5.21.0
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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +22 -0
- package/dist/runtime.umd.js +9 -3
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @memberjunction/react-runtime@5.
|
|
2
|
+
> @memberjunction/react-runtime@5.21.0 build
|
|
3
3
|
> npm run build:node && npm run build:umd
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @memberjunction/react-runtime@5.
|
|
6
|
+
> @memberjunction/react-runtime@5.21.0 build:node
|
|
7
7
|
> tsc
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @memberjunction/react-runtime@5.
|
|
10
|
+
> @memberjunction/react-runtime@5.21.0 build:umd
|
|
11
11
|
> webpack --config webpack.umd.config.cjs
|
|
12
12
|
|
|
13
13
|
[BABEL] Note: The code generator has deoptimised the styling of /home/runner/work/MJ/MJ/packages/MJCoreEntities/dist/generated/entity_subclasses.js as it exceeds the max of 500KB.
|
|
14
|
-
asset [1m[33mruntime.umd.js[39m[22m [1m[33m5.
|
|
14
|
+
asset [1m[33mruntime.umd.js[39m[22m [1m[33m5.93 MiB[39m[22m [1m[32m[emitted][39m[22m [1m[33m[big][39m[22m (name: main)
|
|
15
15
|
asset [1m[32m490.runtime.umd.js[39m[22m 182 KiB [1m[32m[emitted][39m[22m (id hint: vendors)
|
|
16
16
|
asset [1m[32m324.runtime.umd.js[39m[22m 158 KiB [1m[32m[emitted][39m[22m
|
|
17
17
|
orphan modules 5.97 MiB [1m[33m[orphan][39m[22m 492 modules
|
|
@@ -28,4 +28,4 @@ cacheable modules 6.11 MiB
|
|
|
28
28
|
[1m../../MJCore/dist/index.js + 75 modules[39m[22m 1.25 MiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
29
29
|
[1m../../MJGlobal/dist/index.js + 16 modules[39m[22m 208 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
30
30
|
[1m../../GraphQLDataProvider/dist/index.mjs[39m[22m 141 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
|
-
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m in
|
|
31
|
+
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m in 81215 ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @memberjunction/react-runtime
|
|
2
2
|
|
|
3
|
+
## 5.21.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c7dfb20]
|
|
8
|
+
- @memberjunction/core@5.21.0
|
|
9
|
+
- @memberjunction/interactive-component-types@5.21.0
|
|
10
|
+
- @memberjunction/graphql-dataprovider@5.21.0
|
|
11
|
+
- @memberjunction/core-entities@5.21.0
|
|
12
|
+
- @memberjunction/global@5.21.0
|
|
13
|
+
|
|
14
|
+
## 5.20.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [2298f8a]
|
|
19
|
+
- @memberjunction/core@5.20.0
|
|
20
|
+
- @memberjunction/graphql-dataprovider@5.20.0
|
|
21
|
+
- @memberjunction/interactive-component-types@5.20.0
|
|
22
|
+
- @memberjunction/core-entities@5.20.0
|
|
23
|
+
- @memberjunction/global@5.20.0
|
|
24
|
+
|
|
3
25
|
## 5.19.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/runtime.umd.js
CHANGED
|
@@ -53239,7 +53239,7 @@ function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, F
|
|
|
53239
53239
|
* zod schema definition for the entity MJ: AI Prompt Types
|
|
53240
53240
|
*/var MJAIPromptTypeSchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()"),Name:z.string().describe("\n * * Field Name: Name\n * * Display Name: Name\n * * SQL Data Type: nvarchar(255)"),Description:z.string().nullable().describe("\n * * Field Name: Description\n * * Display Name: Description\n * * SQL Data Type: nvarchar(MAX)"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()")});/**
|
|
53241
53241
|
* zod schema definition for the entity MJ: AI Prompts
|
|
53242
|
-
*/var MJAIPromptSchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()"),Name:z.string().describe("\n * * Field Name: Name\n * * Display Name: Name\n * * SQL Data Type: nvarchar(255)"),Description:z.string().nullable().describe("\n * * Field Name: Description\n * * Display Name: Description\n * * SQL Data Type: nvarchar(MAX)"),TemplateID:z.string().describe("\n * * Field Name: TemplateID\n * * Display Name: Template\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)\n * * Description: Reference to the template used for the prompt."),CategoryID:z.string().nullable().describe("\n * * Field Name: CategoryID\n * * Display Name: Category\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompt Categories (vwAIPromptCategories.ID)\n * * Description: Reference to the category the prompt belongs to."),TypeID:z.string().describe("\n * * Field Name: TypeID\n * * Display Name: Type\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompt Types (vwAIPromptTypes.ID)\n * * Description: Reference to the type of the prompt."),Status:z.union([z.literal('Active'),z.literal('Disabled'),z.literal('Pending')]).describe("\n * * Field Name: Status\n * * Display Name: Status\n * * SQL Data Type: nvarchar(50)\n * * Value List Type: List\n * * Possible Values \n * * Active\n * * Disabled\n * * Pending"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),ResponseFormat:z.union([z.literal('Any'),z.literal('JSON'),z.literal('Markdown'),z.literal('ModelSpecific'),z.literal('Text')]).describe("\n * * Field Name: ResponseFormat\n * * Display Name: Response Format\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Any\n * * Value List Type: List\n * * Possible Values \n * * Any\n * * JSON\n * * Markdown\n * * ModelSpecific\n * * Text\n * * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified."),ModelSpecificResponseFormat:z.string().nullable().describe("\n * * Field Name: ModelSpecificResponseFormat\n * * Display Name: Model Specific Response Format\n * * SQL Data Type: nvarchar(MAX)\n * * Description: A JSON-formatted string containing model-specific response format instructions. This will be parsed and provided as a JSON object to the model."),AIModelTypeID:z.string().nullable().describe("\n * * Field Name: AIModelTypeID\n * * Display Name: AI Model Type\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Model Types (vwAIModelTypes.ID)\n * * Description: References the type of AI model this prompt is designed for (LLM, Image, Audio, etc.)."),MinPowerRank:z.number().nullable().describe("\n * * Field Name: MinPowerRank\n * * Display Name: Minimum Power Rank\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: The minimum power rank required for models to be considered for this prompt."),SelectionStrategy:z.union([z.literal('ByPower'),z.literal('Default'),z.literal('Specific')]).describe("\n * * Field Name: SelectionStrategy\n * * Display Name: Selection Strategy\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Default\n * * Value List Type: List\n * * Possible Values \n * * ByPower\n * * Default\n * * Specific\n * * Description: Determines how models are selected for this prompt (Default, Specific, ByPower)."),PowerPreference:z.union([z.literal('Balanced'),z.literal('Highest'),z.literal('Lowest')]).describe("\n * * Field Name: PowerPreference\n * * Display Name: Power Preference\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Highest\n * * Value List Type: List\n * * Possible Values \n * * Balanced\n * * Highest\n * * Lowest\n * * Description: When using ByPower selection strategy, determines whether to prefer highest, lowest, or balanced power models."),ParallelizationMode:z.union([z.literal('ConfigParam'),z.literal('ModelSpecific'),z.literal('None'),z.literal('StaticCount')]).describe("\n * * Field Name: ParallelizationMode\n * * Display Name: Parallelization Mode\n * * SQL Data Type: nvarchar(20)\n * * Default Value: None\n * * Value List Type: List\n * * Possible Values \n * * ConfigParam\n * * ModelSpecific\n * * None\n * * StaticCount\n * * Description: Controls parallelization: None (no parallelization), StaticCount (use AIPrompt.ParallelCount for total runs), ConfigParam (use config param specified in ParallelConfigParam for total runs), or ModelSpecific (check each AIPromptModel's individual settings)."),ParallelCount:z.number().nullable().describe("\n * * Field Name: ParallelCount\n * * Display Name: Parallel Count\n * * SQL Data Type: int\n * * Description: When ParallelizationMode is StaticCount, specifies the number of parallel executions."),ParallelConfigParam:z.string().nullable().describe("\n * * Field Name: ParallelConfigParam\n * * Display Name: Parallel Config Parameter\n * * SQL Data Type: nvarchar(100)\n * * Description: When ParallelizationMode is ConfigParam, specifies the name of the configuration parameter that contains the parallel count."),OutputType:z.union([z.literal('boolean'),z.literal('date'),z.literal('number'),z.literal('object'),z.literal('string')]).describe("\n * * Field Name: OutputType\n * * Display Name: Output Type\n * * SQL Data Type: nvarchar(50)\n * * Default Value: string\n * * Value List Type: List\n * * Possible Values \n * * boolean\n * * date\n * * number\n * * object\n * * string\n * * Description: The expected data type of the prompt output: string, number, boolean, date, or object."),OutputExample:z.string().nullable().describe("\n * * Field Name: OutputExample\n * * Display Name: Output Example\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON example output when OutputType is \"object\", used for validating structured outputs."),ValidationBehavior:z.union([z.literal('None'),z.literal('Strict'),z.literal('Warn')]).describe("\n * * Field Name: ValidationBehavior\n * * Display Name: Validation Behavior\n * * SQL Data Type: nvarchar(50)\n * * Default Value: Warn\n * * Value List Type: List\n * * Possible Values \n * * None\n * * Strict\n * * Warn\n * * Description: Determines how validation failures are handled: Strict (fail), Warn (log warning), or None (ignore)."),MaxRetries:z.number().describe("\n * * Field Name: MaxRetries\n * * Display Name: Max Retries\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: Maximum number of retry attempts for API failures."),RetryDelayMS:z.number().describe("\n * * Field Name: RetryDelayMS\n * * Display Name: Retry Delay (ms)\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: Delay between retry attempts in milliseconds."),RetryStrategy:z.union([z.literal('Exponential'),z.literal('Fixed'),z.literal('Linear')]).describe("\n * * Field Name: RetryStrategy\n * * Display Name: Retry Strategy\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Fixed\n * * Value List Type: List\n * * Possible Values \n * * Exponential\n * * Fixed\n * * Linear\n * * Description: Strategy for calculating retry delays: Fixed (same delay each time), Exponential (doubling delay), or Linear (linearly increasing delay)."),ResultSelectorPromptID:z.string().nullable().describe("\n * * Field Name: ResultSelectorPromptID\n * * Display Name: Result Selector Prompt\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)\n * * Description: References another prompt that selects the best result from multiple parallel executions."),EnableCaching:z.boolean().describe("\n * * Field Name: EnableCaching\n * * Display Name: Enable Caching\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, results from this prompt will be cached for potential reuse."),CacheTTLSeconds:z.number().nullable().describe("\n * * Field Name: CacheTTLSeconds\n * * Display Name: Cache TTL (Seconds)\n * * SQL Data Type: int\n * * Description: Time-to-live in seconds for cached results. NULL means results never expire."),CacheMatchType:z.union([z.literal('Exact'),z.literal('Vector')]).describe("\n * * Field Name: CacheMatchType\n * * Display Name: Cache Match Type\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Exact\n * * Value List Type: List\n * * Possible Values \n * * Exact\n * * Vector\n * * Description: Method for matching cached results: Exact (string matching) or Vector (embedding similarity)."),CacheSimilarityThreshold:z.number().nullable().describe("\n * * Field Name: CacheSimilarityThreshold\n * * Display Name: Cache Similarity Threshold\n * * SQL Data Type: float(53)\n * * Description: Threshold (0-1) for vector similarity matching. Higher values require closer matches."),CacheMustMatchModel:z.boolean().describe("\n * * Field Name: CacheMustMatchModel\n * * Display Name: Cache Must Match Model\n * * SQL Data Type: bit\n * * Default Value: 1\n * * Description: When true, the AI model must match for a cache hit. When false, results from any model can be used."),CacheMustMatchVendor:z.boolean().describe("\n * * Field Name: CacheMustMatchVendor\n * * Display Name: Cache Must Match Vendor\n * * SQL Data Type: bit\n * * Default Value: 1\n * * Description: When true, the vendor must match for a cache hit. When false, results from any vendor can be used."),CacheMustMatchAgent:z.boolean().describe("\n * * Field Name: CacheMustMatchAgent\n * * Display Name: Cache Must Match Agent\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, the agent context must match for a cache hit. When false, agent-specific and non-agent results can be used interchangeably."),CacheMustMatchConfig:z.boolean().describe("\n * * Field Name: CacheMustMatchConfig\n * * Display Name: Cache Must Match Configuration\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used."),PromptRole:z.union([z.literal('Assistant'),z.literal('System'),z.literal('SystemOrUser'),z.literal('User')]).describe("\n * * Field Name: PromptRole\n * * Display Name: Prompt Role\n * * SQL Data Type: nvarchar(20)\n * * Default Value: System\n * * Value List Type: List\n * * Possible Values \n * * Assistant\n * * System\n * * SystemOrUser\n * * User\n * * Description: Determines how the prompt is used in conversation: System (always first message), User (positioned by PromptPosition), Assistant (positioned by PromptPosition), or SystemOrUser (try system first, fallback to user last if system slot taken)"),PromptPosition:z.union([z.literal('First'),z.literal('Last')]).describe("\n * * Field Name: PromptPosition\n * * Display Name: Prompt Position\n * * SQL Data Type: nvarchar(20)\n * * Default Value: First\n * * Value List Type: List\n * * Possible Values \n * * First\n * * Last\n * * Description: Controls message placement for User and Assistant role prompts: First (beginning of conversation) or Last (end of conversation). Not used for System role prompts which are always first"),Temperature:z.number().nullable().describe("\n * * Field Name: Temperature\n * * Display Name: Temperature\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default temperature setting for this prompt. Controls randomness in the output. 0 = more focused and deterministic, 2 = more random and creative. Can be overridden at runtime."),TopP:z.number().nullable().describe("\n * * Field Name: TopP\n * * Display Name: Top P\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default TopP (nucleus sampling) for this prompt. Only consider tokens with cumulative probability up to this value. 1 = consider all tokens. Can be overridden at runtime."),TopK:z.number().nullable().describe("\n * * Field Name: TopK\n * * Display Name: Top K\n * * SQL Data Type: int\n * * Description: Default TopK sampling for this prompt. Only sample from the top K tokens. Lower values reduce randomness. Can be overridden at runtime."),MinP:z.number().nullable().describe("\n * * Field Name: MinP\n * * Display Name: Min P\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default MinP (minimum probability) for this prompt. Tokens with probability below this threshold are filtered out. Can be overridden at runtime."),FrequencyPenalty:z.number().nullable().describe("\n * * Field Name: FrequencyPenalty\n * * Display Name: Frequency Penalty\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default frequency penalty for this prompt. Penalizes tokens based on their frequency in the text. Positive values decrease likelihood of repetition. Can be overridden at runtime."),PresencePenalty:z.number().nullable().describe("\n * * Field Name: PresencePenalty\n * * Display Name: Presence Penalty\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default presence penalty for this prompt. Penalizes tokens that have appeared in the text. Positive values increase topic diversity. Can be overridden at runtime."),Seed:z.number().nullable().describe("\n * * Field Name: Seed\n * * Display Name: Seed\n * * SQL Data Type: int\n * * Description: Default random seed for this prompt. Used for deterministic generation. Same seed produces same output. Can be overridden at runtime."),StopSequences:z.string().nullable().describe("\n * * Field Name: StopSequences\n * * Display Name: Stop Sequences\n * * SQL Data Type: nvarchar(1000)\n * * Description: Default stop sequences for this prompt. Comma-delimited list of sequences that will stop generation when encountered. Can be overridden at runtime."),IncludeLogProbs:z.boolean().nullable().describe("\n * * Field Name: IncludeLogProbs\n * * Display Name: Include Log Probabilities\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: Default setting for including log probabilities in the response. Can be overridden at runtime."),TopLogProbs:z.number().nullable().describe("\n * * Field Name: TopLogProbs\n * * Display Name: Top Log Probabilities\n * * SQL Data Type: int\n * * Description: Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime."),FailoverStrategy:z.union([z.literal('NextBestModel'),z.literal('NextBestModel'),z.literal('None'),z.literal('None'),z.literal('PowerRank'),z.literal('PowerRank'),z.literal('SameModelDifferentVendor'),z.literal('SameModelDifferentVendor')]).describe("\n * * Field Name: FailoverStrategy\n * * Display Name: Failover Strategy\n * * SQL Data Type: nvarchar(50)\n * * Default Value: SameModelDifferentVendor\n * * Value List Type: List\n * * Possible Values \n * * NextBestModel\n * * NextBestModel\n * * None\n * * None\n * * PowerRank\n * * PowerRank\n * * SameModelDifferentVendor\n * * SameModelDifferentVendor\n * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None"),FailoverMaxAttempts:z.number().nullable().describe("\n * * Field Name: FailoverMaxAttempts\n * * Display Name: Failover Max Attempts\n * * SQL Data Type: int\n * * Default Value: 3\n * * Description: Maximum number of failover attempts before giving up"),FailoverDelaySeconds:z.number().nullable().describe("\n * * Field Name: FailoverDelaySeconds\n * * Display Name: Failover Delay (seconds)\n * * SQL Data Type: int\n * * Default Value: 5\n * * Description: Initial delay in seconds between failover attempts"),FailoverModelStrategy:z.union([z.literal('PreferDifferentModel'),z.literal('PreferDifferentModel'),z.literal('PreferSameModel'),z.literal('PreferSameModel'),z.literal('RequireSameModel'),z.literal('RequireSameModel')]).describe("\n * * Field Name: FailoverModelStrategy\n * * Display Name: Failover Model Strategy\n * * SQL Data Type: nvarchar(50)\n * * Default Value: PreferSameModel\n * * Value List Type: List\n * * Possible Values \n * * PreferDifferentModel\n * * PreferDifferentModel\n * * PreferSameModel\n * * PreferSameModel\n * * RequireSameModel\n * * RequireSameModel\n * * Description: Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel"),FailoverErrorScope:z.union([z.literal('All'),z.literal('All'),z.literal('NetworkOnly'),z.literal('NetworkOnly'),z.literal('RateLimitOnly'),z.literal('RateLimitOnly'),z.literal('ServiceErrorOnly'),z.literal('ServiceErrorOnly')]).describe("\n * * Field Name: FailoverErrorScope\n * * Display Name: Failover Error Scope\n * * SQL Data Type: nvarchar(50)\n * * Default Value: All\n * * Value List Type: List\n * * Possible Values \n * * All\n * * All\n * * NetworkOnly\n * * NetworkOnly\n * * RateLimitOnly\n * * RateLimitOnly\n * * ServiceErrorOnly\n * * ServiceErrorOnly\n * * Description: Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly"),EffortLevel:z.number().nullable().describe("\n * * Field Name: EffortLevel\n * * Display Name: Effort Level\n * * SQL Data Type: int\n * * Description: Effort level for this specific prompt (1-100, where 1=minimal effort, 100=maximum effort). Higher values request more thorough reasoning and analysis. Can be overridden by agent DefaultPromptEffortLevel or runtime parameters."),AssistantPrefill:z.string().nullable().describe("\n * * Field Name: AssistantPrefill\n * * Display Name: Assistant Prefill\n * * SQL Data Type: nvarchar(MAX)\n * * Description: Optional text to prefill the assistant response. The model will continue generating from where this text ends. Used with StopSequences for structured output extraction (e.g., prefill with ```json to get raw JSON). Only effective with providers that support prefill natively; see PrefillFallbackMode for non-supporting providers."),PrefillFallbackMode:z.union([z.literal('Ignore'),z.literal('None'),z.literal('SystemInstruction')]).describe("\n * * Field Name: PrefillFallbackMode\n * * Display Name: Prefill Fallback Mode\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Ignore\n * * Value List Type: List\n * * Possible Values \n * * Ignore\n * * None\n * * SystemInstruction\n * * Description: Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers)."),Template:z.string().describe("\n * * Field Name: Template\n * * Display Name: Template Text\n * * SQL Data Type: nvarchar(255)"),Category:z.string().nullable().describe("\n * * Field Name: Category\n * * Display Name: Category Name\n * * SQL Data Type: nvarchar(255)"),Type:z.string().describe("\n * * Field Name: Type\n * * Display Name: Type Name\n * * SQL Data Type: nvarchar(255)"),AIModelType:z.string().nullable().describe("\n * * Field Name: AIModelType\n * * Display Name: AI Model Type Name\n * * SQL Data Type: nvarchar(50)"),ResultSelectorPrompt:z.string().nullable().describe("\n * * Field Name: ResultSelectorPrompt\n * * Display Name: Result Selector Prompt Name\n * * SQL Data Type: nvarchar(255)"),RootResultSelectorPromptID:z.string().nullable().describe("\n * * Field Name: RootResultSelectorPromptID\n * * Display Name: Root Result Selector Prompt\n * * SQL Data Type: uniqueidentifier")});/**
|
|
53242
|
+
*/var MJAIPromptSchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()"),Name:z.string().describe("\n * * Field Name: Name\n * * Display Name: Name\n * * SQL Data Type: nvarchar(255)"),Description:z.string().nullable().describe("\n * * Field Name: Description\n * * Display Name: Description\n * * SQL Data Type: nvarchar(MAX)"),TemplateID:z.string().describe("\n * * Field Name: TemplateID\n * * Display Name: Template\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)\n * * Description: Reference to the template used for the prompt."),CategoryID:z.string().nullable().describe("\n * * Field Name: CategoryID\n * * Display Name: Category\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompt Categories (vwAIPromptCategories.ID)\n * * Description: Reference to the category the prompt belongs to."),TypeID:z.string().describe("\n * * Field Name: TypeID\n * * Display Name: Type\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompt Types (vwAIPromptTypes.ID)\n * * Description: Reference to the type of the prompt."),Status:z.union([z.literal('Active'),z.literal('Disabled'),z.literal('Pending')]).describe("\n * * Field Name: Status\n * * Display Name: Status\n * * SQL Data Type: nvarchar(50)\n * * Value List Type: List\n * * Possible Values \n * * Active\n * * Disabled\n * * Pending"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),ResponseFormat:z.union([z.literal('Any'),z.literal('JSON'),z.literal('Markdown'),z.literal('ModelSpecific'),z.literal('Text')]).describe("\n * * Field Name: ResponseFormat\n * * Display Name: Response Format\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Any\n * * Value List Type: List\n * * Possible Values \n * * Any\n * * JSON\n * * Markdown\n * * ModelSpecific\n * * Text\n * * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified."),ModelSpecificResponseFormat:z.string().nullable().describe("\n * * Field Name: ModelSpecificResponseFormat\n * * Display Name: Model Specific Response Format\n * * SQL Data Type: nvarchar(MAX)\n * * Description: A JSON-formatted string containing model-specific response format instructions. This will be parsed and provided as a JSON object to the model."),AIModelTypeID:z.string().nullable().describe("\n * * Field Name: AIModelTypeID\n * * Display Name: AI Model Type\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Model Types (vwAIModelTypes.ID)\n * * Description: References the type of AI model this prompt is designed for (LLM, Image, Audio, etc.)."),MinPowerRank:z.number().nullable().describe("\n * * Field Name: MinPowerRank\n * * Display Name: Minimum Power Rank\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: The minimum power rank required for models to be considered for this prompt."),SelectionStrategy:z.union([z.literal('ByPower'),z.literal('Default'),z.literal('Specific')]).describe("\n * * Field Name: SelectionStrategy\n * * Display Name: Selection Strategy\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Default\n * * Value List Type: List\n * * Possible Values \n * * ByPower\n * * Default\n * * Specific\n * * Description: Determines how models are selected for this prompt (Default, Specific, ByPower)."),PowerPreference:z.union([z.literal('Balanced'),z.literal('Highest'),z.literal('Lowest')]).describe("\n * * Field Name: PowerPreference\n * * Display Name: Power Preference\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Highest\n * * Value List Type: List\n * * Possible Values \n * * Balanced\n * * Highest\n * * Lowest\n * * Description: When using ByPower selection strategy, determines whether to prefer highest, lowest, or balanced power models."),ParallelizationMode:z.union([z.literal('ConfigParam'),z.literal('ModelSpecific'),z.literal('None'),z.literal('StaticCount')]).describe("\n * * Field Name: ParallelizationMode\n * * Display Name: Parallelization Mode\n * * SQL Data Type: nvarchar(20)\n * * Default Value: None\n * * Value List Type: List\n * * Possible Values \n * * ConfigParam\n * * ModelSpecific\n * * None\n * * StaticCount\n * * Description: Controls parallelization: None (no parallelization), StaticCount (use AIPrompt.ParallelCount for total runs), ConfigParam (use config param specified in ParallelConfigParam for total runs), or ModelSpecific (check each AIPromptModel's individual settings)."),ParallelCount:z.number().nullable().describe("\n * * Field Name: ParallelCount\n * * Display Name: Parallel Count\n * * SQL Data Type: int\n * * Description: When ParallelizationMode is StaticCount, specifies the number of parallel executions."),ParallelConfigParam:z.string().nullable().describe("\n * * Field Name: ParallelConfigParam\n * * Display Name: Parallel Config Parameter\n * * SQL Data Type: nvarchar(100)\n * * Description: When ParallelizationMode is ConfigParam, specifies the name of the configuration parameter that contains the parallel count."),OutputType:z.union([z.literal('boolean'),z.literal('date'),z.literal('number'),z.literal('object'),z.literal('string')]).describe("\n * * Field Name: OutputType\n * * Display Name: Output Type\n * * SQL Data Type: nvarchar(50)\n * * Default Value: string\n * * Value List Type: List\n * * Possible Values \n * * boolean\n * * date\n * * number\n * * object\n * * string\n * * Description: The expected data type of the prompt output: string, number, boolean, date, or object."),OutputExample:z.string().nullable().describe("\n * * Field Name: OutputExample\n * * Display Name: Output Example\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON example output when OutputType is \"object\", used for validating structured outputs."),ValidationBehavior:z.union([z.literal('None'),z.literal('Strict'),z.literal('Warn')]).describe("\n * * Field Name: ValidationBehavior\n * * Display Name: Validation Behavior\n * * SQL Data Type: nvarchar(50)\n * * Default Value: Warn\n * * Value List Type: List\n * * Possible Values \n * * None\n * * Strict\n * * Warn\n * * Description: Determines how validation failures are handled: Strict (fail), Warn (log warning), or None (ignore)."),MaxRetries:z.number().describe("\n * * Field Name: MaxRetries\n * * Display Name: Max Retries\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: Maximum number of retry attempts for API failures."),RetryDelayMS:z.number().describe("\n * * Field Name: RetryDelayMS\n * * Display Name: Retry Delay (ms)\n * * SQL Data Type: int\n * * Default Value: 0\n * * Description: Delay between retry attempts in milliseconds."),RetryStrategy:z.union([z.literal('Exponential'),z.literal('Fixed'),z.literal('Linear')]).describe("\n * * Field Name: RetryStrategy\n * * Display Name: Retry Strategy\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Fixed\n * * Value List Type: List\n * * Possible Values \n * * Exponential\n * * Fixed\n * * Linear\n * * Description: Strategy for calculating retry delays: Fixed (same delay each time), Exponential (doubling delay), or Linear (linearly increasing delay)."),ResultSelectorPromptID:z.string().nullable().describe("\n * * Field Name: ResultSelectorPromptID\n * * Display Name: Result Selector Prompt\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)\n * * Description: References another prompt that selects the best result from multiple parallel executions."),EnableCaching:z.boolean().describe("\n * * Field Name: EnableCaching\n * * Display Name: Enable Caching\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, results from this prompt will be cached for potential reuse."),CacheTTLSeconds:z.number().nullable().describe("\n * * Field Name: CacheTTLSeconds\n * * Display Name: Cache TTL (Seconds)\n * * SQL Data Type: int\n * * Description: Time-to-live in seconds for cached results. NULL means results never expire."),CacheMatchType:z.union([z.literal('Exact'),z.literal('Vector')]).describe("\n * * Field Name: CacheMatchType\n * * Display Name: Cache Match Type\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Exact\n * * Value List Type: List\n * * Possible Values \n * * Exact\n * * Vector\n * * Description: Method for matching cached results: Exact (string matching) or Vector (embedding similarity)."),CacheSimilarityThreshold:z.number().nullable().describe("\n * * Field Name: CacheSimilarityThreshold\n * * Display Name: Cache Similarity Threshold\n * * SQL Data Type: float(53)\n * * Description: Threshold (0-1) for vector similarity matching. Higher values require closer matches."),CacheMustMatchModel:z.boolean().describe("\n * * Field Name: CacheMustMatchModel\n * * Display Name: Cache Must Match Model\n * * SQL Data Type: bit\n * * Default Value: 1\n * * Description: When true, the AI model must match for a cache hit. When false, results from any model can be used."),CacheMustMatchVendor:z.boolean().describe("\n * * Field Name: CacheMustMatchVendor\n * * Display Name: Cache Must Match Vendor\n * * SQL Data Type: bit\n * * Default Value: 1\n * * Description: When true, the vendor must match for a cache hit. When false, results from any vendor can be used."),CacheMustMatchAgent:z.boolean().describe("\n * * Field Name: CacheMustMatchAgent\n * * Display Name: Cache Must Match Agent\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, the agent context must match for a cache hit. When false, agent-specific and non-agent results can be used interchangeably."),CacheMustMatchConfig:z.boolean().describe("\n * * Field Name: CacheMustMatchConfig\n * * Display Name: Cache Must Match Config\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used."),PromptRole:z.union([z.literal('Assistant'),z.literal('System'),z.literal('SystemOrUser'),z.literal('User')]).describe("\n * * Field Name: PromptRole\n * * Display Name: Prompt Role\n * * SQL Data Type: nvarchar(20)\n * * Default Value: System\n * * Value List Type: List\n * * Possible Values \n * * Assistant\n * * System\n * * SystemOrUser\n * * User\n * * Description: Determines how the prompt is used in conversation: System (always first message), User (positioned by PromptPosition), Assistant (positioned by PromptPosition), or SystemOrUser (try system first, fallback to user last if system slot taken)"),PromptPosition:z.union([z.literal('First'),z.literal('Last')]).describe("\n * * Field Name: PromptPosition\n * * Display Name: Prompt Position\n * * SQL Data Type: nvarchar(20)\n * * Default Value: First\n * * Value List Type: List\n * * Possible Values \n * * First\n * * Last\n * * Description: Controls message placement for User and Assistant role prompts: First (beginning of conversation) or Last (end of conversation). Not used for System role prompts which are always first"),Temperature:z.number().nullable().describe("\n * * Field Name: Temperature\n * * Display Name: Temperature\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default temperature setting for this prompt. Controls randomness in the output. 0 = more focused and deterministic, 2 = more random and creative. Can be overridden at runtime."),TopP:z.number().nullable().describe("\n * * Field Name: TopP\n * * Display Name: Top P\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default TopP (nucleus sampling) for this prompt. Only consider tokens with cumulative probability up to this value. 1 = consider all tokens. Can be overridden at runtime."),TopK:z.number().nullable().describe("\n * * Field Name: TopK\n * * Display Name: Top K\n * * SQL Data Type: int\n * * Description: Default TopK sampling for this prompt. Only sample from the top K tokens. Lower values reduce randomness. Can be overridden at runtime."),MinP:z.number().nullable().describe("\n * * Field Name: MinP\n * * Display Name: Min P\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default MinP (minimum probability) for this prompt. Tokens with probability below this threshold are filtered out. Can be overridden at runtime."),FrequencyPenalty:z.number().nullable().describe("\n * * Field Name: FrequencyPenalty\n * * Display Name: Frequency Penalty\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default frequency penalty for this prompt. Penalizes tokens based on their frequency in the text. Positive values decrease likelihood of repetition. Can be overridden at runtime."),PresencePenalty:z.number().nullable().describe("\n * * Field Name: PresencePenalty\n * * Display Name: Presence Penalty\n * * SQL Data Type: decimal(3, 2)\n * * Description: Default presence penalty for this prompt. Penalizes tokens that have appeared in the text. Positive values increase topic diversity. Can be overridden at runtime."),Seed:z.number().nullable().describe("\n * * Field Name: Seed\n * * Display Name: Seed\n * * SQL Data Type: int\n * * Description: Default random seed for this prompt. Used for deterministic generation. Same seed produces same output. Can be overridden at runtime."),StopSequences:z.string().nullable().describe("\n * * Field Name: StopSequences\n * * Display Name: Stop Sequences\n * * SQL Data Type: nvarchar(1000)\n * * Description: Default stop sequences for this prompt. Comma-delimited list of sequences that will stop generation when encountered. Can be overridden at runtime."),IncludeLogProbs:z.boolean().nullable().describe("\n * * Field Name: IncludeLogProbs\n * * Display Name: Include Log Probabilities\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: Default setting for including log probabilities in the response. Can be overridden at runtime."),TopLogProbs:z.number().nullable().describe("\n * * Field Name: TopLogProbs\n * * Display Name: Top Log Probabilities\n * * SQL Data Type: int\n * * Description: Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime."),FailoverStrategy:z.union([z.literal('NextBestModel'),z.literal('NextBestModel'),z.literal('None'),z.literal('None'),z.literal('PowerRank'),z.literal('PowerRank'),z.literal('SameModelDifferentVendor'),z.literal('SameModelDifferentVendor')]).describe("\n * * Field Name: FailoverStrategy\n * * Display Name: Failover Strategy\n * * SQL Data Type: nvarchar(50)\n * * Default Value: SameModelDifferentVendor\n * * Value List Type: List\n * * Possible Values \n * * NextBestModel\n * * NextBestModel\n * * None\n * * None\n * * PowerRank\n * * PowerRank\n * * SameModelDifferentVendor\n * * SameModelDifferentVendor\n * * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None"),FailoverMaxAttempts:z.number().nullable().describe("\n * * Field Name: FailoverMaxAttempts\n * * Display Name: Failover Max Attempts\n * * SQL Data Type: int\n * * Default Value: 3\n * * Description: Maximum number of failover attempts before giving up"),FailoverDelaySeconds:z.number().nullable().describe("\n * * Field Name: FailoverDelaySeconds\n * * Display Name: Failover Delay (Seconds)\n * * SQL Data Type: int\n * * Default Value: 5\n * * Description: Initial delay in seconds between failover attempts"),FailoverModelStrategy:z.union([z.literal('PreferDifferentModel'),z.literal('PreferDifferentModel'),z.literal('PreferSameModel'),z.literal('PreferSameModel'),z.literal('RequireSameModel'),z.literal('RequireSameModel')]).describe("\n * * Field Name: FailoverModelStrategy\n * * Display Name: Failover Model Strategy\n * * SQL Data Type: nvarchar(50)\n * * Default Value: PreferSameModel\n * * Value List Type: List\n * * Possible Values \n * * PreferDifferentModel\n * * PreferDifferentModel\n * * PreferSameModel\n * * PreferSameModel\n * * RequireSameModel\n * * RequireSameModel\n * * Description: Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel"),FailoverErrorScope:z.union([z.literal('All'),z.literal('All'),z.literal('NetworkOnly'),z.literal('NetworkOnly'),z.literal('RateLimitOnly'),z.literal('RateLimitOnly'),z.literal('ServiceErrorOnly'),z.literal('ServiceErrorOnly')]).describe("\n * * Field Name: FailoverErrorScope\n * * Display Name: Failover Error Scope\n * * SQL Data Type: nvarchar(50)\n * * Default Value: All\n * * Value List Type: List\n * * Possible Values \n * * All\n * * All\n * * NetworkOnly\n * * NetworkOnly\n * * RateLimitOnly\n * * RateLimitOnly\n * * ServiceErrorOnly\n * * ServiceErrorOnly\n * * Description: Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly"),EffortLevel:z.number().nullable().describe("\n * * Field Name: EffortLevel\n * * Display Name: Effort Level\n * * SQL Data Type: int\n * * Description: Effort level for this specific prompt (1-100, where 1=minimal effort, 100=maximum effort). Higher values request more thorough reasoning and analysis. Can be overridden by agent DefaultPromptEffortLevel or runtime parameters."),AssistantPrefill:z.string().nullable().describe("\n * * Field Name: AssistantPrefill\n * * Display Name: Assistant Prefill\n * * SQL Data Type: nvarchar(MAX)\n * * Description: Optional text to prefill the assistant response. The model will continue generating from where this text ends. Used with StopSequences for structured output extraction (e.g., prefill with ```json to get raw JSON). Only effective with providers that support prefill natively; see PrefillFallbackMode for non-supporting providers."),PrefillFallbackMode:z.union([z.literal('Ignore'),z.literal('None'),z.literal('SystemInstruction')]).describe("\n * * Field Name: PrefillFallbackMode\n * * Display Name: Prefill Fallback Mode\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Ignore\n * * Value List Type: List\n * * Possible Values \n * * Ignore\n * * None\n * * SystemInstruction\n * * Description: Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers)."),RequireSpecificModels:z.boolean().describe("\n * * Field Name: RequireSpecificModels\n * * Display Name: Require Specific Models\n * * SQL Data Type: bit\n * * Default Value: 0\n * * Description: Only applies when SelectionStrategy is Specific. When 0 (default), if none of the explicitly configured AIPromptModel entries have valid API credentials the system automatically falls back to Default/ByPower model selection across all active models matching the prompt AIModelTypeID. When 1, the system will hard-fail with an error instead of falling back, ensuring only the explicitly configured models are ever used."),Template:z.string().describe("\n * * Field Name: Template\n * * Display Name: Template Text\n * * SQL Data Type: nvarchar(255)"),Category:z.string().nullable().describe("\n * * Field Name: Category\n * * Display Name: Category Name\n * * SQL Data Type: nvarchar(255)"),Type:z.string().describe("\n * * Field Name: Type\n * * Display Name: Type Name\n * * SQL Data Type: nvarchar(255)"),AIModelType:z.string().nullable().describe("\n * * Field Name: AIModelType\n * * Display Name: AI Model Type Name\n * * SQL Data Type: nvarchar(50)"),ResultSelectorPrompt:z.string().nullable().describe("\n * * Field Name: ResultSelectorPrompt\n * * Display Name: Result Selector Prompt Name\n * * SQL Data Type: nvarchar(255)"),RootResultSelectorPromptID:z.string().nullable().describe("\n * * Field Name: RootResultSelectorPromptID\n * * Display Name: Root Result Selector Prompt\n * * SQL Data Type: uniqueidentifier")});/**
|
|
53243
53243
|
* zod schema definition for the entity MJ: AI Result Cache
|
|
53244
53244
|
*/var MJAIResultCacheSchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()"),AIPromptID:z.string().describe("\n * * Field Name: AIPromptID\n * * Display Name: AI Prompt\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)\n * * Description: Reference to the AI prompt this result corresponds to."),AIModelID:z.string().describe("\n * * Field Name: AIModelID\n * * Display Name: AI Model\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)\n * * Description: Reference to the AI model that generated this result."),RunAt:z.date().describe("\n * * Field Name: RunAt\n * * Display Name: Run At\n * * SQL Data Type: datetimeoffset\n * * Description: Timestamp of when this result was generated."),PromptText:z.string().describe("\n * * Field Name: PromptText\n * * Display Name: Prompt Text\n * * SQL Data Type: nvarchar(MAX)\n * * Description: The prompt text used to generate this result."),ResultText:z.string().nullable().describe("\n * * Field Name: ResultText\n * * Display Name: Result Text\n * * SQL Data Type: nvarchar(MAX)\n * * Description: The text of the result generated by the AI model."),Status:z.union([z.literal('Active'),z.literal('Expired')]).describe("\n * * Field Name: Status\n * * Display Name: Status\n * * SQL Data Type: nvarchar(50)\n * * Value List Type: List\n * * Possible Values \n * * Active\n * * Expired\n * * Description: The status of this result, indicating whether it is currently active or expired."),ExpiredOn:z.date().nullable().describe("\n * * Field Name: ExpiredOn\n * * Display Name: Expired On\n * * SQL Data Type: datetimeoffset\n * * Description: Timestamp of when this result was marked as expired."),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),VendorID:z.string().nullable().describe("\n * * Field Name: VendorID\n * * Display Name: Vendor\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)\n * * Description: The vendor that provided this result."),AgentID:z.string().nullable().describe("\n * * Field Name: AgentID\n * * Display Name: Agent\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)\n * * Description: The agent that initiated the request, if any."),ConfigurationID:z.string().nullable().describe("\n * * Field Name: ConfigurationID\n * * Display Name: Configuration\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)\n * * Description: The configuration used for this execution."),PromptEmbedding:z.number().nullable().describe("\n * * Field Name: PromptEmbedding\n * * Display Name: Prompt Embedding\n * * SQL Data Type: varbinary\n * * Description: Vector representation of the prompt for similarity matching."),PromptRunID:z.string().nullable().describe("\n * * Field Name: PromptRunID\n * * Display Name: Prompt Run\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)\n * * Description: Reference to the AIPromptRun that created this cache entry."),AIPrompt:z.string().describe("\n * * Field Name: AIPrompt\n * * Display Name: AI Prompt\n * * SQL Data Type: nvarchar(255)"),AIModel:z.string().describe("\n * * Field Name: AIModel\n * * Display Name: AI Model\n * * SQL Data Type: nvarchar(50)"),Vendor:z.string().nullable().describe("\n * * Field Name: Vendor\n * * Display Name: Vendor\n * * SQL Data Type: nvarchar(50)"),Agent:z.string().nullable().describe("\n * * Field Name: Agent\n * * Display Name: Agent\n * * SQL Data Type: nvarchar(255)"),Configuration:z.string().nullable().describe("\n * * Field Name: Configuration\n * * Display Name: Configuration\n * * SQL Data Type: nvarchar(100)"),PromptRun:z.string().nullable().describe("\n * * Field Name: PromptRun\n * * Display Name: Prompt Run\n * * SQL Data Type: nvarchar(255)")});/**
|
|
53245
53245
|
* zod schema definition for the entity MJ: AI Vendor Type Definitions
|
|
@@ -60748,7 +60748,7 @@ provider=dist/* Metadata */.OS.Provider;_context61.p=1;_context61.n=2;return pro
|
|
|
60748
60748
|
* * Description: When true, the agent context must match for a cache hit. When false, agent-specific and non-agent results can be used interchangeably.
|
|
60749
60749
|
*/},{key:"CacheMustMatchAgent",get:function get(){return this.Get('CacheMustMatchAgent');},set:function set(value){this.Set('CacheMustMatchAgent',value);}/**
|
|
60750
60750
|
* * Field Name: CacheMustMatchConfig
|
|
60751
|
-
* * Display Name: Cache Must Match
|
|
60751
|
+
* * Display Name: Cache Must Match Config
|
|
60752
60752
|
* * SQL Data Type: bit
|
|
60753
60753
|
* * Default Value: 0
|
|
60754
60754
|
* * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used.
|
|
@@ -60849,7 +60849,7 @@ provider=dist/* Metadata */.OS.Provider;_context61.p=1;_context61.n=2;return pro
|
|
|
60849
60849
|
* * Description: Maximum number of failover attempts before giving up
|
|
60850
60850
|
*/},{key:"FailoverMaxAttempts",get:function get(){return this.Get('FailoverMaxAttempts');},set:function set(value){this.Set('FailoverMaxAttempts',value);}/**
|
|
60851
60851
|
* * Field Name: FailoverDelaySeconds
|
|
60852
|
-
* * Display Name: Failover Delay (
|
|
60852
|
+
* * Display Name: Failover Delay (Seconds)
|
|
60853
60853
|
* * SQL Data Type: int
|
|
60854
60854
|
* * Default Value: 5
|
|
60855
60855
|
* * Description: Initial delay in seconds between failover attempts
|
|
@@ -60905,6 +60905,12 @@ provider=dist/* Metadata */.OS.Provider;_context61.p=1;_context61.n=2;return pro
|
|
|
60905
60905
|
* * SystemInstruction
|
|
60906
60906
|
* * Description: Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers).
|
|
60907
60907
|
*/},{key:"PrefillFallbackMode",get:function get(){return this.Get('PrefillFallbackMode');},set:function set(value){this.Set('PrefillFallbackMode',value);}/**
|
|
60908
|
+
* * Field Name: RequireSpecificModels
|
|
60909
|
+
* * Display Name: Require Specific Models
|
|
60910
|
+
* * SQL Data Type: bit
|
|
60911
|
+
* * Default Value: 0
|
|
60912
|
+
* * Description: Only applies when SelectionStrategy is Specific. When 0 (default), if none of the explicitly configured AIPromptModel entries have valid API credentials the system automatically falls back to Default/ByPower model selection across all active models matching the prompt AIModelTypeID. When 1, the system will hard-fail with an error instead of falling back, ensuring only the explicitly configured models are ever used.
|
|
60913
|
+
*/},{key:"RequireSpecificModels",get:function get(){return this.Get('RequireSpecificModels');},set:function set(value){this.Set('RequireSpecificModels',value);}/**
|
|
60908
60914
|
* * Field Name: Template
|
|
60909
60915
|
* * Display Name: Template Text
|
|
60910
60916
|
* * SQL Data Type: nvarchar(255)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/react-runtime",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.21.0",
|
|
4
4
|
"description": "Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/MemberJunction/MJ#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@memberjunction/core": "5.
|
|
33
|
-
"@memberjunction/global": "5.
|
|
34
|
-
"@memberjunction/interactive-component-types": "5.
|
|
35
|
-
"@memberjunction/core-entities": "5.
|
|
36
|
-
"@memberjunction/graphql-dataprovider": "5.
|
|
32
|
+
"@memberjunction/core": "5.21.0",
|
|
33
|
+
"@memberjunction/global": "5.21.0",
|
|
34
|
+
"@memberjunction/interactive-component-types": "5.21.0",
|
|
35
|
+
"@memberjunction/core-entities": "5.21.0",
|
|
36
|
+
"@memberjunction/graphql-dataprovider": "5.21.0",
|
|
37
37
|
"@babel/standalone": "^7.29.1",
|
|
38
38
|
"rxjs": "^7.8.2"
|
|
39
39
|
},
|