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.
@@ -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": "Elitea Postman", "icon_url": "postman.svg"}})
63
+ "label": "Postman", "icon_url": "postman.svg"}})
64
64
  )
65
65
 
66
66
  @check_connection_response