lm-deluge 0.0.67__tar.gz → 0.0.68__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.
- {lm_deluge-0.0.67/src/lm_deluge.egg-info → lm_deluge-0.0.68}/PKG-INFO +1 -1
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/pyproject.toml +1 -1
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/client.py +9 -8
- {lm_deluge-0.0.67 → lm_deluge-0.0.68/src/lm_deluge.egg-info}/PKG-INFO +1 -1
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/LICENSE +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/README.md +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/setup.cfg +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/__init__.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/__init__.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/anthropic.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/base.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/bedrock.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/common.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/deprecated/bedrock.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/deprecated/cohere.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/deprecated/deepseek.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/deprecated/mistral.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/deprecated/vertex.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/gemini.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/mistral.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/openai.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/api_requests/response.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/batches.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/anthropic/__init__.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/anthropic/bash.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/anthropic/computer_use.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/anthropic/editor.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/base.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/openai.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/cache.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/cli.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/config.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/embed.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/errors.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/file.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/image.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/__init__.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/classify.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/extract.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/locate.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/ocr.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/score.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/llm_tools/translate.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/__init__.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/anthropic.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/bedrock.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/cerebras.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/cohere.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/deepseek.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/fireworks.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/google.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/grok.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/groq.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/meta.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/mistral.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/openai.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/openrouter.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/models/together.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/presets/cerebras.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/presets/meta.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/prompt.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/request_context.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/rerank.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/tool.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/tracker.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/usage.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/harmony.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/json.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/logprobs.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/spatial.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/validation.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/util/xml.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/warnings.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge.egg-info/SOURCES.txt +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge.egg-info/dependency_links.txt +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge.egg-info/requires.txt +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge.egg-info/top_level.txt +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/tests/test_builtin_tools.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/tests/test_file_upload.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/tests/test_native_mcp_server.py +0 -0
- {lm_deluge-0.0.67 → lm_deluge-0.0.68}/tests/test_openrouter_generic.py +0 -0
|
@@ -702,7 +702,7 @@ class _LLMClient(BaseModel):
|
|
|
702
702
|
|
|
703
703
|
async def start(
|
|
704
704
|
self,
|
|
705
|
-
prompt:
|
|
705
|
+
prompt: Prompt,
|
|
706
706
|
*,
|
|
707
707
|
tools: list[Tool | dict | MCPServer] | None = None,
|
|
708
708
|
cache: CachePattern | None = None,
|
|
@@ -780,12 +780,12 @@ class _LLMClient(BaseModel):
|
|
|
780
780
|
|
|
781
781
|
async def stream(
|
|
782
782
|
self,
|
|
783
|
-
prompt:
|
|
783
|
+
prompt: Prompt,
|
|
784
784
|
tools: list[Tool | dict | MCPServer] | None = None,
|
|
785
785
|
):
|
|
786
786
|
model, sampling_params = self._select_model()
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
prompt = prompts_to_conversations([prompt])[0]
|
|
788
|
+
assert isinstance(prompt, Conversation)
|
|
789
789
|
async for item in stream_chat(
|
|
790
790
|
model, prompt, sampling_params, tools, None, self.extra_headers
|
|
791
791
|
):
|
|
@@ -799,7 +799,7 @@ class _LLMClient(BaseModel):
|
|
|
799
799
|
|
|
800
800
|
async def run_agent_loop(
|
|
801
801
|
self,
|
|
802
|
-
conversation:
|
|
802
|
+
conversation: Prompt,
|
|
803
803
|
*,
|
|
804
804
|
tools: list[Tool | dict | MCPServer] | None = None,
|
|
805
805
|
max_rounds: int = 5,
|
|
@@ -812,8 +812,9 @@ class _LLMClient(BaseModel):
|
|
|
812
812
|
instances or built‑in tool dictionaries.
|
|
813
813
|
"""
|
|
814
814
|
|
|
815
|
-
if isinstance(conversation,
|
|
816
|
-
conversation =
|
|
815
|
+
if not isinstance(conversation, Conversation):
|
|
816
|
+
conversation = prompts_to_conversations([conversation])[0]
|
|
817
|
+
assert isinstance(conversation, Conversation)
|
|
817
818
|
|
|
818
819
|
# Expand MCPServer objects to their constituent tools for tool execution
|
|
819
820
|
expanded_tools: list[Tool] = []
|
|
@@ -870,7 +871,7 @@ class _LLMClient(BaseModel):
|
|
|
870
871
|
|
|
871
872
|
def run_agent_loop_sync(
|
|
872
873
|
self,
|
|
873
|
-
conversation:
|
|
874
|
+
conversation: Prompt,
|
|
874
875
|
*,
|
|
875
876
|
tools: list[Tool | dict | MCPServer] | None = None,
|
|
876
877
|
max_rounds: int = 5,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lm_deluge-0.0.67 → lm_deluge-0.0.68}/src/lm_deluge/built_in_tools/anthropic/computer_use.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
|