langroid 0.33.6__tar.gz → 0.33.8__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 (128) hide show
  1. langroid-0.33.8/.gitignore +144 -0
  2. {langroid-0.33.6 → langroid-0.33.8}/PKG-INFO +95 -94
  3. langroid-0.33.8/langroid/__init__.py +106 -0
  4. langroid-0.33.8/langroid/agent/__init__.py +41 -0
  5. langroid-0.33.8/langroid/agent/base.py +1983 -0
  6. langroid-0.33.8/langroid/agent/batch.py +398 -0
  7. langroid-0.33.8/langroid/agent/callbacks/chainlit.py +598 -0
  8. langroid-0.33.8/langroid/agent/chat_agent.py +1899 -0
  9. langroid-0.33.8/langroid/agent/chat_document.py +454 -0
  10. langroid-0.33.8/langroid/agent/openai_assistant.py +882 -0
  11. langroid-0.33.8/langroid/agent/special/__init__.py +59 -0
  12. langroid-0.33.8/langroid/agent/special/arangodb/__init__.py +0 -0
  13. langroid-0.33.8/langroid/agent/special/arangodb/arangodb_agent.py +656 -0
  14. langroid-0.33.8/langroid/agent/special/arangodb/system_messages.py +186 -0
  15. langroid-0.33.8/langroid/agent/special/arangodb/tools.py +107 -0
  16. langroid-0.33.8/langroid/agent/special/arangodb/utils.py +36 -0
  17. langroid-0.33.8/langroid/agent/special/doc_chat_agent.py +1466 -0
  18. langroid-0.33.8/langroid/agent/special/lance_doc_chat_agent.py +262 -0
  19. langroid-0.33.8/langroid/agent/special/lance_rag/__init__.py +9 -0
  20. langroid-0.33.8/langroid/agent/special/lance_rag/critic_agent.py +198 -0
  21. langroid-0.33.8/langroid/agent/special/lance_rag/lance_rag_task.py +82 -0
  22. langroid-0.33.8/langroid/agent/special/lance_rag/query_planner_agent.py +260 -0
  23. langroid-0.33.8/langroid/agent/special/lance_tools.py +61 -0
  24. langroid-0.33.8/langroid/agent/special/neo4j/__init__.py +0 -0
  25. langroid-0.33.8/langroid/agent/special/neo4j/csv_kg_chat.py +174 -0
  26. langroid-0.33.8/langroid/agent/special/neo4j/neo4j_chat_agent.py +433 -0
  27. langroid-0.33.8/langroid/agent/special/neo4j/system_messages.py +120 -0
  28. langroid-0.33.8/langroid/agent/special/neo4j/tools.py +32 -0
  29. langroid-0.33.8/langroid/agent/special/relevance_extractor_agent.py +127 -0
  30. langroid-0.33.8/langroid/agent/special/retriever_agent.py +56 -0
  31. langroid-0.33.8/langroid/agent/special/sql/__init__.py +17 -0
  32. langroid-0.33.8/langroid/agent/special/sql/sql_chat_agent.py +654 -0
  33. langroid-0.33.8/langroid/agent/special/sql/utils/__init__.py +21 -0
  34. langroid-0.33.8/langroid/agent/special/sql/utils/description_extractors.py +190 -0
  35. langroid-0.33.8/langroid/agent/special/sql/utils/populate_metadata.py +85 -0
  36. langroid-0.33.8/langroid/agent/special/sql/utils/system_message.py +35 -0
  37. langroid-0.33.8/langroid/agent/special/sql/utils/tools.py +64 -0
  38. langroid-0.33.8/langroid/agent/special/table_chat_agent.py +263 -0
  39. langroid-0.33.8/langroid/agent/task.py +2099 -0
  40. langroid-0.33.8/langroid/agent/tool_message.py +393 -0
  41. langroid-0.33.8/langroid/agent/tools/__init__.py +38 -0
  42. langroid-0.33.8/langroid/agent/tools/duckduckgo_search_tool.py +50 -0
  43. langroid-0.33.8/langroid/agent/tools/file_tools.py +234 -0
  44. langroid-0.33.8/langroid/agent/tools/google_search_tool.py +39 -0
  45. langroid-0.33.8/langroid/agent/tools/metaphor_search_tool.py +68 -0
  46. langroid-0.33.8/langroid/agent/tools/orchestration.py +303 -0
  47. langroid-0.33.8/langroid/agent/tools/recipient_tool.py +235 -0
  48. langroid-0.33.8/langroid/agent/tools/retrieval_tool.py +32 -0
  49. langroid-0.33.8/langroid/agent/tools/rewind_tool.py +137 -0
  50. langroid-0.33.8/langroid/agent/tools/segment_extract_tool.py +41 -0
  51. langroid-0.33.8/langroid/agent/xml_tool_message.py +382 -0
  52. langroid-0.33.8/langroid/cachedb/__init__.py +17 -0
  53. langroid-0.33.8/langroid/cachedb/base.py +58 -0
  54. langroid-0.33.8/langroid/cachedb/momento_cachedb.py +108 -0
  55. langroid-0.33.8/langroid/cachedb/redis_cachedb.py +153 -0
  56. langroid-0.33.8/langroid/embedding_models/__init__.py +39 -0
  57. langroid-0.33.8/langroid/embedding_models/base.py +74 -0
  58. langroid-0.33.8/langroid/embedding_models/models.py +461 -0
  59. langroid-0.33.8/langroid/embedding_models/protoc/__init__.py +0 -0
  60. langroid-0.33.8/langroid/embedding_models/protoc/embeddings.proto +19 -0
  61. langroid-0.33.8/langroid/embedding_models/protoc/embeddings_pb2.py +33 -0
  62. langroid-0.33.8/langroid/embedding_models/protoc/embeddings_pb2.pyi +50 -0
  63. langroid-0.33.8/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +79 -0
  64. langroid-0.33.8/langroid/embedding_models/remote_embeds.py +153 -0
  65. langroid-0.33.8/langroid/exceptions.py +71 -0
  66. langroid-0.33.8/langroid/language_models/__init__.py +53 -0
  67. langroid-0.33.8/langroid/language_models/azure_openai.py +153 -0
  68. langroid-0.33.8/langroid/language_models/base.py +678 -0
  69. langroid-0.33.8/langroid/language_models/config.py +18 -0
  70. langroid-0.33.8/langroid/language_models/mock_lm.py +124 -0
  71. langroid-0.33.8/langroid/language_models/openai_gpt.py +1964 -0
  72. langroid-0.33.8/langroid/language_models/prompt_formatter/__init__.py +16 -0
  73. langroid-0.33.8/langroid/language_models/prompt_formatter/base.py +40 -0
  74. langroid-0.33.8/langroid/language_models/prompt_formatter/hf_formatter.py +132 -0
  75. langroid-0.33.8/langroid/language_models/prompt_formatter/llama2_formatter.py +75 -0
  76. langroid-0.33.8/langroid/language_models/utils.py +151 -0
  77. langroid-0.33.8/langroid/mytypes.py +84 -0
  78. langroid-0.33.8/langroid/parsing/__init__.py +52 -0
  79. langroid-0.33.8/langroid/parsing/agent_chats.py +38 -0
  80. langroid-0.33.8/langroid/parsing/code_parser.py +121 -0
  81. langroid-0.33.8/langroid/parsing/document_parser.py +718 -0
  82. langroid-0.33.8/langroid/parsing/para_sentence_split.py +62 -0
  83. langroid-0.33.8/langroid/parsing/parse_json.py +155 -0
  84. langroid-0.33.8/langroid/parsing/parser.py +313 -0
  85. langroid-0.33.8/langroid/parsing/repo_loader.py +790 -0
  86. langroid-0.33.8/langroid/parsing/routing.py +36 -0
  87. langroid-0.33.8/langroid/parsing/search.py +275 -0
  88. langroid-0.33.8/langroid/parsing/spider.py +102 -0
  89. langroid-0.33.8/langroid/parsing/table_loader.py +94 -0
  90. langroid-0.33.8/langroid/parsing/url_loader.py +115 -0
  91. langroid-0.33.8/langroid/parsing/urls.py +273 -0
  92. langroid-0.33.8/langroid/parsing/utils.py +373 -0
  93. langroid-0.33.8/langroid/parsing/web_search.py +156 -0
  94. langroid-0.33.8/langroid/prompts/__init__.py +9 -0
  95. langroid-0.33.8/langroid/prompts/dialog.py +17 -0
  96. langroid-0.33.8/langroid/prompts/prompts_config.py +5 -0
  97. langroid-0.33.8/langroid/prompts/templates.py +141 -0
  98. langroid-0.33.8/langroid/py.typed +0 -0
  99. langroid-0.33.8/langroid/pydantic_v1/__init__.py +10 -0
  100. langroid-0.33.8/langroid/pydantic_v1/main.py +4 -0
  101. langroid-0.33.8/langroid/utils/__init__.py +19 -0
  102. langroid-0.33.8/langroid/utils/algorithms/__init__.py +3 -0
  103. langroid-0.33.8/langroid/utils/algorithms/graph.py +103 -0
  104. langroid-0.33.8/langroid/utils/configuration.py +98 -0
  105. langroid-0.33.8/langroid/utils/constants.py +30 -0
  106. langroid-0.33.8/langroid/utils/git_utils.py +252 -0
  107. langroid-0.33.8/langroid/utils/globals.py +49 -0
  108. langroid-0.33.8/langroid/utils/logging.py +135 -0
  109. langroid-0.33.8/langroid/utils/object_registry.py +66 -0
  110. langroid-0.33.8/langroid/utils/output/__init__.py +20 -0
  111. langroid-0.33.8/langroid/utils/output/citations.py +41 -0
  112. langroid-0.33.8/langroid/utils/output/printing.py +99 -0
  113. langroid-0.33.8/langroid/utils/output/status.py +40 -0
  114. langroid-0.33.8/langroid/utils/pandas_utils.py +30 -0
  115. langroid-0.33.8/langroid/utils/pydantic_utils.py +602 -0
  116. langroid-0.33.8/langroid/utils/system.py +286 -0
  117. langroid-0.33.8/langroid/utils/types.py +93 -0
  118. langroid-0.33.8/langroid/vector_store/__init__.py +50 -0
  119. langroid-0.33.8/langroid/vector_store/base.py +359 -0
  120. langroid-0.33.8/langroid/vector_store/chromadb.py +214 -0
  121. langroid-0.33.8/langroid/vector_store/lancedb.py +406 -0
  122. langroid-0.33.8/langroid/vector_store/meilisearch.py +299 -0
  123. langroid-0.33.8/langroid/vector_store/momento.py +278 -0
  124. langroid-0.33.8/langroid/vector_store/qdrantdb.py +468 -0
  125. {langroid-0.33.6 → langroid-0.33.8}/pyproject.toml +67 -104
  126. {langroid-0.33.6 → langroid-0.33.8}/LICENSE +0 -0
  127. {langroid-0.33.6 → langroid-0.33.8}/README.md +0 -0
  128. /langroid-0.33.6/langroid/py.typed → /langroid-0.33.8/langroid/agent/callbacks/__init__.py +0 -0
