langroid 0.1.130__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.130 → langroid-0.1.131}/PKG-INFO +4 -5
- {langroid-0.1.130 → langroid-0.1.131}/README.md +3 -4
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/openai_gpt.py +10 -2
- {langroid-0.1.130 → langroid-0.1.131}/pyproject.toml +1 -1
- {langroid-0.1.130 → langroid-0.1.131}/LICENSE +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/batch.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/chat_document.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/helpers.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/junk +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/recipient_validator_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/task.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tool_message.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/agent_config.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/cachedb/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/embedding_models/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/embedding_models/models.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/config.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/openai_assistants.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/language_models/utils.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/mytypes.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/config.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/json.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/parser.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/search.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/spider.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/urls.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/utils.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/parsing/web_search.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/prompts/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/prompts/dialog.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/prompts/templates.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/prompts/transforms.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/configuration.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/constants.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/docker.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/globals.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/logging.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/output/printing.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/system.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/web/login.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/utils/web/selenium_login.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/base.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/momento.py +0 -0
- {langroid-0.1.130 → langroid-0.1.131}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.1.130 → 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
|
@@ -476,14 +476,13 @@ Please follow these steps to setup the container:
|
|
476
476
|
|
477
477
|
```bash
|
478
478
|
# get the .env file template from `langroid` repo
|
479
|
-
wget https://
|
479
|
+
wget -O .env https://raw.githubusercontent.com/langroid/langroid/main/.env-template
|
480
480
|
|
481
|
-
# Edit the .env file with your favorite editor (here nano),
|
482
|
-
# 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.
|
483
482
|
nano .env
|
484
483
|
|
485
484
|
# launch the container
|
486
|
-
docker run -it -v ./.env
|
485
|
+
docker run -it --rm -v ./.env:/langroid/.env langroid/langroid
|
487
486
|
|
488
487
|
# Use this command to run any of the scripts in the `examples` directory
|
489
488
|
python examples/<Path/To/Example.py>
|
@@ -387,14 +387,13 @@ Please follow these steps to setup the container:
|
|
387
387
|
|
388
388
|
```bash
|
389
389
|
# get the .env file template from `langroid` repo
|
390
|
-
wget https://
|
390
|
+
wget -O .env https://raw.githubusercontent.com/langroid/langroid/main/.env-template
|
391
391
|
|
392
|
-
# Edit the .env file with your favorite editor (here nano),
|
393
|
-
# 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.
|
394
393
|
nano .env
|
395
394
|
|
396
395
|
# launch the container
|
397
|
-
docker run -it -v ./.env
|
396
|
+
docker run -it --rm -v ./.env:/langroid/.env langroid/langroid
|
398
397
|
|
399
398
|
# Use this command to run any of the scripts in the `examples` directory
|
400
399
|
python examples/<Path/To/Example.py>
|
@@ -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.130 → 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
|
File without changes
|
{langroid-0.1.130 → 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
|