rasa-pro 3.14.0.dev11__py3-none-any.whl → 3.14.0.dev13__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/agents/agent_factory.py +1 -1
- rasa/agents/agent_manager.py +2 -1
- rasa/agents/protocol/__init__.py +11 -3
- rasa/core/actions/grpc_custom_action_executor.py +9 -4
- rasa/tracing/instrumentation/attribute_extractors.py +6 -1
- rasa/version.py +1 -1
- {rasa_pro-3.14.0.dev11.dist-info → rasa_pro-3.14.0.dev13.dist-info}/METADATA +8 -14
- {rasa_pro-3.14.0.dev11.dist-info → rasa_pro-3.14.0.dev13.dist-info}/RECORD +11 -11
- {rasa_pro-3.14.0.dev11.dist-info → rasa_pro-3.14.0.dev13.dist-info}/NOTICE +0 -0
- {rasa_pro-3.14.0.dev11.dist-info → rasa_pro-3.14.0.dev13.dist-info}/WHEEL +0 -0
- {rasa_pro-3.14.0.dev11.dist-info → rasa_pro-3.14.0.dev13.dist-info}/entry_points.txt +0 -0
rasa/agents/agent_factory.py
CHANGED
|
@@ -15,7 +15,7 @@ class AgentFactory:
|
|
|
15
15
|
"""Factory for creating agent instances based on the protocol type."""
|
|
16
16
|
|
|
17
17
|
_protocols: ClassVar[Dict[ProtocolType, Type[AgentProtocol]]] = {
|
|
18
|
-
ProtocolType.A2A: A2AAgent,
|
|
18
|
+
**({ProtocolType.A2A: A2AAgent} if A2AAgent is not None else {}),
|
|
19
19
|
ProtocolType.MCP_OPEN: MCPOpenAgent,
|
|
20
20
|
ProtocolType.MCP_TASK: MCPTaskAgent,
|
|
21
21
|
}
|
rasa/agents/agent_manager.py
CHANGED
|
@@ -2,7 +2,6 @@ from typing import ClassVar, Dict
|
|
|
2
2
|
|
|
3
3
|
import structlog
|
|
4
4
|
|
|
5
|
-
from rasa.agents.agent_factory import AgentFactory
|
|
6
5
|
from rasa.agents.core.agent_protocol import AgentProtocol
|
|
7
6
|
from rasa.agents.core.types import AgentIdentifier, ProtocolType
|
|
8
7
|
from rasa.agents.schemas import AgentInput, AgentOutput
|
|
@@ -78,6 +77,8 @@ class AgentManager(metaclass=Singleton):
|
|
|
78
77
|
Raises:
|
|
79
78
|
ConnectionError: If the agent connection fails.
|
|
80
79
|
"""
|
|
80
|
+
from rasa.agents.agent_factory import AgentFactory
|
|
81
|
+
|
|
81
82
|
# Add the agent to the manager
|
|
82
83
|
agent_identifier = make_agent_identifier(agent_name, protocol_type)
|
|
83
84
|
if agent_identifier in self.agents:
|
rasa/agents/protocol/__init__.py
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
# Import agents conditionally based on available dependencies
|
|
2
|
+
__all__ = []
|
|
3
|
+
|
|
4
|
+
try:
|
|
5
|
+
from rasa.agents.protocol.a2a.a2a_agent import A2AAgent
|
|
6
|
+
__all__.append("A2AAgent")
|
|
7
|
+
except ImportError:
|
|
8
|
+
A2AAgent = None
|
|
9
|
+
|
|
10
|
+
# MCP is always available (in default dependencies)
|
|
2
11
|
from rasa.agents.protocol.mcp.mcp_open_agent import MCPOpenAgent
|
|
3
12
|
from rasa.agents.protocol.mcp.mcp_task_agent import MCPTaskAgent
|
|
4
|
-
|
|
5
|
-
__all__ = ["A2AAgent", "MCPOpenAgent", "MCPTaskAgent"]
|
|
13
|
+
__all__.extend(["MCPOpenAgent", "MCPTaskAgent"])
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import importlib.metadata
|
|
1
2
|
import json
|
|
2
3
|
from typing import TYPE_CHECKING, Any, Dict, List, Tuple
|
|
3
4
|
from urllib.parse import urlparse
|
|
@@ -6,7 +7,14 @@ import grpc
|
|
|
6
7
|
import structlog
|
|
7
8
|
from google.protobuf.json_format import MessageToDict, Parse, ParseDict
|
|
8
9
|
from rasa_sdk.grpc_errors import ResourceNotFound, ResourceNotFoundType
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
if importlib.metadata.version("protobuf") >= "5.0.0":
|
|
12
|
+
from rasa_sdk.grpc_py.pb5 import action_webhook_pb2, action_webhook_pb2_grpc
|
|
13
|
+
else:
|
|
14
|
+
from rasa_sdk.grpc_py.pb4 import (
|
|
15
|
+
action_webhook_pb2,
|
|
16
|
+
action_webhook_pb2_grpc,
|
|
17
|
+
)
|
|
10
18
|
|
|
11
19
|
from rasa.core.actions.action_exceptions import DomainNotFound
|
|
12
20
|
from rasa.core.actions.constants import SSL_CLIENT_CERT_FIELD, SSL_CLIENT_KEY_FIELD
|
|
@@ -102,7 +110,6 @@ class GRPCCustomActionExecutor(CustomActionExecutor):
|
|
|
102
110
|
Returns:
|
|
103
111
|
Response from the action server.
|
|
104
112
|
"""
|
|
105
|
-
|
|
106
113
|
request = self._create_payload(
|
|
107
114
|
tracker=tracker, domain=domain, include_domain=include_domain
|
|
108
115
|
)
|
|
@@ -121,7 +128,6 @@ class GRPCCustomActionExecutor(CustomActionExecutor):
|
|
|
121
128
|
Returns:
|
|
122
129
|
Response from the action server.
|
|
123
130
|
"""
|
|
124
|
-
|
|
125
131
|
client = self._create_grpc_client()
|
|
126
132
|
metadata = self._build_metadata()
|
|
127
133
|
try:
|
|
@@ -234,7 +240,6 @@ class GRPCCustomActionExecutor(CustomActionExecutor):
|
|
|
234
240
|
Returns:
|
|
235
241
|
gRPC channel for the action server.
|
|
236
242
|
"""
|
|
237
|
-
|
|
238
243
|
compression = grpc.Compression.Gzip
|
|
239
244
|
|
|
240
245
|
if self.cert_ca:
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import importlib.metadata
|
|
1
2
|
import json
|
|
2
3
|
import logging
|
|
3
4
|
from pathlib import Path
|
|
@@ -5,7 +6,11 @@ from typing import TYPE_CHECKING, Any, Dict, List, Optional, Text, Tuple, Union
|
|
|
5
6
|
|
|
6
7
|
import tiktoken
|
|
7
8
|
from numpy import ndarray
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
if importlib.metadata.version("protobuf") >= "5.0.0":
|
|
11
|
+
from rasa_sdk.grpc_py.pb5 import action_webhook_pb2
|
|
12
|
+
else:
|
|
13
|
+
from rasa_sdk.grpc_py.pb4 import action_webhook_pb2
|
|
9
14
|
|
|
10
15
|
from rasa.core.actions.action import DirectCustomActionExecutor
|
|
11
16
|
from rasa.core.actions.grpc_custom_action_executor import GRPCCustomActionExecutor
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.14.0.
|
|
3
|
+
Version: 3.14.0.dev13
|
|
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
|
|
@@ -70,10 +70,8 @@ Requires-Dist: jsonpatch (>=1.33,<2.0)
|
|
|
70
70
|
Requires-Dist: jsonpickle (>=3.3.0,<3.4)
|
|
71
71
|
Requires-Dist: jsonschema (>=4.22)
|
|
72
72
|
Requires-Dist: keras (==2.14.0) ; (python_version < "3.12") and (extra == "full" or extra == "nlu")
|
|
73
|
-
Requires-Dist: langchain (>=0.2.17,<0.3.0) ;
|
|
74
|
-
Requires-Dist: langchain (>=0.
|
|
75
|
-
Requires-Dist: langchain-community (>=0.2.19,<0.3.0) ; python_version < "3.12"
|
|
76
|
-
Requires-Dist: langchain-community (>=0.3.29,<0.4.0) ; python_version >= "3.12"
|
|
73
|
+
Requires-Dist: langchain (>=0.2.17,<0.3.0) ; extra == "a2a" or extra == "nlu"
|
|
74
|
+
Requires-Dist: langchain-community (>=0.2.19,<0.3.0) ; extra == "a2a" or extra == "nlu"
|
|
77
75
|
Requires-Dist: langcodes (>=3.5.0,<4.0.0)
|
|
78
76
|
Requires-Dist: litellm (>=1.69.0,<1.70.0)
|
|
79
77
|
Requires-Dist: matplotlib (>=3.9.4,<3.10.0)
|
|
@@ -85,24 +83,20 @@ Requires-Dist: numpy (>=1.23.5,<2.2.0)
|
|
|
85
83
|
Requires-Dist: onnxruntime (==1.22.1) ; extra == "full" or extra == "pii"
|
|
86
84
|
Requires-Dist: openai (>=1.68.2,<1.69.0)
|
|
87
85
|
Requires-Dist: openpyxl (>=3.1.5,<4.0.0)
|
|
88
|
-
Requires-Dist: opentelemetry-api (>=1.16.0,<1.17.0) ;
|
|
89
|
-
Requires-Dist: opentelemetry-
|
|
90
|
-
Requires-Dist: opentelemetry-
|
|
91
|
-
Requires-Dist: opentelemetry-exporter-otlp (>=1.33.0,<1.34.0) ; python_version >= "3.12"
|
|
92
|
-
Requires-Dist: opentelemetry-sdk (>=1.16.0,<1.17.0) ; python_version < "3.12"
|
|
93
|
-
Requires-Dist: opentelemetry-sdk (>=1.33.0,<1.34.0) ; python_version >= "3.12"
|
|
86
|
+
Requires-Dist: opentelemetry-api (>=1.16.0,<1.17.0) ; extra == "a2a" or extra == "nlu"
|
|
87
|
+
Requires-Dist: opentelemetry-exporter-otlp (>=1.16.0,<1.17.0) ; extra == "a2a" or extra == "nlu"
|
|
88
|
+
Requires-Dist: opentelemetry-sdk (>=1.16.0,<1.17.0) ; extra == "a2a" or extra == "nlu"
|
|
94
89
|
Requires-Dist: packaging (>=23.2,<23.3)
|
|
95
90
|
Requires-Dist: pep440-version-utils (>=1.1.0,<1.2.0) ; python_version < "3.13"
|
|
96
91
|
Requires-Dist: pluggy (>=1.2.0,<2.0.0)
|
|
97
92
|
Requires-Dist: portalocker (>=2.7.0,<3.0.0)
|
|
98
93
|
Requires-Dist: prompt-toolkit (>=3.0.28,<3.0.29)
|
|
99
|
-
Requires-Dist: protobuf (>=4.25.8,<
|
|
94
|
+
Requires-Dist: protobuf (>=4.25.8,<4.26.0) ; extra == "a2a" or extra == "nlu"
|
|
100
95
|
Requires-Dist: psutil (>=5.9.5,<6.0.0)
|
|
101
96
|
Requires-Dist: psycopg2-binary (>=2.9.10,<2.10.0)
|
|
102
97
|
Requires-Dist: pydot (>=1.4,<1.5)
|
|
103
98
|
Requires-Dist: pykwalify (>=1.8,<1.9)
|
|
104
|
-
Requires-Dist: pymilvus (>=2.4.1,<2.4.2) ;
|
|
105
|
-
Requires-Dist: pymilvus (>=2.6.1,<3.0.0) ; python_version >= "3.12"
|
|
99
|
+
Requires-Dist: pymilvus (>=2.4.1,<2.4.2) ; extra == "a2a" or extra == "nlu"
|
|
106
100
|
Requires-Dist: pymongo (>=4.10.1,<4.11.0)
|
|
107
101
|
Requires-Dist: pypred (>=0.4.0,<0.5.0)
|
|
108
102
|
Requires-Dist: python-dateutil (>=2.8.2,<2.9.0)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
rasa/__init__.py,sha256=YXG8RzVxiSJ__v-AewtV453YoCbmzWlHsU_4S0O2XpE,206
|
|
2
2
|
rasa/__main__.py,sha256=mGGUN4SEhlo0_bXOyFqq8dhlBV9ObqzlR94vywJxYa4,7073
|
|
3
3
|
rasa/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
rasa/agents/agent_factory.py,sha256=
|
|
5
|
-
rasa/agents/agent_manager.py,sha256=
|
|
4
|
+
rasa/agents/agent_factory.py,sha256=q1Kt5BLaaYNxB_RndNAPy4dmRxVBlCBgRZWZBY8VAmE,4720
|
|
5
|
+
rasa/agents/agent_manager.py,sha256=871DFw8B6QoGPEebNoeYan_0_dGBOIcutk8XIQCp1N8,7819
|
|
6
6
|
rasa/agents/constants.py,sha256=YLLRyERT9GJHrhKHrGWYVpT40JP7E-jTpdqI5cNHTYQ,1243
|
|
7
7
|
rasa/agents/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
rasa/agents/core/agent_protocol.py,sha256=BQD9cfE2RDHo1Lte6nvV3e2M_BO_6B8N6elykQBW74s,3388
|
|
9
9
|
rasa/agents/core/types.py,sha256=ccnEfdh5UnHgcJJdRa-x6X2YrdwExxKsT0yFB40Bvt8,2451
|
|
10
10
|
rasa/agents/exceptions.py,sha256=gde7ty-InaeVRIXSbuJoxCFZK6DZSCqGcDBBrxtEVfo,1214
|
|
11
|
-
rasa/agents/protocol/__init__.py,sha256=
|
|
11
|
+
rasa/agents/protocol/__init__.py,sha256=I-9X0JhTOefDK9ap-YDvjB-fDXEtoEiyE7TUGSu2QRs,444
|
|
12
12
|
rasa/agents/protocol/a2a/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
rasa/agents/protocol/a2a/a2a_agent.py,sha256=eoaipZMFuEe3tmxVbbfcUpNrT6giGWbdWnRnlsgCNjM,34564
|
|
14
14
|
rasa/agents/protocol/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -339,7 +339,7 @@ rasa/core/actions/custom_action_executor.py,sha256=qafASBdM3-hByDqbkNxgXfx5yMSsJ
|
|
|
339
339
|
rasa/core/actions/direct_custom_actions_executor.py,sha256=zGHI3cXVRfyzaaGSH7VePXHQxsDAvF0iAZSEcOuM-_M,4026
|
|
340
340
|
rasa/core/actions/e2e_stub_custom_action_executor.py,sha256=D-kECC1QjVLv4owNxstW2xJPPsXTGfGepvquMeWB_ec,2282
|
|
341
341
|
rasa/core/actions/forms.py,sha256=MPGxp3vg-EgFcU5UQYqWM2tycSFIuoF6vWvNSSWPhSA,26967
|
|
342
|
-
rasa/core/actions/grpc_custom_action_executor.py,sha256=
|
|
342
|
+
rasa/core/actions/grpc_custom_action_executor.py,sha256=i06JLPirl2PXXPfI8iatPRZIRB2bsh4CZwx5DrJdB8U,9301
|
|
343
343
|
rasa/core/actions/http_custom_action_executor.py,sha256=oC5OM-p11wHOXXVl7vrTUjhwI6JZh5qCaQpWtl0I0WE,5434
|
|
344
344
|
rasa/core/actions/loops.py,sha256=3-kt_Sn_Y05PLYoYMsnuIn9e5mxYp31DJIx2omqy0dU,3531
|
|
345
345
|
rasa/core/actions/two_stage_fallback.py,sha256=k8PkD25fvH3kThG9lpC6oLMK7o15kV4yEbv2E2nyans,6065
|
|
@@ -1083,7 +1083,7 @@ rasa/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1083
1083
|
rasa/tracing/config.py,sha256=ie1x2UfqPJMmKToy8DeUhK4Yw206tPpZTe-MlqBOu6k,14203
|
|
1084
1084
|
rasa/tracing/constants.py,sha256=l7RUgan0BebsZxZifLDfj9_lWIqdStJ-3Ny-44wTLrM,3690
|
|
1085
1085
|
rasa/tracing/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1086
|
-
rasa/tracing/instrumentation/attribute_extractors.py,sha256=
|
|
1086
|
+
rasa/tracing/instrumentation/attribute_extractors.py,sha256=qwjY_DkreNVtNjgsrUEEWUI1fTa7gqgH0UN-Ei_PBSo,31489
|
|
1087
1087
|
rasa/tracing/instrumentation/instrumentation.py,sha256=c8Yy5p3QmxjViJ0gE0CJyfS39HKtGnAMhrOW4N7yNoQ,58733
|
|
1088
1088
|
rasa/tracing/instrumentation/intentless_policy_instrumentation.py,sha256=vpfF91-2wAtFd78bN-piVca7ctyVCw9Szt5KyemM0vw,4833
|
|
1089
1089
|
rasa/tracing/instrumentation/metrics.py,sha256=gnoATx-Rzb3wcMXNX_qzaGhar1zfogCV5vZhrGPth00,14708
|
|
@@ -1125,9 +1125,9 @@ rasa/utils/train_utils.py,sha256=LJO7mM6ptYvLMZr4HDl3fBkPHb7-BVFXuuZseh4Pp68,224
|
|
|
1125
1125
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
1126
1126
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
1127
1127
|
rasa/validator.py,sha256=1abU_NTP0UTRBNwmSr1Ba0f3tj-rrJdKzeIknF9pynI,83298
|
|
1128
|
-
rasa/version.py,sha256=
|
|
1129
|
-
rasa_pro-3.14.0.
|
|
1130
|
-
rasa_pro-3.14.0.
|
|
1131
|
-
rasa_pro-3.14.0.
|
|
1132
|
-
rasa_pro-3.14.0.
|
|
1133
|
-
rasa_pro-3.14.0.
|
|
1128
|
+
rasa/version.py,sha256=02fVcx93zDNW0hgS-gjfmO8F8xhZJxDWO33d8YUACMQ,123
|
|
1129
|
+
rasa_pro-3.14.0.dev13.dist-info/METADATA,sha256=URU9JndGmMUaCw0EtrmqM249x1r229gdd-ypwNxjS00,12345
|
|
1130
|
+
rasa_pro-3.14.0.dev13.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
1131
|
+
rasa_pro-3.14.0.dev13.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
1132
|
+
rasa_pro-3.14.0.dev13.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
1133
|
+
rasa_pro-3.14.0.dev13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|