alita-sdk 0.3.154__py3-none-any.whl → 0.3.156__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.
- alita_sdk/runtime/langchain/assistant.py +5 -3
- alita_sdk/tools/postman/__init__.py +1 -1
- alita_sdk/tools/postman/api_wrapper.py +651 -1199
- alita_sdk/tools/postman/postman_analysis.py +1133 -0
- {alita_sdk-0.3.154.dist-info → alita_sdk-0.3.156.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.154.dist-info → alita_sdk-0.3.156.dist-info}/RECORD +9 -8
- {alita_sdk-0.3.154.dist-info → alita_sdk-0.3.156.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.154.dist-info → alita_sdk-0.3.156.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.154.dist-info → alita_sdk-0.3.156.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,6 @@ from langchain_core.prompts import MessagesPlaceholder
|
|
16
16
|
from .constants import REACT_ADDON, REACT_VARS, XML_ADDON
|
17
17
|
from .chat_message_template import Jinja2TemplatedChatMessagesTemplate
|
18
18
|
from ..tools.echo import EchoTool
|
19
|
-
from ..toolkits.tools import get_tools
|
20
19
|
from langchain_core.tools import BaseTool, ToolException
|
21
20
|
|
22
21
|
logger = logging.getLogger(__name__)
|
@@ -62,8 +61,11 @@ class Assistant:
|
|
62
61
|
"Review toolkits configuration or use pipeline as master agent.")
|
63
62
|
|
64
63
|
# configure memory store if memory tool is defined
|
65
|
-
memory_tool = next((tool for tool in data['tools'] if tool['type'] == 'memory'), None)
|
66
|
-
self._configure_store(memory_tool)
|
64
|
+
# memory_tool = next((tool for tool in data['tools'] if tool['type'] == 'memory'), None)
|
65
|
+
# self._configure_store(memory_tool)
|
66
|
+
|
67
|
+
# Lazy import to avoid circular dependency
|
68
|
+
from ..toolkits.tools import get_tools
|
67
69
|
self.tools = get_tools(data['tools'], alita_client=alita, llm=self.client, memory_store=self.store)
|
68
70
|
if app_type == "pipeline":
|
69
71
|
self.prompt = data['instructions']
|
@@ -60,7 +60,7 @@ class PostmanToolkit(BaseToolkit):
|
|
60
60
|
selected_tools=(List[Literal[tuple(selected_tools)]], Field(
|
61
61
|
default=[], json_schema_extra={'args_schemas': selected_tools})),
|
62
62
|
__config__=ConfigDict(json_schema_extra={'metadata': {
|
63
|
-
"label": "
|
63
|
+
"label": "Postman", "icon_url": "postman.svg"}})
|
64
64
|
)
|
65
65
|
|
66
66
|
@check_connection_response
|