@praxisui/ai 7.0.0-beta.0 → 8.0.0-beta.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/fesm2022/praxisui-ai.mjs +2647 -2661
- package/index.d.ts +29 -30
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -435,6 +435,34 @@ declare class SchemaMinifierService {
|
|
|
435
435
|
static ɵprov: i0.ɵɵInjectableDeclaration<SchemaMinifierService>;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
interface PraxisAiConfigSource {
|
|
439
|
+
getAiConfigSnapshot?: () => Partial<AiIntegrationConfig> | null | undefined;
|
|
440
|
+
aiConfigChanges$?: Observable<Partial<AiIntegrationConfig> | null>;
|
|
441
|
+
}
|
|
442
|
+
declare class PraxisAiService {
|
|
443
|
+
private readonly configSource;
|
|
444
|
+
private genAI;
|
|
445
|
+
private config;
|
|
446
|
+
constructor(configSource: PraxisAiConfigSource | null);
|
|
447
|
+
private syncConfig;
|
|
448
|
+
classifyIntent(userInput: string, columns: string[]): Observable<any>;
|
|
449
|
+
answerQuestion(userInput: string, targetConfig: any): Observable<string>;
|
|
450
|
+
executeEnrichedPrompt(userInput: string, contextDescription: string, targetConfig: any, capabilities: any): Observable<any>;
|
|
451
|
+
private formatCapabilities;
|
|
452
|
+
generateContent(prompt: string, modelName?: string): Observable<string>;
|
|
453
|
+
generateContentStream(prompt: string, modelName?: string): Observable<string>;
|
|
454
|
+
generateJson<T>(prompt: string, modelName?: string, schema?: any): Observable<T | null>;
|
|
455
|
+
isMockMode(): boolean;
|
|
456
|
+
private extractUserIntent;
|
|
457
|
+
private getMockPatch;
|
|
458
|
+
listModels(apiKey?: string): Observable<AiModel[]>;
|
|
459
|
+
testConnection(apiKey?: string, model?: string): Observable<boolean>;
|
|
460
|
+
private resolveProvider;
|
|
461
|
+
private isGeminiProvider;
|
|
462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiService, [{ optional: true; }]>;
|
|
463
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PraxisAiService>;
|
|
464
|
+
}
|
|
465
|
+
|
|
438
466
|
declare const AI_INTENT_CONTRACT_VERSION: "v1.1";
|
|
439
467
|
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "51b7901f1df633d89fc019a2e41f675cc5b87b135dfc8335aa96e53205034b26";
|
|
440
468
|
type AiSchemaContext = AiSchemaContextContract;
|
|
@@ -1038,35 +1066,6 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
1038
1066
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantComponent, "praxis-ai-assistant", never, { "adapter": { "alias": "adapter"; "required": true; }; "riskPolicy": { "alias": "riskPolicy"; "required": false; }; "allowManualPatchEdit": { "alias": "allowManualPatchEdit"; "required": false; }; }, {}, never, never, true, never>;
|
|
1039
1067
|
}
|
|
1040
1068
|
|
|
1041
|
-
interface PraxisAiConfigSource {
|
|
1042
|
-
getAiConfigSnapshot?: () => Partial<AiIntegrationConfig> | null | undefined;
|
|
1043
|
-
aiConfigChanges$?: Observable<Partial<AiIntegrationConfig> | null>;
|
|
1044
|
-
}
|
|
1045
|
-
declare class PraxisAiService {
|
|
1046
|
-
private readonly configSource;
|
|
1047
|
-
private genAI;
|
|
1048
|
-
private config;
|
|
1049
|
-
constructor(configSource: PraxisAiConfigSource | null);
|
|
1050
|
-
private syncConfig;
|
|
1051
|
-
classifyIntent(userInput: string, columns: string[]): Observable<any>;
|
|
1052
|
-
answerQuestion(userInput: string, targetConfig: any): Observable<string>;
|
|
1053
|
-
executeEnrichedPrompt(userInput: string, contextDescription: string, targetConfig: any, capabilities: any): Observable<any>;
|
|
1054
|
-
private formatCapabilities;
|
|
1055
|
-
private normalizeIntentClassification;
|
|
1056
|
-
generateContent(prompt: string, modelName?: string): Observable<string>;
|
|
1057
|
-
generateContentStream(prompt: string, modelName?: string): Observable<string>;
|
|
1058
|
-
generateJson<T>(prompt: string, modelName?: string, schema?: any): Observable<T | null>;
|
|
1059
|
-
isMockMode(): boolean;
|
|
1060
|
-
private extractUserIntent;
|
|
1061
|
-
private getMockPatch;
|
|
1062
|
-
listModels(apiKey?: string): Observable<AiModel[]>;
|
|
1063
|
-
testConnection(apiKey?: string, model?: string): Observable<boolean>;
|
|
1064
|
-
private resolveProvider;
|
|
1065
|
-
private isGeminiProvider;
|
|
1066
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiService, [{ optional: true; }]>;
|
|
1067
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PraxisAiService>;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
1069
|
declare class AiContextBuilderService {
|
|
1071
1070
|
private schemaMinifier;
|
|
1072
1071
|
constructor(schemaMinifier: SchemaMinifierService);
|
|
@@ -1138,5 +1137,5 @@ declare class AiRuleWizardDialogComponent implements OnInit {
|
|
|
1138
1137
|
static ɵcmp: i0.ɵɵComponentDeclaration<AiRuleWizardDialogComponent, "praxis-ai-rule-wizard-dialog", never, {}, {}, never, never, true, never>;
|
|
1139
1138
|
}
|
|
1140
1139
|
|
|
1141
|
-
export { AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PraxisAi, PraxisAiAssistantComponent, SchemaMinifierService };
|
|
1140
|
+
export { AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PraxisAi, PraxisAiAssistantComponent, PraxisAiService, SchemaMinifierService };
|
|
1142
1141
|
export type { AiChatMessage, AiConfigAdapter, AiContextDTO, AiContextTemplate, AiContextTemplateMeta, AiCurrentStateDigest, AiExamplePair, AiGlobalConfigSnapshot, AiHeaderContext, AiIntegrationConfig, AiModel, AiOrchestratorRequest, AiOrchestratorResponse, AiPatchDiff, AiPatchStreamCancelResponse, AiPatchStreamConnection, AiPatchStreamConnectionErrorKind, AiPatchStreamEnvelope, AiPatchStreamEventType, AiPatchStreamStartResponse, AiProviderCatalogItem, AiProviderCatalogResponse, AiProviderModelsRequest, AiProviderModelsResponse, AiProviderStatusResponse, AiProviderTestRequest, AiProviderTestResponse, AiRuleResponse, AiSchemaContext, AiSuggestion, AiSuggestionsRequest, AiSuggestionsResponse, AiUiContextRef, AiValidationError, AiValidationResult, AiValidationWarning, AiWizardData, Capability, FieldSchemaLike, MinifiedField, PatchResult, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/ai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-beta.0",
|
|
4
4
|
"description": "AI building blocks and assistant integration for Praxis UI applications.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.3.0",
|
|
7
7
|
"@angular/core": "^20.3.0",
|
|
8
|
-
"@praxisui/core": "^
|
|
8
|
+
"@praxisui/core": "^8.0.0-beta.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|