chatterer 0.1.13__py3-none-any.whl → 0.1.14__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 (36) hide show
  1. chatterer/__init__.py +97 -62
  2. chatterer/common_types/__init__.py +21 -21
  3. chatterer/common_types/io.py +19 -19
  4. chatterer/interactive.py +353 -0
  5. chatterer/language_model.py +454 -577
  6. chatterer/messages.py +21 -9
  7. chatterer/strategies/__init__.py +13 -13
  8. chatterer/strategies/atom_of_thoughts.py +975 -975
  9. chatterer/strategies/base.py +14 -14
  10. chatterer/tools/__init__.py +46 -35
  11. chatterer/tools/{webpage_to_markdown/utils.py → caption_markdown_images.py} +384 -334
  12. chatterer/tools/citation_chunking/__init__.py +3 -3
  13. chatterer/tools/citation_chunking/chunks.py +53 -53
  14. chatterer/tools/citation_chunking/citation_chunker.py +118 -118
  15. chatterer/tools/citation_chunking/citations.py +285 -285
  16. chatterer/tools/citation_chunking/prompt.py +157 -157
  17. chatterer/tools/citation_chunking/reference.py +26 -26
  18. chatterer/tools/citation_chunking/utils.py +138 -138
  19. chatterer/tools/convert_pdf_to_markdown.py +302 -0
  20. chatterer/tools/convert_to_text.py +447 -418
  21. chatterer/tools/upstage_document_parser.py +705 -438
  22. chatterer/tools/{webpage_to_markdown/playwright_bot.py → webpage_to_markdown.py} +739 -649
  23. chatterer/tools/youtube.py +147 -146
  24. chatterer/utils/__init__.py +18 -15
  25. chatterer/utils/{image.py → base64_image.py} +285 -291
  26. chatterer/utils/bytesio.py +59 -59
  27. chatterer/utils/cli.py +476 -0
  28. chatterer/utils/code_agent.py +237 -138
  29. chatterer/utils/imghdr.py +148 -0
  30. chatterer-0.1.14.dist-info/METADATA +387 -0
  31. chatterer-0.1.14.dist-info/RECORD +34 -0
  32. chatterer/tools/webpage_to_markdown/__init__.py +0 -4
  33. chatterer-0.1.13.dist-info/METADATA +0 -171
  34. chatterer-0.1.13.dist-info/RECORD +0 -31
  35. {chatterer-0.1.13.dist-info → chatterer-0.1.14.dist-info}/WHEEL +0 -0
  36. {chatterer-0.1.13.dist-info → chatterer-0.1.14.dist-info}/top_level.txt +0 -0
chatterer/messages.py CHANGED
@@ -1,9 +1,21 @@
1
- from langchain_core.messages import AIMessage, BaseMessage, FunctionMessage, HumanMessage, SystemMessage
2
-
3
- __all__ = [
4
- "AIMessage",
5
- "BaseMessage",
6
- "HumanMessage",
7
- "SystemMessage",
8
- "FunctionMessage",
9
- ]
1
+ from langchain_core.language_models.base import LanguageModelInput
2
+ from langchain_core.messages import (
3
+ AIMessage,
4
+ BaseMessage,
5
+ BaseMessageChunk,
6
+ FunctionMessage,
7
+ HumanMessage,
8
+ SystemMessage,
9
+ )
10
+ from langchain_core.messages.ai import UsageMetadata
11
+
12
+ __all__ = [
13
+ "AIMessage",
14
+ "BaseMessage",
15
+ "HumanMessage",
16
+ "SystemMessage",
17
+ "FunctionMessage",
18
+ "BaseMessageChunk",
19
+ "UsageMetadata",
20
+ "LanguageModelInput",
21
+ ]
@@ -1,13 +1,13 @@
1
- from .atom_of_thoughts import (
2
- AoTPipeline,
3
- AoTStrategy,
4
- AoTPrompter,
5
- )
6
- from .base import BaseStrategy
7
-
8
- __all__ = [
9
- "BaseStrategy",
10
- "AoTPipeline",
11
- "AoTPrompter",
12
- "AoTStrategy",
13
- ]
1
+ from .atom_of_thoughts import (
2
+ AoTPipeline,
3
+ AoTStrategy,
4
+ AoTPrompter,
5
+ )
6
+ from .base import BaseStrategy
7
+
8
+ __all__ = [
9
+ "BaseStrategy",
10
+ "AoTPipeline",
11
+ "AoTPrompter",
12
+ "AoTStrategy",
13
+ ]