hamtaa-texttools 1.1.15__tar.gz → 1.1.16__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 (40) hide show
  1. {hamtaa_texttools-1.1.15/hamtaa_texttools.egg-info → hamtaa_texttools-1.1.16}/PKG-INFO +10 -8
  2. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/README.md +9 -7
  3. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16/hamtaa_texttools.egg-info}/PKG-INFO +10 -8
  4. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/pyproject.toml +1 -1
  5. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/models.py +1 -1
  6. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/LICENSE +0 -0
  7. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/MANIFEST.in +0 -0
  8. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/hamtaa_texttools.egg-info/SOURCES.txt +0 -0
  9. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/hamtaa_texttools.egg-info/dependency_links.txt +0 -0
  10. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/hamtaa_texttools.egg-info/requires.txt +0 -0
  11. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/hamtaa_texttools.egg-info/top_level.txt +0 -0
  12. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/setup.cfg +0 -0
  13. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/tests/test_all_async_tools.py +0 -0
  14. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/tests/test_all_tools.py +0 -0
  15. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/tests/test_output_validation.py +0 -0
  16. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/__init__.py +0 -0
  17. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/batch/batch_config.py +0 -0
  18. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/batch/batch_runner.py +0 -0
  19. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/batch/internals/batch_manager.py +0 -0
  20. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/batch/internals/utils.py +0 -0
  21. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/README.md +0 -0
  22. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/categorize.yaml +0 -0
  23. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/detect_entity.yaml +0 -0
  24. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/extract_entities.yaml +0 -0
  25. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/extract_keywords.yaml +0 -0
  26. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/is_question.yaml +0 -0
  27. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/merge_questions.yaml +0 -0
  28. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/rewrite.yaml +0 -0
  29. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/run_custom.yaml +0 -0
  30. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/subject_to_question.yaml +0 -0
  31. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/summarize.yaml +0 -0
  32. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/text_to_question.yaml +0 -0
  33. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/prompts/translate.yaml +0 -0
  34. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/async_tools.py +0 -0
  35. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/async_operator.py +0 -0
  36. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/formatters.py +0 -0
  37. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/operator_utils.py +0 -0
  38. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/prompt_loader.py +0 -0
  39. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/internals/sync_operator.py +0 -0
  40. {hamtaa_texttools-1.1.15 → hamtaa_texttools-1.1.16}/texttools/tools/sync_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hamtaa-texttools
3
- Version: 1.1.15
3
+ Version: 1.1.16
4
4
  Summary: A high-level NLP toolkit built on top of modern LLMs.
5
5
  Author-email: Tohidi <the.mohammad.tohidi@gmail.com>, Montazer <montazerh82@gmail.com>, Givechi <mohamad.m.givechi@gmail.com>, MoosaviNejad <erfanmoosavi84@gmail.com>
6
6
  License: MIT License
@@ -92,13 +92,15 @@ TextTools provides several optional flags to customize LLM behavior:
92
92
  ## 🧩 ToolOutput
93
93
 
94
94
  Every tool of `TextTools` returns a `ToolOutput` object which is a BaseModel with attributes:
95
- - **`result (Any)`** → The output of LLM
96
- - **`analysis (str)`** → The reasoning step before generating the final output
97
- - **`logprobs (list)`** → Token-level probabilities for the generated output
98
- - **`process (str)`** → The tool name which processed the input
99
- - **`errors (list[str])`** → Any error that have occured during calling LLM
100
-
101
- **Note:** You can use `repr(ToolOutput)` to see details of an output.
95
+ - **`result: Any`** → The output of LLM
96
+ - **`analysis: str`** → The reasoning step before generating the final output
97
+ - **`logprobs: list`** → Token-level probabilities for the generated output
98
+ - **`process: str`** → The tool name which processed the input
99
+ - **`processed_at: datetime`** → The process time
100
+ - **`execution_time: float`** → The execution time (seconds)
101
+ - **`errors: list[str]`** Any error that have occured during calling LLM
102
+
103
+ **Note:** You can use `repr(ToolOutput)` to see details of your ToolOutput.
102
104
 
