agenthub-python 0.4.13__tar.gz → 0.4.14__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.
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/PKG-INFO +1 -1
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/deepseek_v4/client.py +10 -3
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/gpt6/client.py +10 -3
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/pyproject.toml +1 -1
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/pyproject.toml.orig +1 -1
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/README.md +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/abort_signal.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/ant_messages/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/ant_messages/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/auto_client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/base_client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/claude5/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/claude5/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/deepseek_v4/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/errors.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/gemini3_8/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/gemini3_8/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/glm5_3/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/glm5_3/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/gpt6/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/integration/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/integration/playground.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/integration/tracer.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/kimi_k3/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/kimi_k3/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/minimax_m3/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/minimax_m3/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat_vllm_adapter/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat_vllm_adapter/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_embedding/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_embedding/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_responses/__init__.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_responses/client.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/registry.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/types.py +0 -0
- {agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/utils.py +0 -0
|
@@ -201,16 +201,23 @@ class DeepSeekV4Client(LLMClient):
|
|
|
201
201
|
raise ValueError("tool_call_id is required for tool result.")
|
|
202
202
|
|
|
203
203
|
# NOTE: tool results are input items
|
|
204
|
-
|
|
204
|
+
image_parts = []
|
|
205
205
|
if "images" in item:
|
|
206
206
|
if not supports_image:
|
|
207
207
|
raise ValueError(f"DeepSeek {self._model} does not support images in tool results.")
|
|
208
208
|
|
|
209
209
|
for image_url in item["images"]:
|
|
210
|
-
|
|
210
|
+
image_parts.append({"type": "input_image", "image_url": image_url})
|
|
211
|
+
|
|
212
|
+
# a plain string is the form the Responses API documents for a text result and the
|
|
213
|
+
# one every endpoint that fronts this model accepts; the content-part list is
|
|
214
|
+
# reserved for results carrying images
|
|
215
|
+
output = (
|
|
216
|
+
[{"type": "input_text", "text": item["text"]}, *image_parts] if image_parts else item["text"]
|
|
217
|
+
)
|
|
211
218
|
|
|
212
219
|
input_list.append(
|
|
213
|
-
{"type": "function_call_output", "call_id": item["tool_call_id"], "output":
|
|
220
|
+
{"type": "function_call_output", "call_id": item["tool_call_id"], "output": output}
|
|
214
221
|
)
|
|
215
222
|
else:
|
|
216
223
|
raise ValueError(f"Unknown item: {item}")
|
|
@@ -212,13 +212,20 @@ class GPT6Client(LLMClient):
|
|
|
212
212
|
raise ValueError("tool_call_id is required for tool result.")
|
|
213
213
|
|
|
214
214
|
# NOTE: tool results are input items
|
|
215
|
-
|
|
215
|
+
image_parts = []
|
|
216
216
|
if "images" in item:
|
|
217
217
|
for image_url in item["images"]:
|
|
218
|
-
|
|
218
|
+
image_parts.append(self._convert_image_url(image_url))
|
|
219
|
+
|
|
220
|
+
# a plain string is the form the Responses API documents for a text result and the
|
|
221
|
+
# one every endpoint that fronts this model accepts; the content-part list is
|
|
222
|
+
# reserved for results carrying images
|
|
223
|
+
output = (
|
|
224
|
+
[{"type": "input_text", "text": item["text"]}, *image_parts] if image_parts else item["text"]
|
|
225
|
+
)
|
|
219
226
|
|
|
220
227
|
input_list.append(
|
|
221
|
-
{"type": "function_call_output", "call_id": item["tool_call_id"], "output":
|
|
228
|
+
{"type": "function_call_output", "call_id": item["tool_call_id"], "output": output}
|
|
222
229
|
)
|
|
223
230
|
else:
|
|
224
231
|
raise ValueError(f"Unknown item: {item}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat_vllm_adapter/__init__.py
RENAMED
|
File without changes
|
{agenthub_python-0.4.13 → agenthub_python-0.4.14}/agenthub/openai_chat_vllm_adapter/client.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
|