rasa-pro 3.12.22__py3-none-any.whl → 3.13.0__py3-none-any.whl
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.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/__main__.py +3 -4
- rasa/api.py +1 -1
- rasa/cli/dialogue_understanding_test.py +1 -1
- rasa/cli/e2e_test.py +1 -8
- rasa/cli/evaluate.py +2 -2
- rasa/cli/export.py +5 -3
- rasa/cli/inspect.py +7 -0
- rasa/cli/llm_fine_tuning.py +1 -1
- rasa/cli/project_templates/default/config.yml +5 -32
- rasa/cli/project_templates/{calm → default}/e2e_tests/cancelations/user_cancels_during_a_correction.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/cancelations/user_changes_mind_on_a_whim.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/corrections/user_corrects_contact_handle.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/corrections/user_corrects_contact_name.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/happy_paths/user_adds_contact_to_their_list.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/happy_paths/user_lists_contacts.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/happy_paths/user_removes_contact.yml +1 -1
- rasa/cli/project_templates/{calm → default}/e2e_tests/happy_paths/user_removes_contact_from_list.yml +1 -1
- rasa/cli/project_templates/default/endpoints.yml +18 -2
- rasa/cli/project_templates/defaults.py +133 -0
- rasa/cli/project_templates/tutorial/config.yml +1 -1
- rasa/cli/project_templates/tutorial/endpoints.yml +1 -1
- rasa/cli/run.py +1 -1
- rasa/cli/scaffold.py +2 -3
- rasa/cli/shell.py +6 -1
- rasa/cli/studio/download.py +0 -22
- rasa/cli/studio/link.py +36 -0
- rasa/cli/studio/pull.py +79 -0
- rasa/cli/studio/push.py +78 -0
- rasa/cli/studio/studio.py +12 -0
- rasa/cli/studio/train.py +1 -5
- rasa/cli/studio/upload.py +6 -4
- rasa/cli/train.py +5 -1
- rasa/cli/utils.py +1 -1
- rasa/cli/x.py +1 -1
- rasa/constants.py +2 -0
- rasa/core/__init__.py +0 -16
- rasa/core/actions/action.py +43 -29
- rasa/core/actions/action_repeat_bot_messages.py +18 -22
- rasa/core/actions/action_run_slot_rejections.py +1 -2
- rasa/core/agent.py +24 -3
- rasa/core/available_endpoints.py +146 -0
- rasa/core/brokers/kafka.py +4 -0
- rasa/core/brokers/pika.py +5 -2
- rasa/core/brokers/sql.py +1 -1
- rasa/core/channels/__init__.py +3 -0
- rasa/core/channels/botframework.py +2 -2
- rasa/core/channels/channel.py +2 -2
- rasa/core/channels/development_inspector.py +1 -1
- rasa/core/channels/facebook.py +1 -4
- rasa/core/channels/hangouts.py +8 -5
- rasa/core/channels/inspector/.eslintrc.cjs +12 -6
- rasa/core/channels/inspector/.prettierrc +5 -0
- rasa/core/channels/inspector/README.md +11 -5
- rasa/core/channels/inspector/dist/assets/{arc-9f75cc3b.js → arc-371401b1.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{blockDiagram-38ab4fdb-7f34db23.js → blockDiagram-38ab4fdb-3f126156.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{c4Diagram-3d4e48cf-948bab2c.js → c4Diagram-3d4e48cf-12f22eb7.js} +1 -1
- rasa/core/channels/inspector/dist/assets/channel-f1efda17.js +1 -0
- rasa/core/channels/inspector/dist/assets/{classDiagram-70f12bd4-53b0dd0e.js → classDiagram-70f12bd4-03b1d386.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{classDiagram-v2-f2320105-fdf789e7.js → classDiagram-v2-f2320105-84f69d63.js} +1 -1
- rasa/core/channels/inspector/dist/assets/clone-fdf164e2.js +1 -0
- rasa/core/channels/inspector/dist/assets/{createText-2e5e7dd3-87c4ece5.js → createText-2e5e7dd3-ca47fd38.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{edges-e0da2a9e-5a8b0749.js → edges-e0da2a9e-f837ca8a.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{erDiagram-9861fffd-66da90e2.js → erDiagram-9861fffd-8717ac54.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDb-956e92f1-10044f05.js → flowDb-956e92f1-94f38b83.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDiagram-66a62f08-f338f66a.js → flowDiagram-66a62f08-b616f9fb.js} +1 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-7d7a1629.js +1 -0
- rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-4a651766-b13140aa.js → flowchart-elk-definition-4a651766-f5d24bb8.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{ganttDiagram-c361ad54-f2b4a55a.js → ganttDiagram-c361ad54-b43ba8d9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-72cf32ee-dedc298d.js → gitGraphDiagram-72cf32ee-c3aafaa5.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{graph-4ede11ff.js → graph-0d0a2c10.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-3862675e-65549d37.js → index-3862675e-58ea0305.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-3a23e736.js → index-cce6f8a1.js} +123 -123
- rasa/core/channels/inspector/dist/assets/{infoDiagram-f8f76790-65439671.js → infoDiagram-f8f76790-b8f60461.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{journeyDiagram-49397b02-56d03d98.js → journeyDiagram-49397b02-95be5545.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{layout-dd48f7f4.js → layout-da885b9b.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{line-1569ad2c.js → line-f1c817d3.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{linear-48bf4935.js → linear-d42801e6.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{mindmap-definition-fc14e90a-688504c1.js → mindmap-definition-fc14e90a-a38923a6.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{pieDiagram-8a3498a8-78b6d7e6.js → pieDiagram-8a3498a8-ca6e71e9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{quadrantDiagram-120e2f19-048b84b3.js → quadrantDiagram-120e2f19-b290dae9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{requirementDiagram-deff3bca-dd67f107.js → requirementDiagram-deff3bca-03f02ceb.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sankeyDiagram-04a897e0-8128436e.js → sankeyDiagram-04a897e0-c49eee40.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sequenceDiagram-704730f1-1a0d1461.js → sequenceDiagram-704730f1-b2cd6a3d.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-587899a1-46d388ed.js → stateDiagram-587899a1-e53a2028.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-d93cdb3a-ea42951a.js → stateDiagram-v2-d93cdb3a-e1982a03.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-6aaf32cf-7427ed0c.js → styles-6aaf32cf-d0226ca5.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-9a916d00-ff5e5a16.js → styles-9a916d00-0e21dc00.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-c10674c1-7b3680cf.js → styles-c10674c1-9588494e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{svgDrawCommon-08f97a94-f860f2ad.js → svgDrawCommon-08f97a94-be478d4f.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{timeline-definition-85554ec2-2eebf0c8.js → timeline-definition-85554ec2-74631749.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{xychartDiagram-e933f94c-5d7f4e96.js → xychartDiagram-e933f94c-a043552f.js} +1 -1
- rasa/core/channels/inspector/dist/index.html +1 -1
- rasa/core/channels/inspector/package.json +3 -1
- rasa/core/channels/inspector/src/App.tsx +91 -90
- rasa/core/channels/inspector/src/components/Chat.tsx +45 -41
- rasa/core/channels/inspector/src/components/DiagramFlow.tsx +40 -40
- rasa/core/channels/inspector/src/components/DialogueInformation.tsx +57 -57
- rasa/core/channels/inspector/src/components/DialogueStack.tsx +36 -27
- rasa/core/channels/inspector/src/components/ExpandIcon.tsx +4 -4
- rasa/core/channels/inspector/src/components/FullscreenButton.tsx +7 -7
- rasa/core/channels/inspector/src/components/LoadingSpinner.tsx +28 -12
- rasa/core/channels/inspector/src/components/NoActiveFlow.tsx +9 -9
- rasa/core/channels/inspector/src/components/RasaLogo.tsx +5 -5
- rasa/core/channels/inspector/src/components/RecruitmentPanel.tsx +55 -60
- rasa/core/channels/inspector/src/components/SaraDiagrams.tsx +5 -5
- rasa/core/channels/inspector/src/components/Slots.tsx +22 -22
- rasa/core/channels/inspector/src/components/Welcome.tsx +28 -31
- rasa/core/channels/inspector/src/helpers/audio/audiostream.ts +245 -0
- rasa/core/channels/inspector/src/helpers/audio/microphone-processor.js +12 -0
- rasa/core/channels/inspector/src/helpers/audio/playback-processor.js +36 -0
- rasa/core/channels/inspector/src/helpers/conversation.ts +7 -7
- rasa/core/channels/inspector/src/helpers/formatters.test.ts +181 -181
- rasa/core/channels/inspector/src/helpers/formatters.ts +111 -111
- rasa/core/channels/inspector/src/helpers/utils.ts +78 -61
- rasa/core/channels/inspector/src/main.tsx +8 -8
- rasa/core/channels/inspector/src/theme/Button/Button.ts +8 -8
- rasa/core/channels/inspector/src/theme/Heading/Heading.ts +7 -7
- rasa/core/channels/inspector/src/theme/Input/Input.ts +9 -9
- rasa/core/channels/inspector/src/theme/Link/Link.ts +6 -6
- rasa/core/channels/inspector/src/theme/Modal/Modal.ts +13 -13
- rasa/core/channels/inspector/src/theme/Table/Table.tsx +10 -10
- rasa/core/channels/inspector/src/theme/Tooltip/Tooltip.ts +5 -5
- rasa/core/channels/inspector/src/theme/base/breakpoints.ts +7 -7
- rasa/core/channels/inspector/src/theme/base/colors.ts +64 -64
- rasa/core/channels/inspector/src/theme/base/fonts/fontFaces.css +21 -18
- rasa/core/channels/inspector/src/theme/base/radii.ts +8 -8
- rasa/core/channels/inspector/src/theme/base/shadows.ts +5 -5
- rasa/core/channels/inspector/src/theme/base/sizes.ts +5 -5
- rasa/core/channels/inspector/src/theme/base/space.ts +12 -12
- rasa/core/channels/inspector/src/theme/base/styles.ts +5 -5
- rasa/core/channels/inspector/src/theme/base/typography.ts +12 -12
- rasa/core/channels/inspector/src/theme/base/zIndices.ts +3 -3
- rasa/core/channels/inspector/src/theme/index.ts +38 -38
- rasa/core/channels/inspector/src/types.ts +56 -50
- rasa/core/channels/inspector/yarn.lock +5 -0
- rasa/core/channels/mattermost.py +1 -1
- rasa/core/channels/rasa_chat.py +2 -4
- rasa/core/channels/rest.py +5 -4
- rasa/core/channels/socketio.py +56 -41
- rasa/core/channels/studio_chat.py +329 -68
- rasa/core/channels/vier_cvg.py +1 -2
- rasa/core/channels/voice_ready/audiocodes.py +4 -11
- rasa/core/channels/voice_ready/jambonz.py +5 -6
- rasa/core/channels/voice_ready/twilio_voice.py +13 -12
- rasa/core/channels/voice_ready/utils.py +22 -0
- rasa/core/channels/voice_stream/audiocodes.py +13 -16
- rasa/core/channels/voice_stream/browser_audio.py +1 -1
- rasa/core/channels/voice_stream/genesys.py +37 -18
- rasa/core/channels/voice_stream/jambonz.py +232 -0
- rasa/core/channels/voice_stream/tts/__init__.py +8 -0
- rasa/core/channels/voice_stream/twilio_media_streams.py +15 -12
- rasa/core/channels/voice_stream/voice_channel.py +71 -27
- rasa/core/concurrent_lock_store.py +24 -10
- rasa/core/evaluation/marker_tracker_loader.py +1 -1
- rasa/core/exporter.py +37 -1
- rasa/core/http_interpreter.py +3 -7
- rasa/core/information_retrieval/faiss.py +18 -11
- rasa/core/information_retrieval/ingestion/faq_parser.py +158 -0
- rasa/core/jobs.py +2 -1
- rasa/core/lock_store.py +151 -60
- rasa/core/nlg/contextual_response_rephraser.py +17 -7
- rasa/core/nlg/generator.py +5 -22
- rasa/core/nlg/interpolator.py +2 -3
- rasa/core/nlg/response.py +6 -43
- rasa/core/nlg/summarize.py +1 -1
- rasa/core/nlg/translate.py +0 -8
- rasa/core/policies/enterprise_search_policy.py +305 -189
- rasa/core/policies/enterprise_search_policy_config.py +241 -0
- rasa/core/policies/enterprise_search_prompt_with_relevancy_check_and_citation_template.jinja2 +67 -0
- rasa/core/policies/flow_policy.py +1 -1
- rasa/core/policies/flows/flow_executor.py +102 -17
- rasa/core/policies/intentless_policy.py +56 -17
- rasa/core/processor.py +70 -49
- rasa/core/run.py +33 -11
- rasa/core/tracker_stores/__init__.py +0 -0
- rasa/core/{auth_retry_tracker_store.py → tracker_stores/auth_retry_tracker_store.py} +66 -1
- rasa/core/tracker_stores/dynamo_tracker_store.py +256 -0
- rasa/core/tracker_stores/mongo_tracker_store.py +223 -0
- rasa/core/tracker_stores/redis_tracker_store.py +252 -0
- rasa/core/tracker_stores/sql_tracker_store.py +582 -0
- rasa/core/tracker_stores/tracker_store.py +839 -0
- rasa/core/training/interactive.py +1 -1
- rasa/core/utils.py +24 -95
- rasa/dialogue_understanding/coexistence/intent_based_router.py +2 -1
- rasa/dialogue_understanding/coexistence/llm_based_router.py +13 -11
- rasa/dialogue_understanding/commands/can_not_handle_command.py +2 -0
- rasa/dialogue_understanding/commands/cancel_flow_command.py +3 -1
- rasa/dialogue_understanding/commands/chit_chat_answer_command.py +2 -0
- rasa/dialogue_understanding/commands/clarify_command.py +6 -2
- rasa/dialogue_understanding/commands/command_syntax_manager.py +1 -0
- rasa/dialogue_understanding/commands/correct_slots_command.py +5 -6
- rasa/dialogue_understanding/commands/error_command.py +1 -1
- rasa/dialogue_understanding/commands/human_handoff_command.py +3 -3
- rasa/dialogue_understanding/commands/knowledge_answer_command.py +2 -0
- rasa/dialogue_understanding/commands/repeat_bot_messages_command.py +2 -0
- rasa/dialogue_understanding/commands/set_slot_command.py +8 -4
- rasa/dialogue_understanding/commands/skip_question_command.py +3 -3
- rasa/dialogue_understanding/commands/start_flow_command.py +7 -3
- rasa/dialogue_understanding/generator/__init__.py +7 -1
- rasa/dialogue_understanding/generator/command_generator.py +4 -2
- rasa/dialogue_understanding/generator/command_parser.py +2 -2
- rasa/dialogue_understanding/generator/command_parser_validator.py +63 -0
- rasa/dialogue_understanding/generator/llm_based_command_generator.py +1 -2
- rasa/dialogue_understanding/generator/multi_step/multi_step_llm_command_generator.py +3 -2
- rasa/dialogue_understanding/generator/nlu_command_adapter.py +2 -2
- rasa/dialogue_understanding/generator/prompt_templates/command_prompt_template.jinja2 +0 -2
- rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v2_claude_3_5_sonnet_20240620_template.jinja2 +1 -0
- rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v2_gpt_4o_2024_11_20_template.jinja2 +1 -0
- rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v3_claude_3_5_sonnet_20240620_template.jinja2 +79 -0
- rasa/dialogue_understanding/generator/prompt_templates/command_prompt_v3_gpt_4o_2024_11_20_template.jinja2 +79 -0
- rasa/dialogue_understanding/generator/single_step/compact_llm_command_generator.py +26 -461
- rasa/dialogue_understanding/generator/single_step/search_ready_llm_command_generator.py +147 -0
- rasa/dialogue_understanding/generator/single_step/single_step_based_llm_command_generator.py +461 -0
- rasa/dialogue_understanding/generator/single_step/single_step_llm_command_generator.py +20 -64
- rasa/dialogue_understanding/patterns/cancel.py +1 -2
- rasa/dialogue_understanding/patterns/clarify.py +1 -1
- rasa/dialogue_understanding/patterns/correction.py +2 -2
- rasa/dialogue_understanding/patterns/default_flows_for_patterns.yml +42 -27
- rasa/dialogue_understanding/patterns/domain_for_patterns.py +190 -0
- rasa/dialogue_understanding/processor/command_processor.py +6 -7
- rasa/dialogue_understanding_test/command_metric_calculation.py +7 -40
- rasa/dialogue_understanding_test/command_metrics.py +38 -0
- rasa/dialogue_understanding_test/du_test_case.py +58 -25
- rasa/dialogue_understanding_test/du_test_result.py +228 -132
- rasa/dialogue_understanding_test/du_test_runner.py +11 -2
- rasa/dialogue_understanding_test/du_test_schema.yml +3 -3
- rasa/dialogue_understanding_test/io.py +35 -8
- rasa/e2e_test/constants.py +1 -1
- rasa/e2e_test/e2e_test_runner.py +1 -1
- rasa/e2e_test/e2e_test_schema.yml +3 -3
- rasa/engine/constants.py +1 -1
- rasa/engine/graph.py +2 -2
- rasa/engine/recipes/default_recipe.py +1 -1
- rasa/engine/validation.py +3 -2
- rasa/hooks.py +2 -30
- rasa/llm_fine_tuning/paraphrasing/conversation_rephraser.py +2 -6
- rasa/model_manager/model_api.py +89 -1
- rasa/model_manager/runner_service.py +20 -4
- rasa/model_manager/socket_bridge.py +0 -7
- rasa/model_manager/trainer_service.py +10 -4
- rasa/plugin.py +2 -15
- rasa/privacy/__init__.py +0 -0
- rasa/privacy/constants.py +83 -0
- rasa/privacy/event_broker_utils.py +77 -0
- rasa/privacy/privacy_config.py +281 -0
- rasa/privacy/privacy_config_schema.json +86 -0
- rasa/privacy/privacy_filter.py +393 -0
- rasa/privacy/privacy_manager.py +594 -0
- rasa/server.py +23 -2
- rasa/shared/constants.py +17 -0
- rasa/shared/core/command_payload_reader.py +1 -5
- rasa/shared/core/constants.py +4 -3
- rasa/shared/core/domain.py +172 -11
- rasa/shared/core/events.py +100 -6
- rasa/shared/core/flows/flow.py +30 -5
- rasa/shared/core/flows/flow_step.py +19 -3
- rasa/shared/core/flows/flow_step_links.py +15 -0
- rasa/shared/core/flows/flow_step_sequence.py +6 -0
- rasa/shared/core/flows/flows_yaml_schema.json +3 -0
- rasa/shared/core/flows/nlu_trigger.py +13 -0
- rasa/shared/core/flows/steps/action.py +7 -4
- rasa/shared/core/flows/steps/call.py +11 -4
- rasa/shared/core/flows/steps/collect.py +71 -6
- rasa/shared/core/flows/steps/internal.py +6 -1
- rasa/shared/core/flows/steps/link.py +7 -4
- rasa/shared/core/flows/steps/no_operation.py +7 -4
- rasa/shared/core/flows/steps/set_slots.py +8 -4
- rasa/shared/core/flows/validation.py +25 -5
- rasa/shared/core/flows/yaml_flows_io.py +106 -5
- rasa/shared/core/slots.py +29 -1
- rasa/shared/core/trackers.py +21 -10
- rasa/shared/core/training_data/story_reader/yaml_story_reader.py +1 -4
- rasa/shared/importers/importer.py +8 -0
- rasa/shared/providers/_configs/azure_openai_client_config.py +2 -2
- rasa/shared/providers/_configs/default_litellm_client_config.py +1 -1
- rasa/shared/providers/_configs/huggingface_local_embedding_client_config.py +1 -1
- rasa/shared/providers/_configs/openai_client_config.py +1 -1
- rasa/shared/providers/_configs/rasa_llm_client_config.py +1 -1
- rasa/shared/providers/_configs/self_hosted_llm_client_config.py +1 -1
- rasa/shared/providers/_configs/utils.py +0 -99
- rasa/shared/providers/llm/default_litellm_llm_client.py +2 -2
- rasa/shared/utils/common.py +43 -1
- rasa/shared/utils/configs.py +110 -0
- rasa/shared/utils/constants.py +0 -3
- rasa/shared/utils/llm.py +245 -8
- rasa/shared/utils/pykwalify_extensions.py +0 -9
- rasa/shared/utils/yaml.py +32 -0
- rasa/studio/constants.py +1 -0
- rasa/studio/data_handler.py +33 -12
- rasa/studio/download.py +117 -435
- rasa/studio/link.py +211 -0
- rasa/studio/prompts.py +221 -0
- rasa/studio/pull/__init__.py +0 -0
- rasa/studio/pull/data.py +222 -0
- rasa/studio/pull/domains.py +60 -0
- rasa/studio/pull/pull.py +239 -0
- rasa/studio/push.py +138 -0
- rasa/studio/results_logger.py +6 -1
- rasa/studio/train.py +1 -1
- rasa/studio/upload.py +243 -72
- rasa/studio/utils.py +33 -0
- rasa/telemetry.py +83 -26
- rasa/tracing/config.py +4 -5
- rasa/tracing/constants.py +19 -1
- rasa/tracing/instrumentation/attribute_extractors.py +68 -16
- rasa/tracing/instrumentation/instrumentation.py +54 -3
- rasa/tracing/instrumentation/metrics.py +98 -15
- rasa/tracing/metric_instrument_provider.py +75 -3
- rasa/utils/common.py +43 -22
- rasa/utils/endpoints.py +22 -1
- rasa/utils/licensing.py +2 -3
- rasa/utils/log_utils.py +1 -45
- rasa/validator.py +2 -8
- rasa/version.py +1 -1
- {rasa_pro-3.12.22.dist-info → rasa_pro-3.13.0.dist-info}/METADATA +11 -12
- {rasa_pro-3.12.22.dist-info → rasa_pro-3.13.0.dist-info}/RECORD +333 -309
- rasa/anonymization/__init__.py +0 -2
- rasa/anonymization/anonymisation_rule_yaml_reader.py +0 -91
- rasa/anonymization/anonymization_pipeline.py +0 -286
- rasa/anonymization/anonymization_rule_executor.py +0 -266
- rasa/anonymization/anonymization_rule_orchestrator.py +0 -119
- rasa/anonymization/schemas/config.yml +0 -47
- rasa/anonymization/utils.py +0 -118
- rasa/cli/project_templates/calm/config.yml +0 -10
- rasa/cli/project_templates/calm/credentials.yml +0 -33
- rasa/cli/project_templates/calm/endpoints.yml +0 -58
- rasa/cli/project_templates/default/actions/actions.py +0 -27
- rasa/cli/project_templates/default/data/nlu.yml +0 -91
- rasa/cli/project_templates/default/data/rules.yml +0 -13
- rasa/cli/project_templates/default/data/stories.yml +0 -30
- rasa/cli/project_templates/default/domain.yml +0 -34
- rasa/cli/project_templates/default/tests/test_stories.yml +0 -91
- rasa/core/channels/inspector/dist/assets/channel-dfa68278.js +0 -1
- rasa/core/channels/inspector/dist/assets/clone-edb7f119.js +0 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-65e7c670.js +0 -1
- rasa/core/channels/inspector/src/helpers/audiostream.ts +0 -191
- rasa/core/tracker_store.py +0 -1792
- /rasa/cli/project_templates/{calm → default}/actions/action_template.py +0 -0
- /rasa/cli/project_templates/{calm → default}/actions/add_contact.py +0 -0
- /rasa/cli/project_templates/{calm → default}/actions/db.py +0 -0
- /rasa/cli/project_templates/{calm → default}/actions/list_contacts.py +0 -0
- /rasa/cli/project_templates/{calm → default}/actions/remove_contact.py +0 -0
- /rasa/cli/project_templates/{calm → default}/data/flows/add_contact.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/data/flows/list_contacts.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/data/flows/remove_contact.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/db/contacts.json +0 -0
- /rasa/cli/project_templates/{calm → default}/domain/add_contact.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/domain/list_contacts.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/domain/remove_contact.yml +0 -0
- /rasa/cli/project_templates/{calm → default}/domain/shared.yml +0 -0
- /rasa/{cli/project_templates/calm/actions → core/information_retrieval/ingestion}/__init__.py +0 -0
- {rasa_pro-3.12.22.dist-info → rasa_pro-3.13.0.dist-info}/NOTICE +0 -0
- {rasa_pro-3.12.22.dist-info → rasa_pro-3.13.0.dist-info}/WHEEL +0 -0
- {rasa_pro-3.12.22.dist-info → rasa_pro-3.13.0.dist-info}/entry_points.txt +0 -0
|
@@ -10,7 +10,10 @@ from rasa.tracing.constants import (
|
|
|
10
10
|
COMPACT_LLM_COMMAND_GENERATOR_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
11
11
|
CONTEXTUAL_RESPONSE_REPHRASER_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
12
12
|
DURATION_UNIT_NAME,
|
|
13
|
+
ENTERPRISE_SEARCH_POLICY_CPU_USAGE_METRIC_NAME,
|
|
13
14
|
ENTERPRISE_SEARCH_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
15
|
+
ENTERPRISE_SEARCH_POLICY_MEMORY_USAGE_METRIC_NAME,
|
|
16
|
+
ENTERPRISE_SEARCH_POLICY_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
14
17
|
INTENTLESS_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
15
18
|
LLM_BASED_COMMAND_GENERATOR_CPU_MEMORY_USAGE_UNIT_NAME,
|
|
16
19
|
LLM_COMMAND_GENERATOR_CPU_USAGE_METRIC_NAME,
|
|
@@ -23,6 +26,10 @@ from rasa.tracing.constants import (
|
|
|
23
26
|
MULTI_STEP_LLM_COMMAND_GENERATOR_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
24
27
|
RASA_CLIENT_REQUEST_BODY_SIZE_METRIC_NAME,
|
|
25
28
|
RASA_CLIENT_REQUEST_DURATION_METRIC_NAME,
|
|
29
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_CPU_USAGE_METRIC_NAME,
|
|
30
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
31
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_MEMORY_USAGE_METRIC_NAME,
|
|
32
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
26
33
|
SINGLE_STEP_LLM_COMMAND_GENERATOR_CPU_USAGE_METRIC_NAME,
|
|
27
34
|
SINGLE_STEP_LLM_COMMAND_GENERATOR_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
28
35
|
SINGLE_STEP_LLM_COMMAND_GENERATOR_MEMORY_USAGE_METRIC_NAME,
|
|
@@ -48,7 +55,9 @@ class MetricInstrumentProvider(metaclass=Singleton):
|
|
|
48
55
|
**self._create_llm_command_generator_instruments(meter),
|
|
49
56
|
**self._create_single_step_llm_command_generator_instruments(meter),
|
|
50
57
|
**self._create_compact_llm_command_generator_instruments(meter),
|
|
58
|
+
**self._create_search_ready_llm_command_generator_instruments(meter),
|
|
51
59
|
**self._create_multi_step_llm_command_generator_instruments(meter),
|
|
60
|
+
**self._create_enterprise_search_policy_instruments(meter),
|
|
52
61
|
**self._create_llm_response_duration_instruments(meter),
|
|
53
62
|
**self._create_client_request_instruments(meter),
|
|
54
63
|
}
|
|
@@ -162,6 +171,41 @@ class MetricInstrumentProvider(metaclass=Singleton):
|
|
|
162
171
|
COMPACT_LLM_COMMAND_GENERATOR_LLM_RESPONSE_DURATION_METRIC_NAME: compact_llm_response_duration_llm_command_generator, # noqa: E501
|
|
163
172
|
}
|
|
164
173
|
|
|
174
|
+
@staticmethod
|
|
175
|
+
def _create_search_ready_llm_command_generator_instruments(
|
|
176
|
+
meter: Meter,
|
|
177
|
+
) -> Dict[str, Any]:
|
|
178
|
+
search_ready_llm_command_generator_cpu_usage = meter.create_histogram(
|
|
179
|
+
name=SEARCH_READY_LLM_COMMAND_GENERATOR_CPU_USAGE_METRIC_NAME,
|
|
180
|
+
description="CPU percentage for SearchReadyLLMCommandGenerator",
|
|
181
|
+
unit=LLM_BASED_COMMAND_GENERATOR_CPU_MEMORY_USAGE_UNIT_NAME,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
search_ready_llm_command_generator_memory_usage = meter.create_histogram(
|
|
185
|
+
name=SEARCH_READY_LLM_COMMAND_GENERATOR_MEMORY_USAGE_METRIC_NAME,
|
|
186
|
+
description="RAM memory usage for SearchReadyLLMCommandGenerator",
|
|
187
|
+
unit=LLM_BASED_COMMAND_GENERATOR_CPU_MEMORY_USAGE_UNIT_NAME,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
search_ready_llm_command_generator_prompt_token_usage = meter.create_histogram(
|
|
191
|
+
name=SEARCH_READY_LLM_COMMAND_GENERATOR_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
192
|
+
description="SearchReadyLLMCommandGenerator prompt token length",
|
|
193
|
+
unit="1",
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
search_ready_llm_response_duration_command_generator = meter.create_histogram(
|
|
197
|
+
name=SEARCH_READY_LLM_COMMAND_GENERATOR_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
198
|
+
description="The duration of SearchReadyLLMCommandGenerator's LLM call",
|
|
199
|
+
unit=DURATION_UNIT_NAME,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_CPU_USAGE_METRIC_NAME: search_ready_llm_command_generator_cpu_usage, # noqa: E501
|
|
204
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_MEMORY_USAGE_METRIC_NAME: search_ready_llm_command_generator_memory_usage, # noqa: E501
|
|
205
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_PROMPT_TOKEN_USAGE_METRIC_NAME: search_ready_llm_command_generator_prompt_token_usage, # noqa: E501
|
|
206
|
+
SEARCH_READY_LLM_COMMAND_GENERATOR_LLM_RESPONSE_DURATION_METRIC_NAME: search_ready_llm_response_duration_command_generator, # noqa: E501
|
|
207
|
+
}
|
|
208
|
+
|
|
165
209
|
@staticmethod
|
|
166
210
|
def _create_multi_step_llm_command_generator_instruments(
|
|
167
211
|
meter: Meter,
|
|
@@ -198,13 +242,42 @@ class MetricInstrumentProvider(metaclass=Singleton):
|
|
|
198
242
|
}
|
|
199
243
|
|
|
200
244
|
@staticmethod
|
|
201
|
-
def
|
|
202
|
-
|
|
245
|
+
def _create_enterprise_search_policy_instruments(
|
|
246
|
+
meter: Meter,
|
|
247
|
+
) -> Dict[str, Any]:
|
|
248
|
+
enterprise_search_policy_cpu_usage = meter.create_histogram(
|
|
249
|
+
name=ENTERPRISE_SEARCH_POLICY_CPU_USAGE_METRIC_NAME,
|
|
250
|
+
description="CPU percentage for EnterpriseSearchPolicy",
|
|
251
|
+
unit=LLM_BASED_COMMAND_GENERATOR_CPU_MEMORY_USAGE_UNIT_NAME,
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
enterprise_search_policy_memory_usage = meter.create_histogram(
|
|
255
|
+
name=ENTERPRISE_SEARCH_POLICY_MEMORY_USAGE_METRIC_NAME,
|
|
256
|
+
description="RAM memory usage for EnterpriseSearchPolicy",
|
|
257
|
+
unit=LLM_BASED_COMMAND_GENERATOR_CPU_MEMORY_USAGE_UNIT_NAME,
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
enterprise_search_policy_prompt_token_usage = meter.create_histogram(
|
|
261
|
+
name=ENTERPRISE_SEARCH_POLICY_PROMPT_TOKEN_USAGE_METRIC_NAME,
|
|
262
|
+
description="EnterpriseSearchPolicy prompt token length",
|
|
263
|
+
unit="1",
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
enterprise_search_policy_llm_response_duration = meter.create_histogram(
|
|
203
267
|
name=ENTERPRISE_SEARCH_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
204
268
|
description="The duration of EnterpriseSearchPolicy's LLM call",
|
|
205
269
|
unit=DURATION_UNIT_NAME,
|
|
206
270
|
)
|
|
207
271
|
|
|
272
|
+
return {
|
|
273
|
+
ENTERPRISE_SEARCH_POLICY_CPU_USAGE_METRIC_NAME: enterprise_search_policy_cpu_usage, # noqa: E501
|
|
274
|
+
ENTERPRISE_SEARCH_POLICY_MEMORY_USAGE_METRIC_NAME: enterprise_search_policy_memory_usage, # noqa: E501
|
|
275
|
+
ENTERPRISE_SEARCH_POLICY_PROMPT_TOKEN_USAGE_METRIC_NAME: enterprise_search_policy_prompt_token_usage, # noqa: E501
|
|
276
|
+
ENTERPRISE_SEARCH_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME: enterprise_search_policy_llm_response_duration, # noqa: E501
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@staticmethod
|
|
280
|
+
def _create_llm_response_duration_instruments(meter: Meter) -> Dict[str, Any]:
|
|
208
281
|
llm_response_duration_intentless = meter.create_histogram(
|
|
209
282
|
name=INTENTLESS_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME,
|
|
210
283
|
description="The duration of IntentlessPolicy's LLM call",
|
|
@@ -218,7 +291,6 @@ class MetricInstrumentProvider(metaclass=Singleton):
|
|
|
218
291
|
)
|
|
219
292
|
|
|
220
293
|
return {
|
|
221
|
-
ENTERPRISE_SEARCH_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME: llm_response_duration_enterprise_search, # noqa: E501
|
|
222
294
|
INTENTLESS_POLICY_LLM_RESPONSE_DURATION_METRIC_NAME: llm_response_duration_intentless, # noqa: E501
|
|
223
295
|
CONTEXTUAL_RESPONSE_REPHRASER_LLM_RESPONSE_DURATION_METRIC_NAME: llm_response_duration_contextual_nlg, # noqa: E501
|
|
224
296
|
}
|
rasa/utils/common.py
CHANGED
|
@@ -29,7 +29,6 @@ import numpy as np
|
|
|
29
29
|
|
|
30
30
|
import rasa.shared.utils.io
|
|
31
31
|
import rasa.utils.io
|
|
32
|
-
from rasa.anonymization import ENV_LOG_LEVEL_FAKER, ENV_LOG_LEVEL_PRESIDIO
|
|
33
32
|
from rasa.constants import (
|
|
34
33
|
DEFAULT_LOG_LEVEL_LIBRARIES,
|
|
35
34
|
ENV_LOG_LEVEL_KAFKA,
|
|
@@ -48,11 +47,12 @@ T = TypeVar("T")
|
|
|
48
47
|
|
|
49
48
|
EXPECTED_WARNINGS: List[Tuple[Type[Warning], str]] = [
|
|
50
49
|
# TODO (issue #9932)
|
|
50
|
+
# DM1 warnings
|
|
51
51
|
(
|
|
52
52
|
np.VisibleDeprecationWarning,
|
|
53
53
|
"Creating an ndarray from ragged nested sequences.*",
|
|
54
54
|
),
|
|
55
|
-
# raised by
|
|
55
|
+
# raised by magic_filter, google rpc
|
|
56
56
|
# and probably other dependencies that use pkg_resources instead of importlib
|
|
57
57
|
(DeprecationWarning, ".*pkg_resources.*"),
|
|
58
58
|
# This warning is triggered by sanic-cors 2.0.0 and by langchain -> faiss.
|
|
@@ -94,6 +94,41 @@ EXPECTED_WARNINGS: List[Tuple[Type[Warning], str]] = [
|
|
|
94
94
|
DeprecationWarning,
|
|
95
95
|
"https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy",
|
|
96
96
|
),
|
|
97
|
+
# CALM warnings
|
|
98
|
+
# Ignore deprecation warning for ml_dtypes.float8_e4m3b11
|
|
99
|
+
(
|
|
100
|
+
DeprecationWarning,
|
|
101
|
+
"ml_dtypes.float8_e4m3b11 is deprecated. Use ml_dtypes.float8_e4m3b11fnuz",
|
|
102
|
+
),
|
|
103
|
+
# Ignore deprecation warning for the load_module() method
|
|
104
|
+
(
|
|
105
|
+
DeprecationWarning,
|
|
106
|
+
"the load_module\\(\\) method is deprecated and slated for removal*",
|
|
107
|
+
),
|
|
108
|
+
# Ignore deprecation warning for the rule-based policy
|
|
109
|
+
(
|
|
110
|
+
UserWarning,
|
|
111
|
+
"Found a rule-based policy in your configuration but no rule-based training*",
|
|
112
|
+
),
|
|
113
|
+
# Ignore deprecation warning for the TEDPolicy
|
|
114
|
+
(
|
|
115
|
+
UserWarning,
|
|
116
|
+
"Skipping training of `TEDPolicy` as no data was provided.*",
|
|
117
|
+
),
|
|
118
|
+
# Ignore deprecation warning for the LexicalSyntacticFeaturizer
|
|
119
|
+
(
|
|
120
|
+
UserWarning,
|
|
121
|
+
"No lexical syntactic features could be extracted from the training data.*",
|
|
122
|
+
),
|
|
123
|
+
# Ignore deprecation warning for the LexicalSyntacticFeaturizer2
|
|
124
|
+
(
|
|
125
|
+
UserWarning,
|
|
126
|
+
"The LexicalSyntacticFeaturizer run_LexicalSyntacticFeaturizer2 has not been*",
|
|
127
|
+
),
|
|
128
|
+
(
|
|
129
|
+
FutureWarning,
|
|
130
|
+
"'request_timeout' is deprecated and will be removed in 4.0.0. Use 'timeout'*",
|
|
131
|
+
),
|
|
97
132
|
]
|
|
98
133
|
|
|
99
134
|
PYTHON_LOGGING_SCHEMA_DOCS = (
|
|
@@ -245,8 +280,7 @@ def configure_library_logging() -> None:
|
|
|
245
280
|
update_matplotlib_log_level(library_log_level)
|
|
246
281
|
update_kafka_log_level(library_log_level)
|
|
247
282
|
update_rabbitmq_log_level(library_log_level)
|
|
248
|
-
|
|
249
|
-
update_faker_log_level(library_log_level)
|
|
283
|
+
update_websockets_log_level(library_log_level)
|
|
250
284
|
|
|
251
285
|
|
|
252
286
|
def update_apscheduler_log_level() -> None:
|
|
@@ -371,27 +405,14 @@ def update_rabbitmq_log_level(library_log_level: Text) -> None:
|
|
|
371
405
|
logging.getLogger("aiormq").setLevel(log_level)
|
|
372
406
|
|
|
373
407
|
|
|
374
|
-
def
|
|
375
|
-
"""Set the log level of
|
|
376
|
-
|
|
377
|
-
Uses the library specific log level or the general libraries log level.
|
|
378
|
-
"""
|
|
379
|
-
log_level = os.environ.get(ENV_LOG_LEVEL_PRESIDIO, library_log_level)
|
|
380
|
-
presidio_loggers = ["presidio_analyzer", "presidio_anonymizer"]
|
|
381
|
-
|
|
382
|
-
for logger_name in presidio_loggers:
|
|
383
|
-
logging.getLogger(logger_name).setLevel(log_level)
|
|
384
|
-
logging.getLogger(logger_name).propagate = False
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
def update_faker_log_level(library_log_level: Text) -> None:
|
|
388
|
-
"""Set the log level of faker.
|
|
408
|
+
def update_websockets_log_level(library_log_level: Text) -> None:
|
|
409
|
+
"""Set the log level of websockets.
|
|
389
410
|
|
|
390
411
|
Uses the library specific log level or the general libraries log level.
|
|
391
412
|
"""
|
|
392
|
-
log_level = os.environ.get(
|
|
393
|
-
logging.getLogger("
|
|
394
|
-
logging.getLogger("
|
|
413
|
+
log_level = os.environ.get(ENV_LOG_LEVEL_LIBRARIES, library_log_level)
|
|
414
|
+
logging.getLogger("websockets").setLevel(log_level)
|
|
415
|
+
logging.getLogger("websockets").propagate = False
|
|
395
416
|
|
|
396
417
|
|
|
397
418
|
def sort_list_of_dicts_by_first_key(dicts: List[Dict]) -> List[Dict]:
|
rasa/utils/endpoints.py
CHANGED
|
@@ -190,7 +190,13 @@ class EndpointConfig:
|
|
|
190
190
|
sslcontext = None
|
|
191
191
|
if self.cafile:
|
|
192
192
|
try:
|
|
193
|
-
|
|
193
|
+
# create a SSL context with the provided CA file
|
|
194
|
+
# and set the minimum TLS version to 1.2
|
|
195
|
+
# Purpose is set to SERVER_AUTH to verify the server's certificate
|
|
196
|
+
sslcontext = ssl.create_default_context(
|
|
197
|
+
purpose=ssl.Purpose.SERVER_AUTH, cafile=self.cafile
|
|
198
|
+
)
|
|
199
|
+
sslcontext.minimum_version = ssl.TLSVersion.TLSv1_2
|
|
194
200
|
except FileNotFoundError as e:
|
|
195
201
|
raise FileNotFoundException(
|
|
196
202
|
f"Failed to find certificate file, "
|
|
@@ -233,6 +239,21 @@ class EndpointConfig:
|
|
|
233
239
|
**self.kwargs,
|
|
234
240
|
)
|
|
235
241
|
|
|
242
|
+
def to_dict(self) -> Dict[Text, Any]:
|
|
243
|
+
"""Convert the endpoint config to a dictionary."""
|
|
244
|
+
data = {
|
|
245
|
+
"url": self.url,
|
|
246
|
+
"params": self.params,
|
|
247
|
+
"headers": self.headers,
|
|
248
|
+
"basic_auth": self.basic_auth,
|
|
249
|
+
"token": self.token,
|
|
250
|
+
"token_name": self.token_name,
|
|
251
|
+
"cafile": self.cafile,
|
|
252
|
+
"actions_module": self.actions_module,
|
|
253
|
+
}
|
|
254
|
+
data.update(self.kwargs)
|
|
255
|
+
return data
|
|
256
|
+
|
|
236
257
|
def __eq__(self, other: Any) -> bool:
|
|
237
258
|
if isinstance(self, type(other)):
|
|
238
259
|
return (
|
rasa/utils/licensing.py
CHANGED
|
@@ -15,12 +15,10 @@ from dotenv import dotenv_values
|
|
|
15
15
|
from sanic import Sanic
|
|
16
16
|
|
|
17
17
|
from rasa import telemetry
|
|
18
|
-
from rasa.core import jobs
|
|
19
18
|
from rasa.shared.utils.cli import print_error_and_exit
|
|
20
19
|
|
|
21
20
|
if typing.TYPE_CHECKING:
|
|
22
|
-
from rasa.core.tracker_store import TrackerStore
|
|
23
|
-
|
|
21
|
+
from rasa.core.tracker_stores.tracker_store import TrackerStore
|
|
24
22
|
|
|
25
23
|
LICENSE_ENV_VAR = "RASA_PRO_LICENSE"
|
|
26
24
|
ALGORITHM = "RS256"
|
|
@@ -506,6 +504,7 @@ async def _schedule_conversation_counting(
|
|
|
506
504
|
app: Sanic, tracker_store: Optional["TrackerStore"], max_number_conversations: int
|
|
507
505
|
) -> None:
|
|
508
506
|
"""Schedule a job counting the number of conversations in the current month."""
|
|
507
|
+
from rasa.core import jobs
|
|
509
508
|
|
|
510
509
|
async def conversation_counting_job(
|
|
511
510
|
app: Sanic,
|
rasa/utils/log_utils.py
CHANGED
|
@@ -3,14 +3,13 @@ from __future__ import annotations
|
|
|
3
3
|
import logging
|
|
4
4
|
import os
|
|
5
5
|
import sys
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Optional
|
|
7
7
|
|
|
8
8
|
import structlog
|
|
9
9
|
from structlog.dev import ConsoleRenderer
|
|
10
10
|
from structlog.typing import EventDict, WrappedLogger
|
|
11
11
|
from structlog_sentry import SentryProcessor
|
|
12
12
|
|
|
13
|
-
from rasa.plugin import plugin_manager
|
|
14
13
|
from rasa.shared.constants import (
|
|
15
14
|
DEFAULT_LOG_LEVEL,
|
|
16
15
|
DEFAULT_LOG_LEVEL_LLM,
|
|
@@ -35,48 +34,6 @@ class HumanConsoleRenderer(ConsoleRenderer):
|
|
|
35
34
|
return super().__call__(logger, name, event_dict)
|
|
36
35
|
|
|
37
36
|
|
|
38
|
-
def _anonymizer(
|
|
39
|
-
_: structlog.BoundLogger, __: str, event_dict: Dict[str, Any]
|
|
40
|
-
) -> Dict[str, Any]:
|
|
41
|
-
"""Anonymizes event dict."""
|
|
42
|
-
anonymizable_keys = [
|
|
43
|
-
"text",
|
|
44
|
-
"response_text",
|
|
45
|
-
"user_text",
|
|
46
|
-
"slots",
|
|
47
|
-
"parse_data_text",
|
|
48
|
-
"parse_data_entities",
|
|
49
|
-
"prediction_events",
|
|
50
|
-
"tracker_latest_message",
|
|
51
|
-
"prefilled_slots",
|
|
52
|
-
"message",
|
|
53
|
-
"response",
|
|
54
|
-
"slot_candidates",
|
|
55
|
-
"rasa_event",
|
|
56
|
-
"rasa_events",
|
|
57
|
-
"tracker_states",
|
|
58
|
-
"current_states",
|
|
59
|
-
"old_states",
|
|
60
|
-
"current_states",
|
|
61
|
-
"successes",
|
|
62
|
-
"current_entity",
|
|
63
|
-
"next_entity",
|
|
64
|
-
"states",
|
|
65
|
-
"entity",
|
|
66
|
-
"token_text",
|
|
67
|
-
"user_message",
|
|
68
|
-
"json_message",
|
|
69
|
-
]
|
|
70
|
-
anonymization_pipeline = plugin_manager().hook.get_anonymization_pipeline()
|
|
71
|
-
|
|
72
|
-
if anonymization_pipeline:
|
|
73
|
-
for key in anonymizable_keys:
|
|
74
|
-
if key in event_dict:
|
|
75
|
-
anonymized_value = anonymization_pipeline.log_run(event_dict[key])
|
|
76
|
-
event_dict[key] = anonymized_value
|
|
77
|
-
return event_dict
|
|
78
|
-
|
|
79
|
-
|
|
80
37
|
def configure_structlog(
|
|
81
38
|
log_level: Optional[int] = None,
|
|
82
39
|
include_time: bool = False,
|
|
@@ -95,7 +52,6 @@ def configure_structlog(
|
|
|
95
52
|
)
|
|
96
53
|
|
|
97
54
|
shared_processors = [
|
|
98
|
-
_anonymizer,
|
|
99
55
|
# Processors that have nothing to do with output,
|
|
100
56
|
# e.g., add timestamps or log level names.
|
|
101
57
|
# If log level is too low, abort pipeline and throw away log entry.
|
rasa/validator.py
CHANGED
|
@@ -1014,11 +1014,6 @@ class Validator:
|
|
|
1014
1014
|
for sv in slot_value
|
|
1015
1015
|
]
|
|
1016
1016
|
if not all(slot_values_validity):
|
|
1017
|
-
invalid_slot_values = [
|
|
1018
|
-
sv
|
|
1019
|
-
for (sv, slot_value_valid) in zip(slot_value, slot_values_validity)
|
|
1020
|
-
if not slot_value_valid
|
|
1021
|
-
]
|
|
1022
1017
|
structlogger.error(
|
|
1023
1018
|
"validator.verify_predicates.link.invalid_condition",
|
|
1024
1019
|
step=step_id,
|
|
@@ -1027,8 +1022,7 @@ class Validator:
|
|
|
1027
1022
|
event_info=(
|
|
1028
1023
|
f"Detected invalid condition '{link_condition}' "
|
|
1029
1024
|
f"at step '{step_id}' for flow id '{flow_id}'. "
|
|
1030
|
-
f"
|
|
1031
|
-
f"for slot {slot_name}. "
|
|
1025
|
+
f"The condition contains invalid values for slot {slot_name}. "
|
|
1032
1026
|
f"Please make sure that all conditions are valid."
|
|
1033
1027
|
),
|
|
1034
1028
|
)
|
|
@@ -1998,7 +1992,7 @@ class Validator:
|
|
|
1998
1992
|
"validator.validate_conditional_response_variation_predicates.invalid_slot",
|
|
1999
1993
|
utter=utter_name,
|
|
2000
1994
|
event_info=(
|
|
2001
|
-
f"Detected invalid slot '{slot_namespace[
|
|
1995
|
+
f"Detected invalid slot '{slot_namespace[0]}' in "
|
|
2002
1996
|
f"condition '{condition}' for response variation "
|
|
2003
1997
|
f"'{utter_name}'. Please make sure that all slots "
|
|
2004
1998
|
f"are specified in the domain file."
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.0
|
|
4
4
|
Summary: State-of-the-art open-core Conversational AI framework for Enterprises that natively leverages generative AI for effortless assistant development.
|
|
5
5
|
Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
|
|
6
6
|
Author: Rasa Technologies GmbH
|
|
@@ -18,11 +18,12 @@ Provides-Extra: full
|
|
|
18
18
|
Provides-Extra: gh-release-notes
|
|
19
19
|
Provides-Extra: jieba
|
|
20
20
|
Provides-Extra: metal
|
|
21
|
+
Provides-Extra: pii
|
|
21
22
|
Provides-Extra: spacy
|
|
22
23
|
Provides-Extra: transformers
|
|
23
24
|
Requires-Dist: CacheControl (>=0.14.2,<0.15.0)
|
|
24
25
|
Requires-Dist: PyJWT[crypto] (>=2.8.0,<3.0.0)
|
|
25
|
-
Requires-Dist: SQLAlchemy (>=2.0.
|
|
26
|
+
Requires-Dist: SQLAlchemy (>=2.0.41,<2.1.0)
|
|
26
27
|
Requires-Dist: absl-py (>=2.0,<2.1)
|
|
27
28
|
Requires-Dist: aio-pika (>=8.2.3,<9.4.4)
|
|
28
29
|
Requires-Dist: aiogram (>=3.15,<3.16)
|
|
@@ -37,7 +38,7 @@ Requires-Dist: colorama (>=0.4.6,<0.5.0) ; sys_platform == "win32"
|
|
|
37
38
|
Requires-Dist: colorclass (>=2.2,<2.3)
|
|
38
39
|
Requires-Dist: coloredlogs (>=15,<16)
|
|
39
40
|
Requires-Dist: colorhash (>=2.0,<2.1.0)
|
|
40
|
-
Requires-Dist: confluent-kafka (>=2.
|
|
41
|
+
Requires-Dist: confluent-kafka (>=2.10.0,<3.0.0)
|
|
41
42
|
Requires-Dist: cryptography (>=44.0.1)
|
|
42
43
|
Requires-Dist: cvg-python-sdk (>=0.5.1,<0.6.0)
|
|
43
44
|
Requires-Dist: dask (>=2024.7.0,<2024.8.0)
|
|
@@ -45,10 +46,10 @@ Requires-Dist: demoji (>=1.1.0,<2.0.0)
|
|
|
45
46
|
Requires-Dist: diskcache (>=5.6.3,<5.7.0)
|
|
46
47
|
Requires-Dist: dnspython (==2.6.1)
|
|
47
48
|
Requires-Dist: faiss-cpu (>=1.7.4,<2.0.0)
|
|
48
|
-
Requires-Dist: faker (>=26.0.0,<27.0.0)
|
|
49
49
|
Requires-Dist: fbmessenger (>=6.0.0,<6.1.0)
|
|
50
50
|
Requires-Dist: github3.py (>=3.2.0,<3.3.0) ; extra == "gh-release-notes"
|
|
51
51
|
Requires-Dist: gitpython (>=3.1.41,<3.2.0) ; extra == "full"
|
|
52
|
+
Requires-Dist: gliner (>=0.2.20,<0.3.0) ; extra == "pii"
|
|
52
53
|
Requires-Dist: google-auth (>=2.23.4,<3)
|
|
53
54
|
Requires-Dist: google-cloud-storage (>=2.14.0,<2.15.0)
|
|
54
55
|
Requires-Dist: hvac (>=1.2.1,<2.0.0)
|
|
@@ -68,6 +69,7 @@ Requires-Dist: matplotlib (>=3.7,<3.8)
|
|
|
68
69
|
Requires-Dist: mattermostwrapper (>=2.2,<2.3)
|
|
69
70
|
Requires-Dist: networkx (>=3.1,<3.2)
|
|
70
71
|
Requires-Dist: numpy (>=1.26.4,<1.27.0)
|
|
72
|
+
Requires-Dist: onnxruntime (==1.19.2) ; extra == "pii"
|
|
71
73
|
Requires-Dist: openai (>=1.68.2,<1.69.0)
|
|
72
74
|
Requires-Dist: openpyxl (>=3.1.5,<4.0.0)
|
|
73
75
|
Requires-Dist: opentelemetry-api (>=1.16.0,<1.17.0)
|
|
@@ -78,13 +80,10 @@ Requires-Dist: packaging (>=23.2,<23.3)
|
|
|
78
80
|
Requires-Dist: pep440-version-utils (>=1.1.0,<1.2.0)
|
|
79
81
|
Requires-Dist: pluggy (>=1.2.0,<2.0.0)
|
|
80
82
|
Requires-Dist: portalocker (>=2.7.0,<3.0.0)
|
|
81
|
-
Requires-Dist: presidio-analyzer (>=2.2.33,<2.2.34)
|
|
82
|
-
Requires-Dist: presidio-anonymizer (>=2.2.354,<3.0.0)
|
|
83
83
|
Requires-Dist: prompt-toolkit (>=3.0.28,<3.0.29)
|
|
84
84
|
Requires-Dist: protobuf (>=4.25.8,<4.26.0)
|
|
85
85
|
Requires-Dist: psutil (>=5.9.5,<6.0.0)
|
|
86
|
-
Requires-Dist: psycopg2-binary (>=2.9.
|
|
87
|
-
Requires-Dist: pycountry (>=22.3.5,<23.0.0)
|
|
86
|
+
Requires-Dist: psycopg2-binary (>=2.9.10,<2.10.0)
|
|
88
87
|
Requires-Dist: pydot (>=1.4,<1.5)
|
|
89
88
|
Requires-Dist: pykwalify (>=1.8,<1.9)
|
|
90
89
|
Requires-Dist: pymilvus (>=2.4.1,<2.4.2)
|
|
@@ -92,7 +91,7 @@ Requires-Dist: pymongo (>=4.10.1,<4.11.0)
|
|
|
92
91
|
Requires-Dist: pypred (>=0.4.0,<0.5.0)
|
|
93
92
|
Requires-Dist: python-dateutil (>=2.8.2,<2.9.0)
|
|
94
93
|
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
|
|
95
|
-
Requires-Dist: python-engineio (>=4.
|
|
94
|
+
Requires-Dist: python-engineio (>=4.12.2,<4.13.0)
|
|
96
95
|
Requires-Dist: python-keycloak (>=3.12.0,<4.0.0)
|
|
97
96
|
Requires-Dist: python-socketio (>=5.8,<6)
|
|
98
97
|
Requires-Dist: pytz (>=2022.7.1,<2023.0)
|
|
@@ -100,7 +99,7 @@ Requires-Dist: pyyaml (>=6.0)
|
|
|
100
99
|
Requires-Dist: qdrant-client (>=1.9.1,<1.10.0)
|
|
101
100
|
Requires-Dist: questionary (>=1.10.0,<2.1.0)
|
|
102
101
|
Requires-Dist: randomname (>=0.2.1,<0.3.0)
|
|
103
|
-
Requires-Dist: rasa-sdk (==3.
|
|
102
|
+
Requires-Dist: rasa-sdk (==3.13.0)
|
|
104
103
|
Requires-Dist: redis (>=4.6.0,<6.0)
|
|
105
104
|
Requires-Dist: regex (>=2024.7.24,<2024.8.0)
|
|
106
105
|
Requires-Dist: requests (>=2.32.3,<2.33.0)
|
|
@@ -138,7 +137,7 @@ Requires-Dist: tensorflow_hub (>=0.13.0,<0.14.0)
|
|
|
138
137
|
Requires-Dist: terminaltables (>=3.1.10,<3.2.0)
|
|
139
138
|
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
|
140
139
|
Requires-Dist: tqdm (>=4.66.2,<5.0.0)
|
|
141
|
-
Requires-Dist: transformers (>=4.
|
|
140
|
+
Requires-Dist: transformers (>=4.38.2,<4.39.0) ; extra == "transformers" or extra == "full"
|
|
142
141
|
Requires-Dist: twilio (>=8.4,<8.5)
|
|
143
142
|
Requires-Dist: types-protobuf (==4.25.0.20240417)
|
|
144
143
|
Requires-Dist: typing-extensions (>=4.7.1,<5.0.0)
|
|
@@ -146,7 +145,7 @@ Requires-Dist: typing-utils (>=0.1.0,<0.2.0)
|
|
|
146
145
|
Requires-Dist: ujson (>=5.8,<6.0)
|
|
147
146
|
Requires-Dist: webexteamssdk (>=1.6.1,<1.7.0)
|
|
148
147
|
Requires-Dist: websockets (>=10.4,<11.0)
|
|
149
|
-
Requires-Dist: wheel (>=0.
|
|
148
|
+
Requires-Dist: wheel (>=0.40.0)
|
|
150
149
|
Project-URL: Documentation, https://rasa.com/docs
|
|
151
150
|
Project-URL: Homepage, https://rasa.com
|
|
152
151
|
Project-URL: Repository, https://github.com/rasahq/rasa
|