langroid 0.2.9__tar.gz → 0.2.10__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.2.9 → langroid-0.2.10}/PKG-INFO +3 -1
- {langroid-0.2.9 → langroid-0.2.10}/README.md +2 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/chat_agent.py +2 -1
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/openai_gpt.py +1 -1
- {langroid-0.2.9 → langroid-0.2.10}/pyproject.toml +1 -1
- {langroid-0.2.9 → langroid-0.2.10}/LICENSE +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/batch.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/callbacks/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/callbacks/chainlit.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/chat_document.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/helpers.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/junk +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_doc_chat_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_rag/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_rag/critic_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_rag/lance_rag_task.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_rag/query_planner_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/lance_tools.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/neo4j/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/neo4j/csv_kg_chat.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/neo4j/utils/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/neo4j/utils/system_message.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/task.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tool_message.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/duckduckgo_search_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/metaphor_search_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/note_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/retrieval_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/rewind_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/run_python_code.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/agent_config.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/cachedb/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/models.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/protoc/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/protoc/embeddings.proto +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/protoc/embeddings_pb2.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/embedding_models/remote_embeds.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/exceptions.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/config.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/mock_lm.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/prompt_formatter/hf_formatter.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/language_models/utils.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/mytypes.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/config.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/image_text.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/parse_json.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/parser.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/routing.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/search.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/spider.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/urls.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/utils.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/parsing/web_search.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/prompts/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/prompts/chat-gpt4-system-prompt.md +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/prompts/dialog.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/prompts/templates.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/pydantic_v1/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/pydantic_v1/main.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/configuration.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/constants.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/docker.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/globals.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/logging.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/object_registry.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/output/citations.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/output/printing.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/output/status.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/pandas_utils.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/system.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/utils/web/login.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/base.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/momento.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.2.9 → langroid-0.2.10}/langroid/vector_store/qdrantdb.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: langroid
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.10
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
License: MIT
|
6
6
|
Author: Prasad Chalasani
|
@@ -522,6 +522,8 @@ with a postgres db, you will need to:
|
|
522
522
|
If this gives you an error, try `pip install psycopg2-binary` in your virtualenv.
|
523
523
|
</details>
|
524
524
|
|
525
|
+
:memo: If you get strange errors involving `mysqlclient`, try doing `pip uninstall mysqlclient` followed by `pip install mysqlclient`.
|
526
|
+
|
525
527
|
### Set up environment variables (API keys, etc)
|
526
528
|
|
527
529
|
To get started, all you need is an OpenAI API Key.
|
@@ -418,6 +418,8 @@ with a postgres db, you will need to:
|
|
418
418
|
If this gives you an error, try `pip install psycopg2-binary` in your virtualenv.
|
419
419
|
</details>
|
420
420
|
|
421
|
+
:memo: If you get strange errors involving `mysqlclient`, try doing `pip uninstall mysqlclient` followed by `pip install mysqlclient`.
|
422
|
+
|
421
423
|
### Set up environment variables (API keys, etc)
|
422
424
|
|
423
425
|
To get started, all you need is an OpenAI API Key.
|
@@ -540,8 +540,9 @@ class ChatAgent(Agent):
|
|
540
540
|
"""
|
541
541
|
if self.llm is None:
|
542
542
|
return None
|
543
|
-
|
544
543
|
hist, output_len = self._prep_llm_messages(message)
|
544
|
+
if len(hist) == 0:
|
545
|
+
return None
|
545
546
|
with StreamingIfAllowed(self.llm, self.llm.get_stream()):
|
546
547
|
response = await self.llm_response_messages_async(hist, output_len)
|
547
548
|
self.message_history.append(ChatDocument.to_LLMMessage(response))
|
@@ -302,7 +302,7 @@ class OpenAIGPTConfig(LLMConfig):
|
|
302
302
|
litellm.telemetry = False
|
303
303
|
litellm.drop_params = True # drop un-supported params without crashing
|
304
304
|
self.seed = None # some local mdls don't support seed
|
305
|
-
keys_dict = litellm.validate_environment(self.chat_model)
|
305
|
+
keys_dict = litellm.utils.validate_environment(self.chat_model)
|
306
306
|
missing_keys = keys_dict.get("missing_keys", [])
|
307
307
|
if len(missing_keys) > 0:
|
308
308
|
raise ValueError(
|
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.2.9 → langroid-0.2.10}/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
|
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.2.9 → langroid-0.2.10}/langroid/language_models/prompt_formatter/hf_formatter.py
RENAMED
File without changes
|
{langroid-0.2.9 → langroid-0.2.10}/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|