langroid 0.1.240__tar.gz → 0.1.241__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.240 → langroid-0.1.241}/PKG-INFO +2 -1
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/openai_gpt.py +40 -34
- {langroid-0.1.240 → langroid-0.1.241}/pyproject.toml +2 -1
- {langroid-0.1.240 → langroid-0.1.241}/LICENSE +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/README.md +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/batch.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/callbacks/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/callbacks/chainlit.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/chat_document.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/helpers.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/junk +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_doc_chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_rag/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_rag/critic_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_rag/lance_rag_task.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_rag/query_planner_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/lance_tools.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/neo4j/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/neo4j/csv_kg_chat.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/neo4j/utils/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/neo4j/utils/system_message.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/task.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tool_message.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/duckduckgo_search_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/metaphor_search_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/run_python_code.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/agent_config.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/cachedb/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/models.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/protoc/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/protoc/embeddings.proto +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/protoc/embeddings_pb2.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/embedding_models/remote_embeds.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/config.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/openai_assistants.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/prompt_formatter/hf_formatter.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/utils.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/mytypes.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/config.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/image_text.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/parse_json.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/parser.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/search.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/spider.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/urls.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/utils.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/parsing/web_search.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/chat-gpt4-system-prompt.md +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/dialog.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/templates.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/prompts/transforms.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/configuration.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/constants.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/docker.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/globals.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/logging.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/output/printing.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/output/status.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/pandas_utils.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/system.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/utils/web/login.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/base.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/momento.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.1.240 → langroid-0.1.241}/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.241
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
License: MIT
|
6
6
|
Author: Prasad Chalasani
|
@@ -36,6 +36,7 @@ Requires-Dist: fakeredis (>=2.12.1,<3.0.0)
|
|
36
36
|
Requires-Dist: fire (>=0.5.0,<0.6.0)
|
37
37
|
Requires-Dist: flake8 (>=6.0.0,<7.0.0)
|
38
38
|
Requires-Dist: google-api-python-client (>=2.95.0,<3.0.0)
|
39
|
+
Requires-Dist: google-generativeai (>=0.5.2,<0.6.0)
|
39
40
|
Requires-Dist: groq (>=0.5.0,<0.6.0)
|
40
41
|
Requires-Dist: grpcio (>=1.62.1,<2.0.0)
|
41
42
|
Requires-Dist: halo (>=0.0.31,<0.0.32)
|
@@ -670,23 +670,26 @@ class OpenAIGPT(LanguageModel):
|
|
670
670
|
sys.stdout.write(Colors().GREEN)
|
671
671
|
sys.stdout.flush()
|
672
672
|
has_function = False
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
673
|
+
try:
|
674
|
+
for event in response:
|
675
|
+
(
|
676
|
+
is_break,
|
677
|
+
has_function,
|
678
|
+
function_name,
|
679
|
+
function_args,
|
680
|
+
completion,
|
681
|
+
) = self._process_stream_event(
|
682
|
+
event,
|
683
|
+
chat=chat,
|
684
|
+
has_function=has_function,
|
685
|
+
completion=completion,
|
686
|
+
function_args=function_args,
|
687
|
+
function_name=function_name,
|
688
|
+
)
|
689
|
+
if is_break:
|
690
|
+
break
|
691
|
+
except Exception:
|
692
|
+
pass
|
690
693
|
|
691
694
|
print("")
|
692
695
|
# TODO- get usage info in stream mode (?)
|
@@ -722,23 +725,26 @@ class OpenAIGPT(LanguageModel):
|
|
722
725
|
sys.stdout.write(Colors().GREEN)
|
723
726
|
sys.stdout.flush()
|
724
727
|
has_function = False
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
728
|
+
try:
|
729
|
+
async for event in response:
|
730
|
+
(
|
731
|
+
is_break,
|
732
|
+
has_function,
|
733
|
+
function_name,
|
734
|
+
function_args,
|
735
|
+
completion,
|
736
|
+
) = self._process_stream_event(
|
737
|
+
event,
|
738
|
+
chat=chat,
|
739
|
+
has_function=has_function,
|
740
|
+
completion=completion,
|
741
|
+
function_args=function_args,
|
742
|
+
function_name=function_name,
|
743
|
+
)
|
744
|
+
if is_break:
|
745
|
+
break
|
746
|
+
except Exception:
|
747
|
+
pass
|
742
748
|
|
743
749
|
print("")
|
744
750
|
# TODO- get usage info in stream mode (?)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "langroid"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.241"
|
4
4
|
description = "Harness LLMs with Multi-Agent Programming"
|
5
5
|
authors = ["Prasad Chalasani <pchalasani@gmail.com>"]
|
6
6
|
readme = "README.md"
|
@@ -100,6 +100,7 @@ groq = "^0.5.0"
|
|
100
100
|
nest-asyncio = "^1.6.0"
|
101
101
|
python-magic = "^0.4.27"
|
102
102
|
transformers = {version="^4.40.1", optional=true}
|
103
|
+
google-generativeai = "^0.5.2"
|
103
104
|
|
104
105
|
[tool.poetry.extras]
|
105
106
|
# install these using `poetry install -E [...]` where [...] is one of the extras below
|
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.240 → langroid-0.1.241}/langroid/agent/special/lance_rag/query_planner_agent.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
|
{langroid-0.1.240 → langroid-0.1.241}/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.240 → langroid-0.1.241}/langroid/embedding_models/protoc/embeddings_pb2_grpc.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
|
{langroid-0.1.240 → langroid-0.1.241}/langroid/language_models/prompt_formatter/hf_formatter.py
RENAMED
File without changes
|
{langroid-0.1.240 → langroid-0.1.241}/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
|