langroid 0.1.129__tar.gz → 0.1.131__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.
- {langroid-0.1.129 → langroid-0.1.131}/PKG-INFO +10 -17
- {langroid-0.1.129 → langroid-0.1.131}/README.md +9 -16
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/task.py +1 -1
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/openai_gpt.py +10 -2
- {langroid-0.1.129 → langroid-0.1.131}/pyproject.toml +1 -1
- {langroid-0.1.129 → langroid-0.1.131}/LICENSE +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/batch.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/chat_document.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/helpers.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/junk +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/recipient_validator_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tool_message.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/agent_config.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/cachedb/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/embedding_models/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/embedding_models/models.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/config.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/openai_assistants.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/utils.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/mytypes.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/config.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/json.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/parser.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/search.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/spider.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/urls.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/utils.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/parsing/web_search.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/prompts/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/prompts/dialog.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/prompts/templates.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/prompts/transforms.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/configuration.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/constants.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/docker.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/globals.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/logging.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/output/printing.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/system.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/web/login.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/utils/web/selenium_login.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/base.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/momento.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.1.129 → langroid-0.1.131}/langroid/vector_store/qdrantdb.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: langroid
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.131
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
License: MIT
|
6
6
|
Author: Prasad Chalasani
|
@@ -137,6 +137,12 @@ into simplifying the developer experience; it does not use `Langchain`.
|
|
137
137
|
We welcome contributions -- See the [contributions](./CONTRIBUTING.md) document
|
138
138
|
for ideas on what to contribute.
|
139
139
|
|
140
|
+
|
141
|
+
Building LLM Applications? Prasad Chalasani is available for consulting
|
142
|
+
(advisory/development): pchalasani at gmail dot com.
|
143
|
+
|
144
|
+
Sponsorship is also accepted via [GitHub Sponsors](https://github.com/sponsors/langroid)
|
145
|
+
|
140
146
|
**Questions, Feedback, Ideas? Join us on [Discord](https://discord.gg/ZU36McDgDs)!**
|
141
147
|
|
142
148
|
# Quick glimpse of coding with Langroid
|
@@ -470,14 +476,13 @@ Please follow these steps to setup the container:
|
|
470
476
|
|
471
477
|
```bash
|
472
478
|
# get the .env file template from `langroid` repo
|
473
|
-
wget https://
|
479
|
+
wget -O .env https://raw.githubusercontent.com/langroid/langroid/main/.env-template
|
474
480
|
|
475
|
-
# Edit the .env file with your favorite editor (here nano),
|
476
|
-
# and add API keys as explained above
|
481
|
+
# Edit the .env file with your favorite editor (here nano), and remove any un-used settings. E.g. there are "dummy" values like "your-redis-port" etc -- if you are not using them, you MUST remove them.
|
477
482
|
nano .env
|
478
483
|
|
479
484
|
# launch the container
|
480
|
-
docker run -it -v ./.env
|
485
|
+
docker run -it --rm -v ./.env:/langroid/.env langroid/langroid
|
481
486
|
|
482
487
|
# Use this command to run any of the scripts in the `examples` directory
|
483
488
|
python examples/<Path/To/Example.py>
|
@@ -902,20 +907,8 @@ If you like this project, please give it a star ⭐ and 📢 spread the word in
|
|
902
907
|
[](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Flangroid%2Flangroid&t=Harness%20LLMs%20with%20Multi-Agent%20Programming)
|
903
908
|
[](https://www.reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Flangroid%2Flangroid&title=Harness%20LLMs%20with%20Multi-Agent%20Programming)
|
904
909
|
|
905
|
-
|
906
|
-
|
907
|
-
|
908
910
|
Your support will help build Langroid's momentum and community.
|
909
911
|
|
910
|
-
If you are looking to build LLM applications,
|
911
|
-
Prasad Chalasani is available for consulting (advisory or development):
|
912
|
-
pchalasani at gmail dot com.
|
913
|
-
|
914
|
-
|
915
|
-
Sponsorship is also accepted via [GitHub Sponsors](https://github.com/sponsors/langroid)
|
916
|
-
|
917
|
-
|
918
|
-
|
919
912
|
# Langroid Co-Founders
|
920
913
|
|
921
914
|
- [Prasad Chalasani](https://www.linkedin.com/in/pchalasani/) (IIT BTech/CS, CMU PhD/ML; Independent ML Consultant)
|
@@ -48,6 +48,12 @@ into simplifying the developer experience; it does not use `Langchain`.
|
|
48
48
|
We welcome contributions -- See the [contributions](./CONTRIBUTING.md) document
|
49
49
|
for ideas on what to contribute.
|
50
50
|
|
51
|
+
|
52
|
+
Building LLM Applications? Prasad Chalasani is available for consulting
|
53
|
+
(advisory/development): pchalasani at gmail dot com.
|
54
|
+
|
55
|
+
Sponsorship is also accepted via [GitHub Sponsors](https://github.com/sponsors/langroid)
|
56
|
+
|
51
57
|
**Questions, Feedback, Ideas? Join us on [Discord](https://discord.gg/ZU36McDgDs)!**
|
52
58
|
|
53
59
|
# Quick glimpse of coding with Langroid
|
@@ -381,14 +387,13 @@ Please follow these steps to setup the container:
|
|
381
387
|
|
382
388
|
```bash
|
383
389
|
# get the .env file template from `langroid` repo
|
384
|
-
wget https://
|
390
|
+
wget -O .env https://raw.githubusercontent.com/langroid/langroid/main/.env-template
|
385
391
|
|
386
|
-
# Edit the .env file with your favorite editor (here nano),
|
387
|
-
# and add API keys as explained above
|
392
|
+
# Edit the .env file with your favorite editor (here nano), and remove any un-used settings. E.g. there are "dummy" values like "your-redis-port" etc -- if you are not using them, you MUST remove them.
|
388
393
|
nano .env
|
389
394
|
|
390
395
|
# launch the container
|
391
|
-
docker run -it -v ./.env
|
396
|
+
docker run -it --rm -v ./.env:/langroid/.env langroid/langroid
|
392
397
|
|
393
398
|
# Use this command to run any of the scripts in the `examples` directory
|
394
399
|
python examples/<Path/To/Example.py>
|
@@ -813,20 +818,8 @@ If you like this project, please give it a star ⭐ and 📢 spread the word in
|
|
813
818
|
[](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Flangroid%2Flangroid&t=Harness%20LLMs%20with%20Multi-Agent%20Programming)
|
814
819
|
[](https://www.reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Flangroid%2Flangroid&title=Harness%20LLMs%20with%20Multi-Agent%20Programming)
|
815
820
|
|
816
|
-
|
817
|
-
|
818
|
-
|
819
821
|
Your support will help build Langroid's momentum and community.
|
820
822
|
|
821
|
-
If you are looking to build LLM applications,
|
822
|
-
Prasad Chalasani is available for consulting (advisory or development):
|
823
|
-
pchalasani at gmail dot com.
|
824
|
-
|
825
|
-
|
826
|
-
Sponsorship is also accepted via [GitHub Sponsors](https://github.com/sponsors/langroid)
|
827
|
-
|
828
|
-
|
829
|
-
|
830
823
|
# Langroid Co-Founders
|
831
824
|
|
832
825
|
- [Prasad Chalasani](https://www.linkedin.com/in/pchalasani/) (IIT BTech/CS, CMU PhD/ML; Independent ML Consultant)
|
@@ -61,7 +61,7 @@ class Task:
|
|
61
61
|
single_round: bool = False,
|
62
62
|
system_message: str = "",
|
63
63
|
user_message: str | None = "",
|
64
|
-
restart: bool =
|
64
|
+
restart: bool = True,
|
65
65
|
default_human_response: Optional[str] = None,
|
66
66
|
interactive: bool = True,
|
67
67
|
only_user_quits_root: bool = True,
|
@@ -227,10 +227,18 @@ class OpenAIGPT(LanguageModel):
|
|
227
227
|
|
228
228
|
self.cache: MomentoCache | RedisCache
|
229
229
|
if settings.cache_type == "momento":
|
230
|
-
config.cache_config
|
230
|
+
if config.cache_config is None or isinstance(
|
231
|
+
config.cache_config, RedisCacheConfig
|
232
|
+
):
|
233
|
+
# switch to fresh momento config if needed
|
234
|
+
config.cache_config = MomentoCacheConfig()
|
231
235
|
self.cache = MomentoCache(config.cache_config)
|
232
236
|
else:
|
233
|
-
config.cache_config
|
237
|
+
if config.cache_config is None or isinstance(
|
238
|
+
config.cache_config, MomentoCacheConfig
|
239
|
+
):
|
240
|
+
# switch to fresh redis config if needed
|
241
|
+
config.cache_config = RedisCacheConfig()
|
234
242
|
self.cache = RedisCache(config.cache_config)
|
235
243
|
|
236
244
|
self.config._validate_litellm()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langroid-0.1.129 → langroid-0.1.131}/langroid/agent/special/sql/utils/description_extractors.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langroid-0.1.129 → langroid-0.1.131}/langroid/language_models/prompt_formatter/llama2_formatter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|