xpander-sdk 2.0.148__py3-none-any.whl → 2.0.150__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,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] = False
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xpander-sdk
3
- Version: 2.0.148
3
+ Version: 2.0.150
4
4
  Summary: xpander.ai Backend-as-a-service for AI Agents - SDK
5
5
  Home-page: https://www.xpander.ai
6
6
  Author: xpanderAI
@@ -392,9 +392,9 @@ except ModuleException as e:
392
392
  ## 🤝 Contributing
393
393
 
394
394
  1. Fork the repository
395
- 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
396
- 3. Commit your changes (`git commit -m 'Add amazing feature'`)
397
- 4. Push to the branch (`git push origin feature/amazing-feature`)
395
+ 2. Create a feature branch (`git checkout -b feature/{base_branch}/amazing-feature`)
396
+ 3. Commit your changes (`git commit -m 'feat/chore/fix: Add amazing feature'`)
397
+ 4. Push to the branch (`git push origin feature/{base_branch}/amazing-feature`)
398
398
  5. Open a Pull Request
399
399
 
400
400
  ## 📄 License
@@ -61,7 +61,7 @@ xpander_sdk/modules/tasks/sub_modules/task.py,sha256=32aQYYthC8wsL0Glgs23rrfgCUa
61
61
  xpander_sdk/modules/tasks/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  xpander_sdk/modules/tasks/utils/files.py,sha256=KqqwSQSrwim2-H3XP5wOadDDfngAyEI034tA7Oon-vc,3631
63
63
  xpander_sdk/modules/tools_repository/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
- xpander_sdk/modules/tools_repository/tools_repository_module.py,sha256=HZ6rjLHxvCjMvCcMjFRtKU_qv89P_BEwExOKWLgDyfc,9331
64
+ xpander_sdk/modules/tools_repository/tools_repository_module.py,sha256=HpiOtsJwIeyDqb1499X4FuRUdh8v-mQZQlQ2Zlgq1lY,9557
65
65
  xpander_sdk/modules/tools_repository/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  xpander_sdk/modules/tools_repository/decorators/register_tool.py,sha256=ep-BlJHmqvG7zcW6l-hz_V0ZJx3PGfNqdijw6VjUGek,4078
67
67
  xpander_sdk/modules/tools_repository/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -77,8 +77,8 @@ xpander_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
77
77
  xpander_sdk/utils/env.py,sha256=U_zIhqWgKs5fk2-HXjAaODj4oWMc5dRQ0fvw6fqVcFk,1522
78
78
  xpander_sdk/utils/event_loop.py,sha256=kJrN0upgBhyI86tkTdfHeajznrIZl44Rl6WDiDG3GHE,2516
79
79
  xpander_sdk/utils/tools.py,sha256=lyFkq2yP7DxBkyXYVlnFRwDhQCvf0fZZMDm5fBycze4,1244
80
- xpander_sdk-2.0.148.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
81
- xpander_sdk-2.0.148.dist-info/METADATA,sha256=bGkdvyE0Fxu7Ck5CwX8HTR1H70TGYTt7tZmFKKA_3E4,11557
82
- xpander_sdk-2.0.148.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- xpander_sdk-2.0.148.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
84
- xpander_sdk-2.0.148.dist-info/RECORD,,
80
+ xpander_sdk-2.0.150.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
81
+ xpander_sdk-2.0.150.dist-info/METADATA,sha256=-W1ehCCdnMpNpcUeOHSCvqsL5U6OMrCLVqVZ6WdWAD8,11601
82
+ xpander_sdk-2.0.150.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ xpander_sdk-2.0.150.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
84
+ xpander_sdk-2.0.150.dist-info/RECORD,,