hamtaa-texttools 1.1.20__py3-none-any.whl → 1.1.21__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.
Files changed (31) hide show
  1. {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/METADATA +8 -27
  2. hamtaa_texttools-1.1.21.dist-info/RECORD +32 -0
  3. texttools/batch/batch_config.py +14 -1
  4. texttools/batch/batch_runner.py +1 -1
  5. texttools/internals/async_operator.py +45 -79
  6. texttools/internals/models.py +74 -105
  7. texttools/internals/operator_utils.py +2 -26
  8. texttools/internals/prompt_loader.py +3 -20
  9. texttools/internals/sync_operator.py +44 -78
  10. texttools/prompts/README.md +2 -2
  11. texttools/prompts/categorize.yaml +35 -77
  12. texttools/prompts/check_fact.yaml +2 -2
  13. texttools/prompts/extract_entities.yaml +2 -2
  14. texttools/prompts/extract_keywords.yaml +6 -6
  15. texttools/prompts/is_question.yaml +2 -2
  16. texttools/prompts/merge_questions.yaml +4 -4
  17. texttools/prompts/propositionize.yaml +2 -2
  18. texttools/prompts/rewrite.yaml +6 -6
  19. texttools/prompts/run_custom.yaml +1 -1
  20. texttools/prompts/subject_to_question.yaml +2 -2
  21. texttools/prompts/summarize.yaml +2 -2
  22. texttools/prompts/text_to_question.yaml +2 -2
  23. texttools/prompts/translate.yaml +2 -2
  24. texttools/tools/async_tools.py +393 -485
  25. texttools/tools/sync_tools.py +394 -486
  26. hamtaa_texttools-1.1.20.dist-info/RECORD +0 -33
  27. texttools/batch/internals/utils.py +0 -13
  28. {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/WHEEL +0 -0
  29. {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/licenses/LICENSE +0 -0
  30. {hamtaa_texttools-1.1.20.dist-info → hamtaa_texttools-1.1.21.dist-info}/top_level.txt +0 -0
  31. /texttools/batch/{internals/batch_manager.py → batch_manager.py} +0 -0
@@ -5,11 +5,11 @@ main_template: |
5
5
  {{"result": "string"}}
6
6
  Don't translate proper name, only transliterate them to {target_language}
7
7
  Translate the following text to {target_language}:
8
- {input}
8
+ {text}
9
9
 
10
10
  analyze_template: |
11
11
  Analyze the following text and identify important linguistic considerations for translation.
12
12
  Point out any idioms, cultural references, or complex structures that need special attention.
13
13
  Also, list all proper nouns that should not be translated. Write your analysis in the {target_language}.
14
- {input}
14
+ {text}
15
15