103
105
  ---
104
106
 
@@ -57,13 +57,15 @@ TextTools provides several optional flags to customize LLM behavior:
57
57
  ## 🧩 ToolOutput
58
58
 
59
59
  Every tool of `TextTools` returns a `ToolOutput` object which is a BaseModel with attributes:
60
- - **`result (Any)`** → The output of LLM
61
- - **`analysis (str)`** → The reasoning step before generating the final output
62
- - **`logprobs (list)`** → Token-level probabilities for the generated output
63
- - **`process (str)`** → The tool name which processed the input
64
- - **`errors (list[str])`** → Any error that have occured during calling LLM
65
-
66
- **Note:** You can use `repr(ToolOutput)` to see details of an output.
60
+ - **`result: Any`** → The output of LLM
61
+ - **`analysis: str`** → The reasoning step before generating the final output
62
+ - **`logprobs: list`** → Token-level probabilities for the generated output
63
+ - **`process: str`** → The tool name which processed the input
64
+ - **`processed_at: datetime`** → The process time
65
+ - **`execution_time: float`** → The execution time (seconds)
66
+ - **`errors: list[str]`** Any error that have occured during calling LLM
67
+
68
+ **Note:** You can use `repr(ToolOutput)` to see details of your ToolOutput.
67
69
 
68
70
  ---
69
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hamtaa-texttools
3
- Version: 1.1.15
3
+ Version: 1.1.16
4
4
  Summary: A high-level NLP toolkit built on top of modern LLMs.
5
5
  Author-email: Tohidi <the.mohammad.tohidi@gmail.com>, Montazer <montazerh82@gmail.com>, Givechi <mohamad.m.givechi@gmail.com>, MoosaviNejad <erfanmoosavi84@gmail.com>
6
6
  License: MIT License
@@ -92,13 +92,15 @@ TextTools provides several optional flags to customize LLM behavior:
92
92
  ## 🧩 ToolOutput
93
93
 
94
94
  Every tool of `TextTools` returns a `ToolOutput` object which is a BaseModel with attributes:
95
- - **`result (Any)`** → The output of LLM
96
- - **`analysis (str)`** → The reasoning step before generating the final output
97
- - **`logprobs (list)`** → Token-level probabilities for the generated output
98
- - **`process (str)`** → The tool name which processed the input
99
- - **`errors (list[str])`** → Any error that have occured during calling LLM
100
-
101
- **Note:** You can use `repr(ToolOutput)` to see details of an output.
95
+ - **`result: Any`** → The output of LLM
96
+ - **`analysis: str`** → The reasoning step before generating the final output
97
+ - **`logprobs: list`** → Token-level probabilities for the generated output
98
+ - **`process: str`** → The tool name which processed the input
99
+ - **`processed_at: datetime`** → The process time
100
+ - **`execution_time: float`** → The execution time (seconds)
101
+ - **`errors: list[str]`** Any error that have occured during calling LLM
102
+
103
+ **Note:** You can use `repr(ToolOutput)` to see details of your ToolOutput.
102
104
 
103
105
  ---
104
106
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hamtaa-texttools"
7
- version = "1.1.15"
7
+ version = "1.1.16"
8
8
  authors = [
9
9
  { name = "Tohidi", email = "the.mohammad.tohidi@gmail.com" },
10
10
  { name = "Montazer", email = "montazerh82@gmail.com" },
@@ -10,7 +10,7 @@ class ToolOutput(BaseModel):
10
10
  logprobs: list[dict[str, Any]] = []
11
11
  process: str = ""
12
12
  processed_at: datetime = datetime.now()
13
- execution_time: datetime = None
13
+ execution_time: float = -1.0
14
14
  errors: list[str] = []
15
15
 
16
16
  def __repr__(self) -> str: