@sermas/api-client 1.0.0-alpha.54 → 1.0.0-alpha.56

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/index.d.cts CHANGED
@@ -852,6 +852,40 @@ type SessionDto = {
852
852
  settings?: AppSettingsDto;
853
853
  properties?: SessionProperties;
854
854
  };
855
+ type SessionSupportRequestDto = {
856
+ appId: string;
857
+ /**
858
+ * Reference to the authenticated client the request originated from
859
+ */
860
+ clientId?: string;
861
+ /**
862
+ * Reference to the user interacting with the system
863
+ */
864
+ userId?: string;
865
+ /**
866
+ * Reference date
867
+ */
868
+ ts?: string;
869
+ sessionId: string;
870
+ code: string;
871
+ message: string;
872
+ };
873
+ type SessionSupportResponseDto = {
874
+ appId: string;
875
+ /**
876
+ * Reference to the authenticated client the request originated from
877
+ */
878
+ clientId?: string;
879
+ /**
880
+ * Reference to the user interacting with the system
881
+ */
882
+ userId?: string;
883
+ /**
884
+ * Reference date
885
+ */
886
+ ts?: string;
887
+ supportId: string;
888
+ };
855
889
  type AgentStatus = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
856
890
  declare const AgentStatusEnum: {
857
891
  readonly UNAVAILABLE: "unavailable";
@@ -884,25 +918,43 @@ type AgentHeartBeatEventDto = {
884
918
  moduleId: string;
885
919
  status: AgentStatus;
886
920
  };
887
- type SessionSupportRequestDto = {
888
- appId: string;
921
+ type AgentEvaluatePromptOptionsDto = {
889
922
  /**
890
- * Reference to the authenticated client the request originated from
923
+ * Include chat history
891
924
  */
892
- clientId?: string;
925
+ history?: boolean;
893
926
  /**
894
- * Reference to the user interacting with the system
927
+ * Include contents from documents
895
928
  */
896
- userId?: string;
929
+ documents?: boolean;
897
930
  /**
898
- * Reference date
931
+ * Include application prompt
899
932
  */
900
- ts?: string;
901
- sessionId: string;
902
- code: string;
903
- message: string;
933
+ app?: boolean;
934
+ /**
935
+ * Use specified avatar characterization prompt
936
+ */
937
+ avatar?: string;
938
+ /**
939
+ * Provide response as JSON
940
+ */
941
+ json?: boolean;
942
+ /**
943
+ * Response language
944
+ */
945
+ language?: string;
904
946
  };
905
- type SessionSupportResponseDto = {
947
+ /**
948
+ * LLM provider
949
+ */
950
+ type LLMProvider = 'ollama' | 'openai' | 'groq' | 'antrophic';
951
+ declare const LLMProviderEnum: {
952
+ readonly OLLAMA: "ollama";
953
+ readonly OPENAI: "openai";
954
+ readonly GROQ: "groq";
955
+ readonly ANTROPHIC: "antrophic";
956
+ };
957
+ type AgentEvaluatePromptDto = {
906
958
  appId: string;
907
959
  /**
908
960
  * Reference to the authenticated client the request originated from
@@ -916,7 +968,38 @@ type SessionSupportResponseDto = {
916
968
  * Reference date
917
969
  */
918
970
  ts?: string;
919
- supportId: string;
971
+ /**
972
+ * Id of the session
973
+ */
974
+ sessionId?: string;
975
+ /**
976
+ * Prompt to evaluate
977
+ */
978
+ prompt: string;
979
+ /**
980
+ * Prompt options
981
+ */
982
+ options?: AgentEvaluatePromptOptionsDto;
983
+ provider?: LLMProvider;
984
+ /**
985
+ * LLM provider model name
986
+ */
987
+ model?: string;
988
+ };
989
+ /**
990
+ * Response format (text,string)
991
+ */
992
+ type AgentEvaluatePromptFormat = 'text' | 'string';
993
+ declare const AgentEvaluatePromptFormatEnum: {
994
+ readonly TEXT: "text";
995
+ readonly STRING: "string";
996
+ };
997
+ type AgentEvaluatePromptResponseDto = {
998
+ /**
999
+ * Result of the call
1000
+ */
1001
+ result: Record<string, unknown>;
1002
+ format: AgentEvaluatePromptFormat;
920
1003
  };
921
1004
  type SessionStorageRecordDto = {
922
1005
  appId: string;
@@ -2014,11 +2097,6 @@ declare class DialogueService {
2014
2097
  * @throws ApiError
2015
2098
  */
2016
2099
  listModels(): CancelablePromise<any>;
2017
- /**
2018
- * @returns any
2019
- * @throws ApiError
2020
- */
2021
- import1(): CancelablePromise<any>;
2022
2100
  /**
2023
2101
  * Save tools, overwriting existing ones.
2024
2102
  * @returns any
@@ -2432,11 +2510,14 @@ type TDataCreateSession = {
2432
2510
  type TDataUpdateSession = {
2433
2511
  requestBody: SessionDto;
2434
2512
  };
2513
+ type TDataSupport = {
2514
+ requestBody: SessionSupportRequestDto;
2515
+ };
2435
2516
  type TDataAgentUpdate = {
2436
2517
  requestBody: AgentHeartBeatEventDto;
2437
2518
  };
2438
- type TDataSupport = {
2439
- requestBody: SessionSupportRequestDto;
2519
+ type TDataPrompt = {
2520
+ requestBody: AgentEvaluatePromptDto;
2440
2521
  };
2441
2522
  type TDataSetRecord = {
2442
2523
  requestBody: SessionStorageRecordDto;
@@ -2483,6 +2564,12 @@ declare class SessionService {
2483
2564
  * @throws ApiError
2484
2565
  */
2485
2566
  updateSession(data: TDataUpdateSession): CancelablePromise<any>;
2567
+ /**
2568
+ * Request support from human
2569
+ * @returns SessionSupportResponseDto Human support requested
2570
+ * @throws ApiError
2571
+ */
2572
+ support(data: TDataSupport): CancelablePromise<SessionSupportResponseDto>;
2486
2573
  /**
2487
2574
  * Notifies of an agent update
2488
2575
  * @returns any
@@ -2490,11 +2577,11 @@ declare class SessionService {
2490
2577
  */
2491
2578
  agentUpdate(data: TDataAgentUpdate): CancelablePromise<any>;
2492
2579
  /**
2493
- * Request support from human
2494
- * @returns SessionSupportResponseDto Human support requested
2580
+ * Evaluate a prompt within the session context
2581
+ * @returns AgentEvaluatePromptResponseDto
2495
2582
  * @throws ApiError
2496
2583
  */
2497
- support(data: TDataSupport): CancelablePromise<SessionSupportResponseDto>;
2584
+ prompt(data: TDataPrompt): CancelablePromise<AgentEvaluatePromptResponseDto>;
2498
2585
  /**
2499
2586
  * Store user data
2500
2587
  * @returns SessionStorageRecordDto Record stored
@@ -2911,6 +2998,16 @@ interface SessionChangedDto {
2911
2998
  sessionId?: string;
2912
2999
  record: SessionDto;
2913
3000
  }
3001
+ interface SessionSupportEventDto {
3002
+ appId: string;
3003
+ clientId?: string;
3004
+ userId?: string;
3005
+ ts?: string;
3006
+ supportId: string;
3007
+ status: string;
3008
+ feedback: string;
3009
+ code: string;
3010
+ }
2914
3011
  interface AgentDto {
2915
3012
  appId: string;
2916
3013
  clientId?: string;
@@ -2930,16 +3027,6 @@ interface AgentChangedDto {
2930
3027
  moduleId: string;
2931
3028
  record: AgentDto;
2932
3029
  }
2933
- interface SessionSupportEventDto {
2934
- appId: string;
2935
- clientId?: string;
2936
- userId?: string;
2937
- ts?: string;
2938
- supportId: string;
2939
- status: string;
2940
- feedback: string;
2941
- code: string;
2942
- }
2943
3030
  interface SessionStorageEventDto {
2944
3031
  appId: string;
2945
3032
  clientId?: string;
@@ -3181,6 +3268,12 @@ declare class Session {
3181
3268
  appId?: string;
3182
3269
  sessionId?: string;
3183
3270
  }): Promise<() => void>;
3271
+ support(event: SessionSupportEventDto, params?: {
3272
+ appId?: string;
3273
+ }): Promise<boolean>;
3274
+ onSupport(fn: (event: SessionSupportEventDto) => void | Promise<void>, params?: {
3275
+ appId?: string;
3276
+ }): Promise<() => void>;
3184
3277
  agentInteraction(event: AgentDto, params?: {
3185
3278
  appId?: string;
3186
3279
  }): Promise<boolean>;
@@ -3195,12 +3288,6 @@ declare class Session {
3195
3288
  appId?: string;
3196
3289
  agentId?: string;
3197
3290
  }): Promise<() => void>;
3198
- support(event: SessionSupportEventDto, params?: {
3199
- appId?: string;
3200
- }): Promise<boolean>;
3201
- onSupport(fn: (event: SessionSupportEventDto) => void | Promise<void>, params?: {
3202
- appId?: string;
3203
- }): Promise<() => void>;
3204
3291
  storageUpdated(event: SessionStorageEventDto, params?: {
3205
3292
  appId?: string;
3206
3293
  storageId?: string;
@@ -3343,6 +3430,18 @@ interface LoggerService {
3343
3430
  setLogLevels?(levels: LogLevel[]): any;
3344
3431
  }
3345
3432
 
3433
+ declare class Logger implements LoggerService {
3434
+ private readonly logger;
3435
+ constructor(name: string);
3436
+ debug(message: any, ...optionalParams: any[]): void;
3437
+ error(message: any, ...optionalParams: any[]): void;
3438
+ fatal(message: any, ...optionalParams: any[]): void;
3439
+ log(message: any, ...optionalParams: any[]): void;
3440
+ setLogLevels(levels: LogLevel[]): void;
3441
+ verbose(message: any, ...optionalParams: any[]): void;
3442
+ warn(message: any, ...optionalParams: any[]): void;
3443
+ }
3444
+
3346
3445
  declare const sleep: (t?: number) => Promise<void>;
3347
3446
  type SermasEnvType = 'local' | 'dev' | 'prod';
3348
3447
  interface SermasApiClientConfig {
@@ -3379,4 +3478,4 @@ declare class SermasApiClient {
3379
3478
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
3380
3479
  }
3381
3480
 
3382
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type anonymous_schema_174, type anonymous_schema_253, type anonymous_schema_329, type anonymous_schema_332, type anonymous_schema_99, sleep };
3481
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentEvaluatePromptDto, type AgentEvaluatePromptFormat, AgentEvaluatePromptFormatEnum, type AgentEvaluatePromptOptionsDto, type AgentEvaluatePromptResponseDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LLMProvider, LLMProviderEnum, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, Logger, type LoggerService, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type anonymous_schema_174, type anonymous_schema_253, type anonymous_schema_329, type anonymous_schema_332, type anonymous_schema_99, sleep };
package/index.d.ts CHANGED
@@ -852,6 +852,40 @@ type SessionDto = {
852
852
  settings?: AppSettingsDto;
853
853
  properties?: SessionProperties;
854
854
  };
855
+ type SessionSupportRequestDto = {
856
+ appId: string;
857
+ /**
858
+ * Reference to the authenticated client the request originated from
859
+ */
860
+ clientId?: string;
861
+ /**
862
+ * Reference to the user interacting with the system
863
+ */
864
+ userId?: string;
865
+ /**
866
+ * Reference date
867
+ */
868
+ ts?: string;
869
+ sessionId: string;
870
+ code: string;
871
+ message: string;
872
+ };
873
+ type SessionSupportResponseDto = {
874
+ appId: string;
875
+ /**
876
+ * Reference to the authenticated client the request originated from
877
+ */
878
+ clientId?: string;
879
+ /**
880
+ * Reference to the user interacting with the system
881
+ */
882
+ userId?: string;
883
+ /**
884
+ * Reference date
885
+ */
886
+ ts?: string;
887
+ supportId: string;
888
+ };
855
889
  type AgentStatus = 'unavailable' | 'error' | 'not_ready' | 'ready' | 'loading' | 'interacting' | 'waiting' | 'processing';
856
890
  declare const AgentStatusEnum: {
857
891
  readonly UNAVAILABLE: "unavailable";
@@ -884,25 +918,43 @@ type AgentHeartBeatEventDto = {
884
918
  moduleId: string;
885
919
  status: AgentStatus;
886
920
  };
887
- type SessionSupportRequestDto = {
888
- appId: string;
921
+ type AgentEvaluatePromptOptionsDto = {
889
922
  /**
890
- * Reference to the authenticated client the request originated from
923
+ * Include chat history
891
924
  */
892
- clientId?: string;
925
+ history?: boolean;
893
926
  /**
894
- * Reference to the user interacting with the system
927
+ * Include contents from documents
895
928
  */
896
- userId?: string;
929
+ documents?: boolean;
897
930
  /**
898
- * Reference date
931
+ * Include application prompt
899
932
  */
900
- ts?: string;
901
- sessionId: string;
902
- code: string;
903
- message: string;
933
+ app?: boolean;
934
+ /**
935
+ * Use specified avatar characterization prompt
936
+ */
937
+ avatar?: string;
938
+ /**
939
+ * Provide response as JSON
940
+ */
941
+ json?: boolean;
942
+ /**
943
+ * Response language
944
+ */
945
+ language?: string;
904
946
  };
905
- type SessionSupportResponseDto = {
947
+ /**
948
+ * LLM provider
949
+ */
950
+ type LLMProvider = 'ollama' | 'openai' | 'groq' | 'antrophic';
951
+ declare const LLMProviderEnum: {
952
+ readonly OLLAMA: "ollama";
953
+ readonly OPENAI: "openai";
954
+ readonly GROQ: "groq";
955
+ readonly ANTROPHIC: "antrophic";
956
+ };
957
+ type AgentEvaluatePromptDto = {
906
958
  appId: string;
907
959
  /**
908
960
  * Reference to the authenticated client the request originated from
@@ -916,7 +968,38 @@ type SessionSupportResponseDto = {
916
968
  * Reference date
917
969
  */
918
970
  ts?: string;
919
- supportId: string;
971
+ /**
972
+ * Id of the session
973
+ */
974
+ sessionId?: string;
975
+ /**
976
+ * Prompt to evaluate
977
+ */
978
+ prompt: string;
979
+ /**
980
+ * Prompt options
981
+ */
982
+ options?: AgentEvaluatePromptOptionsDto;
983
+ provider?: LLMProvider;
984
+ /**
985
+ * LLM provider model name
986
+ */
987
+ model?: string;
988
+ };
989
+ /**
990
+ * Response format (text,string)
991
+ */
992
+ type AgentEvaluatePromptFormat = 'text' | 'string';
993
+ declare const AgentEvaluatePromptFormatEnum: {
994
+ readonly TEXT: "text";
995
+ readonly STRING: "string";
996
+ };
997
+ type AgentEvaluatePromptResponseDto = {
998
+ /**
999
+ * Result of the call
1000
+ */
1001
+ result: Record<string, unknown>;
1002
+ format: AgentEvaluatePromptFormat;
920
1003
  };
921
1004
  type SessionStorageRecordDto = {
922
1005
  appId: string;
@@ -2014,11 +2097,6 @@ declare class DialogueService {
2014
2097
  * @throws ApiError
2015
2098
  */
2016
2099
  listModels(): CancelablePromise<any>;
2017
- /**
2018
- * @returns any
2019
- * @throws ApiError
2020
- */
2021
- import1(): CancelablePromise<any>;
2022
2100
  /**
2023
2101
  * Save tools, overwriting existing ones.
2024
2102
  * @returns any
@@ -2432,11 +2510,14 @@ type TDataCreateSession = {
2432
2510
  type TDataUpdateSession = {
2433
2511
  requestBody: SessionDto;
2434
2512
  };
2513
+ type TDataSupport = {
2514
+ requestBody: SessionSupportRequestDto;
2515
+ };
2435
2516
  type TDataAgentUpdate = {
2436
2517
  requestBody: AgentHeartBeatEventDto;
2437
2518
  };
2438
- type TDataSupport = {
2439
- requestBody: SessionSupportRequestDto;
2519
+ type TDataPrompt = {
2520
+ requestBody: AgentEvaluatePromptDto;
2440
2521
  };
2441
2522
  type TDataSetRecord = {
2442
2523
  requestBody: SessionStorageRecordDto;
@@ -2483,6 +2564,12 @@ declare class SessionService {
2483
2564
  * @throws ApiError
2484
2565
  */
2485
2566
  updateSession(data: TDataUpdateSession): CancelablePromise<any>;
2567
+ /**
2568
+ * Request support from human
2569
+ * @returns SessionSupportResponseDto Human support requested
2570
+ * @throws ApiError
2571
+ */
2572
+ support(data: TDataSupport): CancelablePromise<SessionSupportResponseDto>;
2486
2573
  /**
2487
2574
  * Notifies of an agent update
2488
2575
  * @returns any
@@ -2490,11 +2577,11 @@ declare class SessionService {
2490
2577
  */
2491
2578
  agentUpdate(data: TDataAgentUpdate): CancelablePromise<any>;
2492
2579
  /**
2493
- * Request support from human
2494
- * @returns SessionSupportResponseDto Human support requested
2580
+ * Evaluate a prompt within the session context
2581
+ * @returns AgentEvaluatePromptResponseDto
2495
2582
  * @throws ApiError
2496
2583
  */
2497
- support(data: TDataSupport): CancelablePromise<SessionSupportResponseDto>;
2584
+ prompt(data: TDataPrompt): CancelablePromise<AgentEvaluatePromptResponseDto>;
2498
2585
  /**
2499
2586
  * Store user data
2500
2587
  * @returns SessionStorageRecordDto Record stored
@@ -2911,6 +2998,16 @@ interface SessionChangedDto {
2911
2998
  sessionId?: string;
2912
2999
  record: SessionDto;
2913
3000
  }
3001
+ interface SessionSupportEventDto {
3002
+ appId: string;
3003
+ clientId?: string;
3004
+ userId?: string;
3005
+ ts?: string;
3006
+ supportId: string;
3007
+ status: string;
3008
+ feedback: string;
3009
+ code: string;
3010
+ }
2914
3011
  interface AgentDto {
2915
3012
  appId: string;
2916
3013
  clientId?: string;
@@ -2930,16 +3027,6 @@ interface AgentChangedDto {
2930
3027
  moduleId: string;
2931
3028
  record: AgentDto;
2932
3029
  }
2933
- interface SessionSupportEventDto {
2934
- appId: string;
2935
- clientId?: string;
2936
- userId?: string;
2937
- ts?: string;
2938
- supportId: string;
2939
- status: string;
2940
- feedback: string;
2941
- code: string;
2942
- }
2943
3030
  interface SessionStorageEventDto {
2944
3031
  appId: string;
2945
3032
  clientId?: string;
@@ -3181,6 +3268,12 @@ declare class Session {
3181
3268
  appId?: string;
3182
3269
  sessionId?: string;
3183
3270
  }): Promise<() => void>;
3271
+ support(event: SessionSupportEventDto, params?: {
3272
+ appId?: string;
3273
+ }): Promise<boolean>;
3274
+ onSupport(fn: (event: SessionSupportEventDto) => void | Promise<void>, params?: {
3275
+ appId?: string;
3276
+ }): Promise<() => void>;
3184
3277
  agentInteraction(event: AgentDto, params?: {
3185
3278
  appId?: string;
3186
3279
  }): Promise<boolean>;
@@ -3195,12 +3288,6 @@ declare class Session {
3195
3288
  appId?: string;
3196
3289
  agentId?: string;
3197
3290
  }): Promise<() => void>;
3198
- support(event: SessionSupportEventDto, params?: {
3199
- appId?: string;
3200
- }): Promise<boolean>;
3201
- onSupport(fn: (event: SessionSupportEventDto) => void | Promise<void>, params?: {
3202
- appId?: string;
3203
- }): Promise<() => void>;
3204
3291
  storageUpdated(event: SessionStorageEventDto, params?: {
3205
3292
  appId?: string;
3206
3293
  storageId?: string;
@@ -3343,6 +3430,18 @@ interface LoggerService {
3343
3430
  setLogLevels?(levels: LogLevel[]): any;
3344
3431
  }
3345
3432
 
3433
+ declare class Logger implements LoggerService {
3434
+ private readonly logger;
3435
+ constructor(name: string);
3436
+ debug(message: any, ...optionalParams: any[]): void;
3437
+ error(message: any, ...optionalParams: any[]): void;
3438
+ fatal(message: any, ...optionalParams: any[]): void;
3439
+ log(message: any, ...optionalParams: any[]): void;
3440
+ setLogLevels(levels: LogLevel[]): void;
3441
+ verbose(message: any, ...optionalParams: any[]): void;
3442
+ warn(message: any, ...optionalParams: any[]): void;
3443
+ }
3444
+
3346
3445
  declare const sleep: (t?: number) => Promise<void>;
3347
3446
  type SermasEnvType = 'local' | 'dev' | 'prod';
3348
3447
  interface SermasApiClientConfig {
@@ -3379,4 +3478,4 @@ declare class SermasApiClient {
3379
3478
  login(username: any, password: any, appId?: string): Promise<LoginResponseDto>;
3380
3479
  }
3381
3480
 
3382
- export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type anonymous_schema_174, type anonymous_schema_253, type anonymous_schema_329, type anonymous_schema_332, type anonymous_schema_99, sleep };
3481
+ export { type AccessTokenRequestDto, type ActuationEventDto, type AgentChangedDto, type AgentDto, type AgentEvaluatePromptDto, type AgentEvaluatePromptFormat, AgentEvaluatePromptFormatEnum, type AgentEvaluatePromptOptionsDto, type AgentEvaluatePromptResponseDto, type AgentHeartBeatEventDto, type AgentStatus, AgentStatusEnum, type AppClientDto, type AppModuleConfigDto, type AppPromptDto, type AppSettingsDto, type AppToolsDTO, type AppUserDto, type AudioClassificationEventDto, type AudioClassificationValue, type AuthJwtUser, type AuthorizationUser, type AvatarCameraConfig, type BoundingBox, Broker, type Buffer$1 as Buffer, type ButtonDto, type ButtonsContentDto, type ButtonsUIContentDto, type ClearScreenDto, type ClearUIContentDto, type CreatePlatformAppDto, type DialogueActor, DialogueActorEnum, type DialogueDocumentDto, type DialogueDocumentMetadataDto, type DialogueDocumentOptionsDto, type DialogueMessageDto, type DialogueMessageUIContentDto, type DialogueTextToSpeechDto, type DialogueToolTriggeredEventDto, type DialogueToolsRepositoryChanged, type DialogueToolsRepositoryDto, type DialogueToolsRepositoryOptionsDto, type DialogueToolsRepositoryRecordDto, type EmailContentDto, type EmailUIContentDto, type HtmlContentDto, type HtmlUIContentDto, type ImageContentDto, type ImageUIContentDto, type InitialPoseDto, type InitialPoseEventDto, type InteractionStartTypes, InteractionStartTypesEnum, InteractionTypeEnum, type JwtTokenDto, type KeycloakCredentials, type KeycloakJwtTokenResourceAccess, type LLMProvider, LLMProviderEnum, type LinearVelocityDto, type LinkContentDto, type LinkUIContentDto, Logger, type LoggerService, type LoginRequestDto, type LoginResponseDto, type ModelGender, ModelGenderEnum, type ModelType, ModelTypeEnum, type ModuleConfigEventDto, type ModuleResourceDto, type ModuleSettingsDto, type MovementDto, type MovementEventDto, type NoiseEventDto, type ObjectContentDto, type ObjectDetectionDto, type ObjectDetectionEventDto, type ObjectDetectionRequest, type ObjectDetectionType, ObjectDetectionTypeEnum, type ObjectUIContentDto, type OrientationDto, type PdfContentDto, type PdfUIContentDto, type PlatformAppChangedDto, type PlatformAppClientChangedDto, type PlatformAppDto, type PlatformAppExportFilterDto, type PlatformAppModuleConfigEventDto, type PlatformModuleConfigDto, type PlatformSettingsDto, type PlatformTokenDto, type Point3D, type PoseDto, type PositionDto, type QRCodeEventDto, type QrCodePayloadDto, type QuizAnswerDto, type QuizContentDto, type QuizUIContentDto, type RefreshTokenRequestDto, type RegistrationRequestDto, type RegistrationResponseDto, type RepositoryAnimationDto, type RepositoryAssetMetadataDto, type RepositoryAssetTypes, RepositoryAssetTypesEnum, type RepositoryAvatarDto, type RepositoryBackgroundDto, type RepositoryBackgroundMetadataDto, type RepositoryConfigDto, type RepositoryDocumentDto, type RepositoryRobotModelDto, type RobotMapDto, type SentimentAnalysisRequest, SermasApiClient, type SermasApiClientConfig, type SermasBaseDto, type SermasEnvType, type SermasSessionDto, type SessionChangedDto, type SessionDto, type SessionProperties, type SessionStorageEventDto, type SessionStorageRecordDto, type SessionStorageSearchDto, type SessionSupportEventDto, type SessionSupportRequestDto, type SessionSupportResponseDto, type StatusDto, type StatusEventDto, type StringInferenceValue, type SupportedContentTypes, SupportedContentTypesEnum, type TextContentDto, type TextUIContentDto, type ToolsParameterSchema, type ToolsParameterSchemaTypes, ToolsParameterSchemaTypesEnum, type ToolsRequestSchema, type ToolsRequestSchemaAuthBasic, type ToolsRequestSchemaAuthBearer, TypeEnum, type UIAssetChangedDto, type UIAssetDto, type UIContentDto, type UIContentMetadataDto, type UIContentOptionsDto, type UIInteractionDTO, type UIInteractionEventDto, type UIModelMapBlendShapesRequestDto, type UIModelMapBlendShapesResponseDto, type UiInteractionButtonDto, type UpdateUserEventDto, type UpdateUserRequestDto, type UserAgeValue, type UserCharacterizationDto, type UserCharacterizationEventDto, type UserDetectionDto, type UserDetectionEventDto, type UserEmotionValue, type UserInteractionIntentionDto, type VelocityDto, type VideoContentDto, type VideoUIContentDto, type ViewLogsRequestDto, type WebpageContentDto, type WebpageUIContentDto, type XRMarkerChangedDto, type XRMarkerDto, type XRMarkerListRequestDto, type XROcclusionDto, type XROcclusionResponseDto, type anonymous_schema_101, type anonymous_schema_104, type anonymous_schema_174, type anonymous_schema_253, type anonymous_schema_329, type anonymous_schema_332, type anonymous_schema_99, sleep };