xpander-sdk 2.0.149__tar.gz → 2.0.150__tar.gz
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.
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/PKG-INFO +1 -1
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/setup.py +1 -1
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/tools_repository_module.py +6 -2
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk.egg-info/PKG-INFO +1 -1
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/LICENSE +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/README.md +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/pyproject.toml +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/setup.cfg +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/consts/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/consts/api_routes.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/core/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/core/module_base.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/core/state.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/core/xpander_api_client.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/exceptions/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/exceptions/module_exception.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/configuration.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/events.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/frameworks.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/shared.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/models/user.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/agents_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/agent.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/agent_list.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/knowledge_bases.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/sub_modules/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/sub_modules/agent.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/utils/generic.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/backend_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/agno.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/dispatch.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/utils/mcp_oauth.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_boot.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_shutdown.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_task.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/events_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/models/deployments.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/models/events.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/utils/generic.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/utils/git_init.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/knowledge_bases_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/models/knowledge_bases.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/sub_modules/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/sub_modules/knowledge_base.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/sub_modules/knowledge_base_document_item.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/models/task.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/models/tasks_list.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/sub_modules/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/sub_modules/task.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/tasks_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/utils/files.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/decorators/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/decorators/register_tool.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/models/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/models/mcp.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/models/tool_invocation_result.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/sub_modules/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/sub_modules/tool.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/utils/generic.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/utils/local_tools.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/utils/schemas.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/utils/__init__.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/utils/env.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/utils/event_loop.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/utils/tools.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk.egg-info/SOURCES.txt +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk.egg-info/dependency_links.txt +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk.egg-info/requires.txt +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk.egg-info/top_level.txt +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_agents_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_api_client.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_backend_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_boot_shutdown_handlers.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_configuration.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_knowledge_bases_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_tasks_module.py +0 -0
- {xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/tests/test_tools_repository.py +0 -0
|
@@ -16,7 +16,7 @@ from xpander_sdk.models.configuration import Configuration
|
|
|
16
16
|
from xpander_sdk.models.shared import XPanderSharedModel
|
|
17
17
|
from xpander_sdk.modules.tools_repository.sub_modules.tool import Tool
|
|
18
18
|
from xpander_sdk.utils.event_loop import run_sync
|
|
19
|
-
|
|
19
|
+
import json
|
|
20
20
|
|
|
21
21
|
class ToolsRepository(XPanderSharedModel):
|
|
22
22
|
"""
|
|
@@ -51,7 +51,7 @@ class ToolsRepository(XPanderSharedModel):
|
|
|
51
51
|
tools: List[Tool] = []
|
|
52
52
|
|
|
53
53
|
agent_graph: Optional[Any] = None
|
|
54
|
-
is_async: Optional[bool] =
|
|
54
|
+
is_async: Optional[bool] = True
|
|
55
55
|
|
|
56
56
|
# Immutable registry for tools defined via decorator
|
|
57
57
|
_local_tools: ClassVar[List[Tool]] = []
|
|
@@ -158,6 +158,10 @@ class ToolsRepository(XPanderSharedModel):
|
|
|
158
158
|
fn_list = []
|
|
159
159
|
|
|
160
160
|
for tool in self.list:
|
|
161
|
+
|
|
162
|
+
# add json schema to the model doc
|
|
163
|
+
tool.schema.__doc__ = "Pay attention to the schema, dont miss. " + json.dumps(tool.schema.model_json_schema(mode="serialization"))
|
|
164
|
+
|
|
161
165
|
schema_cls: Type[BaseModel] = tool.schema
|
|
162
166
|
|
|
163
167
|
# Create closure to capture tool and schema_cls
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/agent_list.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/models/knowledge_bases.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/sub_modules/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/sub_modules/agent.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/agents/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/backend_module.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/agno.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/frameworks/dispatch.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/utils/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/backend/utils/mcp_oauth.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_boot.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_shutdown.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/decorators/on_task.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/models/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/models/deployments.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/events/utils/git_init.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/knowledge_bases/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/models/tasks_list.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/sub_modules/__init__.py
RENAMED
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tasks/sub_modules/task.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xpander_sdk-2.0.149 → xpander_sdk-2.0.150}/src/xpander_sdk/modules/tools_repository/models/mcp.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|