@@ -0,0 +1,144 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ .logs/
10
+ **/logs/
11
+ **/*.log
12
+ .idea/
13
+ .qdrant/
14
+ .DS_Store
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ downloads/
22
+ eggs/
23
+ .eggs/
24
+ lib/
25
+ lib64/
26
+ parts/
27
+ sdist/
28
+ var/
29
+ wheels/
30
+ pip-wheel-metadata/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+
61
+ # Translations
62
+ *.mo
63
+ *.pot
64
+
65
+ # Django stuff:
66
+ *.log
67
+ local_settings.py
68
+ db.sqlite3
69
+ db.sqlite3-journal
70
+
71
+ # Flask stuff:
72
+ instance/
73
+ .webassets-cache
74
+
75
+ # Scrapy stuff:
76
+ .scrapy
77
+
78
+ # Sphinx documentation
79
+ docs/_build/
80
+
81
+ # PyBuilder
82
+ target/
83
+
84
+ # Jupyter Notebook
85
+ .ipynb_checkpoints
86
+
87
+ # IPython
88
+ profile_default/
89
+ ipython_config.py
90
+
91
+ # pyenv
92
+ .python-version
93
+
94
+ # pipenv
95
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
97
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
98
+ # install all needed dependencies.
99
+ #Pipfile.lock
100
+
101
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
102
+ __pypackages__/
103
+
104
+ # Celery stuff
105
+ celerybeat-schedule
106
+ celerybeat.pid
107
+
108
+ # SageMath parsed files
109
+ *.sage.py
110
+
111
+ # Environments
112
+ .env
113
+ .venv
114
+ env/
115
+ venv/
116
+ ENV/
117
+ env.bak/
118
+ venv.bak/
119
+
120
+ # Spyder project settings
121
+ .spyderproject
122
+ .spyproject
123
+
124
+ # Rope project settings
125
+ .ropeproject
126
+
127
+ # mkdocs documentation
128
+ /site
129
+
130
+ # mypy
131
+ .mypy_cache/
132
+ .dmypy.json
133
+ dmypy.json
134
+
135
+ # Pyre type checker
136
+ .pyre/
137
+
138
+
139
+ .vscode
140
+
141
+ # Emacs
142
+ *~
143
+ \#*\#
144
+ .\#*
@@ -1,9 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: langroid
3
- Version: 0.33.6
3
+ Version: 0.33.8
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
- Author-Email: Prasad Chalasani <pchalasani@gmail.com>
5
+ Author-email: Prasad Chalasani <pchalasani@gmail.com>
6
6
  License: MIT
7
+ License-File: LICENSE
7
8
  Requires-Python: <3.13,>=3.10
8
9
  Requires-Dist: adb-cloud-connector<2.0.0,>=1.0.2
9
10
  Requires-Dist: aiohttp<4.0.0,>=3.9.1
@@ -42,111 +43,111 @@ Requires-Dist: pyyaml<7.0.0,>=6.0.1
42
43
  Requires-Dist: qdrant-client<2.0.0,>=1.8.0
43
44
  Requires-Dist: rank-bm25<1.0.0,>=0.2.2
44
45
  Requires-Dist: redis<6.0.0,>=5.0.1
45
- Requires-Dist: requests<3.0.0,>=2.31.0
46
46
  Requires-Dist: requests-oauthlib<2.0.0,>=1.3.1
47
+ Requires-Dist: requests<3.0.0,>=2.31.0
47
48
  Requires-Dist: rich<14.0.0,>=13.3.4
48
49
  Requires-Dist: thefuzz<1.0.0,>=0.20.0
49
50
  Requires-Dist: tiktoken<1.0.0,>=0.7.0
50
51
  Requires-Dist: trafilatura<2.0.0,>=1.5.0
51
52
  Requires-Dist: typer<1.0.0,>=0.9.0
52
53
  Requires-Dist: wget<4.0,>=3.2
54
+ Provides-Extra: all
55
+ Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == 'all'
56
+ Requires-Dist: chainlit<3.0.0,>=2.0.1; extra == 'all'
57
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == 'all'
58
+ Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == 'all'
59
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == 'all'
60
+ Requires-Dist: litellm<2.0.0,>=1.30.1; extra == 'all'
61
+ Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == 'all'
62
+ Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == 'all'
63
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == 'all'
64
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == 'all'
65
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == 'all'
66
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == 'all'
67
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == 'all'
68
+ Requires-Dist: pypdf>=5.1.0; extra == 'all'
69
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == 'all'
70
+ Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == 'all'
71
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == 'all'
72
+ Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == 'all'
73
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == 'all'
74
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == 'all'
75
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == 'all'
76
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == 'all'
77
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == 'all'
78
+ Provides-Extra: arango
79
+ Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == 'arango'
80
+ Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == 'arango'
81
+ Provides-Extra: chainlit
82
+ Requires-Dist: chainlit<3.0.0,>=2.0.1; extra == 'chainlit'
83
+ Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == 'chainlit'
84
+ Provides-Extra: chromadb
85
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == 'chromadb'
86
+ Provides-Extra: db
87
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == 'db'
88
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == 'db'
89
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == 'db'
53
90
  Provides-Extra: doc-chat
54
- Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "doc-chat"
55
- Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "doc-chat"
56
- Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "doc-chat"
57
- Requires-Dist: pypdf>=5.1.0; extra == "doc-chat"
58
- Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "doc-chat"
59
- Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "doc-chat"
60
- Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "doc-chat"
91
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == 'doc-chat'
92
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == 'doc-chat'
93
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == 'doc-chat'
94
+ Requires-Dist: pypdf>=5.1.0; extra == 'doc-chat'
95
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == 'doc-chat'
96
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == 'doc-chat'
97
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == 'doc-chat'
98
+ Provides-Extra: docx
99
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == 'docx'
100
+ Provides-Extra: fastembed
101
+ Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == 'fastembed'
102
+ Provides-Extra: hf-embeddings
103
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == 'hf-embeddings'
104
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == 'hf-embeddings'
61
105
  Provides-Extra: hf-transformers
62
- Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "hf-transformers"
63
- Requires-Dist: torch<3.0.0,>=2.0.0; extra == "hf-transformers"
64
- Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "hf-transformers"
65
- Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "hf-transformers"
66
- Provides-Extra: vecdbs
67
- Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == "vecdbs"
68
- Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == "vecdbs"
69
- Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == "vecdbs"
70
- Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "vecdbs"
71
- Provides-Extra: db
72
- Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "db"
73
- Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "db"
74
- Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "db"
75
- Provides-Extra: all
76
- Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "all"
77
- Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "all"
78
- Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "all"
79
- Requires-Dist: pypdf>=5.1.0; extra == "all"
80
- Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "all"
81
- Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "all"
82
- Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "all"
83
- Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "all"
84
- Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "all"
85
- Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "all"
86
- Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "all"
87
- Requires-Dist: torch<3.0.0,>=2.0.0; extra == "all"
88
- Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "all"
89
- Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "all"
90
- Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "all"
91
- Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == "all"
92
- Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == "all"
93
- Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == "all"
94
- Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == "all"
95
- Requires-Dist: litellm<2.0.0,>=1.30.1; extra == "all"
96
- Requires-Dist: chainlit<3.0.0,>=2.0.1; extra == "all"
97
- Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == "all"
98
- Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == "all"
106
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == 'hf-transformers'
107
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == 'hf-transformers'
108
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == 'hf-transformers'
109
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == 'hf-transformers'
99
110
  Provides-Extra: lancedb
100
- Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == "lancedb"
101
- Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == "lancedb"
102
- Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == "lancedb"
111
+ Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == 'lancedb'
112
+ Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == 'lancedb'
113
+ Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == 'lancedb'
114
+ Provides-Extra: litellm
115
+ Requires-Dist: litellm<2.0.0,>=1.30.1; extra == 'litellm'
116
+ Provides-Extra: meilisearch
117
+ Requires-Dist: meilisearch-python-sdk<3.0.0,>=2.2.3; extra == 'meilisearch'
118
+ Provides-Extra: metaphor
119
+ Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == 'metaphor'
120
+ Provides-Extra: momento
121
+ Requires-Dist: momento<1.21.0,>=1.10.2; extra == 'momento'
122
+ Provides-Extra: mysql
123
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == 'mysql'
124
+ Provides-Extra: neo4j
125
+ Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == 'neo4j'
103
126
  Provides-Extra: pdf-parsers
104
- Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "pdf-parsers"
105
- Requires-Dist: pypdf>=5.1.0; extra == "pdf-parsers"
106
- Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "pdf-parsers"
107
- Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "pdf-parsers"
108
- Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "pdf-parsers"
109
- Provides-Extra: docx
110
- Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "docx"
127
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == 'pdf-parsers'
128
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == 'pdf-parsers'
129
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == 'pdf-parsers'
130
+ Requires-Dist: pypdf>=5.1.0; extra == 'pdf-parsers'
131
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == 'pdf-parsers'
132
+ Provides-Extra: postgres
133
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == 'postgres'
111
134
  Provides-Extra: scrapy
112
- Requires-Dist: scrapy<3.0.0,>=2.11.0; extra == "scrapy"
113
- Provides-Extra: hf-embeddings
114
- Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "hf-embeddings"
115
- Requires-Dist: torch<3.0.0,>=2.0.0; extra == "hf-embeddings"
135
+ Requires-Dist: scrapy<3.0.0,>=2.11.0; extra == 'scrapy'
136
+ Provides-Extra: sql
137
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == 'sql'
138
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == 'sql'
139
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == 'sql'
116
140
  Provides-Extra: transformers
117
- Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "transformers"
118
- Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "transformers"
119
- Requires-Dist: torch<3.0.0,>=2.0.0; extra == "transformers"
141
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == 'transformers'
142
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == 'transformers'
143
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == 'transformers'
120
144
  Provides-Extra: unstructured
121
- Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "unstructured"
122
- Provides-Extra: postgres
123
- Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "postgres"
124
- Provides-Extra: mysql
125
- Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "mysql"
126
- Provides-Extra: sql
127
- Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "sql"
128
- Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "sql"
129
- Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "sql"
130
- Provides-Extra: litellm
131
- Requires-Dist: litellm<2.0.0,>=1.30.1; extra == "litellm"
132
- Provides-Extra: neo4j
133
- Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == "neo4j"
134
- Provides-Extra: arango
135
- Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == "arango"
136
- Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == "arango"
137
- Provides-Extra: metaphor
138
- Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == "metaphor"
139
- Provides-Extra: chainlit
140
- Requires-Dist: chainlit<3.0.0,>=2.0.1; extra == "chainlit"
141
- Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == "chainlit"
142
- Provides-Extra: chromadb
143
- Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "chromadb"
144
- Provides-Extra: meilisearch
145
- Requires-Dist: meilisearch-python-sdk<3.0.0,>=2.2.3; extra == "meilisearch"
146
- Provides-Extra: momento
147
- Requires-Dist: momento<1.21.0,>=1.10.2; extra == "momento"
148
- Provides-Extra: fastembed
149
- Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == "fastembed"
145
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == 'unstructured'
146
+ Provides-Extra: vecdbs
147
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == 'vecdbs'
148
+ Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == 'vecdbs'
149
+ Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == 'vecdbs'
150
+ Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == 'vecdbs'
150
151
  Description-Content-Type: text/markdown
151
152
 
152
153
  <div align="center">
@@ -0,0 +1,106 @@
1
+ """
2
+ Main langroid package
3
+ """
4
+
5
+ from . import mytypes
6
+ from . import utils
7
+
8
+ from . import parsing
9
+ from . import prompts
10
+ from . import cachedb
11
+
12
+ from . import language_models
13
+ from . import embedding_models
14
+
15
+ from . import vector_store
16
+ from . import agent
17
+
18
+ from .agent.base import (
19
+ Agent,
20
+ AgentConfig,
21
+ )
22
+
23
+ from .agent.batch import (
24
+ run_batch_tasks,
25
+ llm_response_batch,
26
+ agent_response_batch,
27
+ )
28
+
29
+ from .agent.chat_document import (
30
+ StatusCode,
31
+ ChatDocument,
32
+ ChatDocMetaData,
33
+ )
34
+
35
+ from .agent.tool_message import (
36
+ ToolMessage,
37
+ )
38
+
39
+ from .agent.chat_agent import (
40
+ ChatAgent,
41
+ ChatAgentConfig,
42
+ )
43
+
44
+ from .agent.task import Task, TaskConfig
45
+
46
+
47
+ from .mytypes import (
48
+ DocMetaData,
49
+ Document,
50
+ Entity,
51
+ )
52
+
53
+ from .exceptions import InfiniteLoopException
54
+ from .exceptions import LangroidImportError
55
+
56
+ __all__ = [
57
+ "mytypes",
58
+ "exceptions",
59
+ "utils",
60
+ "parsing",
61
+ "prompts",
62
+ "cachedb",
63
+ "language_models",
64
+ "embedding_models",
65
+ "vector_store",
66
+ "agent",
67
+ "Agent",
68
+ "AgentConfig",
69
+ "ChatAgent",
70
+ "ChatAgentConfig",
71
+ "StatusCode",
72
+ "ChatDocument",
73
+ "ChatDocMetaData",
74
+ "Task",
75
+ "TaskConfig",
76
+ "DocMetaData",
77
+ "Document",
78
+ "Entity",
79
+ "ToolMessage",
80
+ "run_batch_tasks",
81
+ "llm_response_batch",
82
+ "agent_response_batch",
83
+ "InfiniteLoopException",
84
+ "LangroidImportError",
85
+ ]
86
+
87
+
88
+ try:
89
+ from .agent.callbacks.chainlit import (
90
+ ChainlitAgentCallbacks,
91
+ ChainlitTaskCallbacks,
92
+ ChainlitCallbackConfig,
93
+ )
94
+
95
+ ChainlitAgentCallbacks
96
+ ChainlitTaskCallbacks
97
+ ChainlitCallbackConfig
98
+ __all__.extend(
99
+ [
100
+ "ChainlitAgentCallbacks",
101
+ "ChainlitTaskCallbacks",
102
+ "ChainlitCallbackConfig",
103
+ ]
104
+ )
105
+ except ImportError:
106
+ pass
@@ -0,0 +1,41 @@
1
+ from .base import Agent, AgentConfig
2
+ from .chat_document import (
3
+ ChatDocAttachment,
4
+ ChatDocMetaData,
5
+ ChatDocLoggerFields,
6
+ ChatDocument,
7
+ )
8
+ from .chat_agent import ChatAgentConfig, ChatAgent
9
+ from .tool_message import ToolMessage
10
+ from .task import Task
11
+
12
+ from . import base
13
+ from . import chat_document
14
+ from . import chat_agent
15
+ from . import task
16
+ from . import batch
17
+ from . import tool_message
18
+ from . import tools
19
+ from . import special
20
+
21
+
22
+ __all__ = [
23
+ "Agent",
24
+ "AgentConfig",
25
+ "ChatDocAttachment",
26
+ "ChatDocMetaData",
27
+ "ChatDocLoggerFields",
28
+ "ChatDocument",
29
+ "ChatAgent",
30
+ "ChatAgentConfig",
31
+ "ToolMessage",
32
+ "Task",
33
+ "base",
34
+ "chat_document",
35
+ "chat_agent",
36
+ "task",
37
+ "batch",
38
+ "tool_message",
39
+ "tools",
40
+ "special",
41
+ ]