nosible 0.3.2__tar.gz → 0.3.3__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.
Files changed (26) hide show
  1. {nosible-0.3.2/src/nosible.egg-info → nosible-0.3.3}/PKG-INFO +1 -1
  2. {nosible-0.3.2 → nosible-0.3.3}/pyproject.toml +1 -1
  3. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/nosible_client.py +0 -20
  4. {nosible-0.3.2 → nosible-0.3.3/src/nosible.egg-info}/PKG-INFO +1 -1
  5. {nosible-0.3.2 → nosible-0.3.3}/LICENSE +0 -0
  6. {nosible-0.3.2 → nosible-0.3.3}/README.md +0 -0
  7. {nosible-0.3.2 → nosible-0.3.3}/setup.cfg +0 -0
  8. {nosible-0.3.2 → nosible-0.3.3}/setup.py +0 -0
  9. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/__init__.py +0 -0
  10. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/result.py +0 -0
  11. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/result_set.py +0 -0
  12. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/search.py +0 -0
  13. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/search_set.py +0 -0
  14. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/snippet.py +0 -0
  15. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/snippet_set.py +0 -0
  16. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/classes/web_page.py +0 -0
  17. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/utils/json_tools.py +0 -0
  18. {nosible-0.3.2 → nosible-0.3.3}/src/nosible/utils/rate_limiter.py +0 -0
  19. {nosible-0.3.2 → nosible-0.3.3}/src/nosible.egg-info/SOURCES.txt +0 -0
  20. {nosible-0.3.2 → nosible-0.3.3}/src/nosible.egg-info/dependency_links.txt +0 -0
  21. {nosible-0.3.2 → nosible-0.3.3}/src/nosible.egg-info/requires.txt +0 -0
  22. {nosible-0.3.2 → nosible-0.3.3}/src/nosible.egg-info/top_level.txt +0 -0
  23. {nosible-0.3.2 → nosible-0.3.3}/tests/test_01_nosible.py +0 -0
  24. {nosible-0.3.2 → nosible-0.3.3}/tests/test_02_results.py +0 -0
  25. {nosible-0.3.2 → nosible-0.3.3}/tests/test_03_search_searchset.py +0 -0
  26. {nosible-0.3.2 → nosible-0.3.3}/tests/test_04_snippets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible-py
6
6
  Author: Stuart Reid, Matthew Dicks, Richard Taylor, Gareth Warburton
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nosible"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "Python client for the NOSIBLE Search API"
5
5
  readme = { file = "README.md", content-type = "text/markdown" }
6
6
  requires-python = ">=3.9"
@@ -265,7 +265,6 @@ class Nosible:
265
265
  def search(
266
266
  self,
267
267
  prompt: str = None,
268
- recursions: int = 3,
269
268
  agent: str = "cybernaut-1",
270
269
  ) -> ResultSet:
271
270
  """
@@ -277,8 +276,6 @@ class Nosible:
277
276
  ----------
278
277
  prompt: str
279
278
  The information you are looking for.
280
- recursions: int
281
- Maximum chain-of-search length.
282
279
  agent: str
283
280
  The search agent you want to use.
284
281
 
@@ -287,11 +284,6 @@ class Nosible:
287
284
  ResultSet
288
285
  The results of the search.
289
286
 
290
- Raises
291
- ------
292
- ValueError
293
- If `recursions` is not [3,10].
294
-
295
287
  Examples
296
288
  --------
297
289
  >>> from nosible import Nosible
@@ -299,21 +291,9 @@ class Nosible:
299
291
  ... results = nos.search("Interesting news from AI startups last week.")
300
292
  ... print(isinstance(results, ResultSet))
301
293
  True
302
- >>> with Nosible() as nos:
303
- ... results = nos.search(
304
- ... prompt="Interesting news from AI startups last week.",
305
- ... recursions=20
306
- ... ) # doctest: +ELLIPSIS
307
- Traceback (most recent call last):
308
- ...
309
- ValueError: Recursions must be [3,10].
310
294
  """
311
- if recursions < 3 or recursions > 10:
312
- raise ValueError("Recursions must be [3,10].")
313
-
314
295
  payload = {
315
296
  "prompt": prompt,
316
- "recursions": recursions,
317
297
  "agent": agent,
318
298
  }
319
299
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible-py
6
6
  Author: Stuart Reid, Matthew Dicks, Richard Taylor, Gareth Warburton
File without changes
File without changes
File without changes
File without changes
File without changes