langroid 0.1.151__tar.gz → 0.1.152__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.151 → langroid-0.1.152}/PKG-INFO +1 -1
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/task.py +7 -6
- {langroid-0.1.151 → langroid-0.1.152}/pyproject.toml +1 -1
- {langroid-0.1.151 → langroid-0.1.152}/LICENSE +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/README.md +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/batch.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/chat_document.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/helpers.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/junk +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/lance_doc_chat_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tool_message.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/extract_tool.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/generator_tool.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/run_python_code.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/agent_config.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/cachedb/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/cachedb/momento_cachedb.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/embedding_models/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/embedding_models/clustering.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/embedding_models/models.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/config.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/openai_assistants.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/openai_gpt.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/language_models/utils.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/mytypes.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/code-parsing.md +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/config.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/json.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/parser.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/search.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/spider.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/url_loader_cookies.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/urls.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/utils.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/parsing/web_search.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/prompts/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/prompts/dialog.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/prompts/templates.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/prompts/transforms.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/configuration.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/constants.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/docker.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/globals.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/llms/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/llms/strings.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/logging.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/output/printing.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/system.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/web/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/web/login.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/utils/web/selenium_login.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/base.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/momento.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/qdrant_cloud.py +0 -0
- {langroid-0.1.151 → langroid-0.1.152}/langroid/vector_store/qdrantdb.py +0 -0
@@ -140,12 +140,13 @@ class Task:
|
|
140
140
|
self.step_progress = False # progress in current step?
|
141
141
|
self.n_stalled_steps = 0 # how many consecutive steps with no progress?
|
142
142
|
self.max_stalled_steps = max_stalled_steps
|
143
|
-
self.done_if_response = [
|
144
|
-
self.done_if_no_response = [
|
143
|
+
self.done_if_response = [r.value for r in done_if_response]
|
144
|
+
self.done_if_no_response = [r.value for r in done_if_no_response]
|
145
145
|
self.is_done = False # is task done (based on response)?
|
146
146
|
self.is_pass_thru = False # is current response a pass-thru?
|
147
147
|
self.task_progress = False # progress in current task (since run or run_async)?
|
148
148
|
self.name = name or agent.config.name
|
149
|
+
self.value: str = self.name
|
149
150
|
self.default_human_response = default_human_response
|
150
151
|
self.interactive = interactive
|
151
152
|
self.message_history_idx = -1
|
@@ -231,8 +232,8 @@ class Task:
|
|
231
232
|
erase_substeps=self.erase_substeps,
|
232
233
|
allow_null_result=self.allow_null_result,
|
233
234
|
max_stalled_steps=self.max_stalled_steps,
|
234
|
-
done_if_no_response=[Entity
|
235
|
-
done_if_response=[Entity
|
235
|
+
done_if_no_response=[Entity(s) for s in self.done_if_no_response],
|
236
|
+
done_if_response=[Entity(s) for s in self.done_if_response],
|
236
237
|
)
|
237
238
|
|
238
239
|
def __repr__(self) -> str:
|
@@ -820,11 +821,11 @@ class Task:
|
|
820
821
|
)
|
821
822
|
return (
|
822
823
|
(
|
823
|
-
|
824
|
+
responder.value in self.done_if_response
|
824
825
|
and not self._is_empty_message(result)
|
825
826
|
)
|
826
827
|
or (
|
827
|
-
|
828
|
+
responder.value in self.done_if_no_response
|
828
829
|
and self._is_empty_message(result)
|
829
830
|
)
|
830
831
|
or (not self._is_empty_message(result) and response_says_done)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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.151 → langroid-0.1.152}/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
|
{langroid-0.1.151 → langroid-0.1.152}/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
|