agently 4.0.5.6__tar.gz → 4.0.5.8__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.
- {agently-4.0.5.6 → agently-4.0.5.8}/PKG-INFO +1 -1
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/ConfigurePromptExtension.py +4 -2
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py +11 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/pyproject.toml +1 -1
- {agently-4.0.5.6 → agently-4.0.5.8}/LICENSE +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/README.md +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/_default_init.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/_default_settings.yaml +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/base.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/AutoFuncExtension.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/ChatSessionExtension.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/KeyWaiterExtension.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/ToolExtension.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/hookers/ConsoleHooker.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/hookers/PureLoggerHooker.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/hookers/SystemMessageHooker.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/PromptGenerator/AgentlyPromptGenerator.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ToolManager/AgentlyToolManager.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/tools/Browse.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/tools/Search.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/tools/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/Agent.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/EventCenter.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/ExtensionHandlers.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/ModelRequest.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/PluginManager.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/Prompt.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/Tool.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/BluePrint.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/Chunk.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/Execution.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/Process.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/TriggerFlow.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/process/BaseProcess.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/process/ForEachProcess.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/process/MatchCaseProcess.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/TriggerFlow/process/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/core/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/integrations/chromadb.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/event.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/prompt.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/request.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/response.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/serializable.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/data/tool.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/EventHooker.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/ModelRequester.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/PromptGenerator.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/ResponseParser.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/ToolManager.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/plugins/base.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/trigger_flow/__init__.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/types/trigger_flow/trigger_flow.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/DataFormatter.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/DataLocator.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/DataPathBuilder.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/FunctionShifter.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/GeneratorConsumer.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/LazyImport.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/Logger.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/Messenger.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/RuntimeData.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/SerializableRuntimeData.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/Settings.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/Storage.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/StreamingJSONCompleter.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/StreamingJSONParser.py +0 -0
- {agently-4.0.5.6 → agently-4.0.5.8}/agently/utils/__init__.py +0 -0
{agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/ConfigurePromptExtension.py
RENAMED
|
@@ -38,11 +38,13 @@ class ConfigurePromptExtension(BaseAgent):
|
|
|
38
38
|
output_desc = output_prompt_value[".desc"]
|
|
39
39
|
if output_type or output_desc:
|
|
40
40
|
return (
|
|
41
|
-
output_type if output_type is not None else Any,
|
|
41
|
+
self._generate_output_value(output_type) if output_type is not None else Any,
|
|
42
42
|
output_desc,
|
|
43
43
|
)
|
|
44
44
|
else:
|
|
45
|
-
return output_prompt_value
|
|
45
|
+
return {key: self._generate_output_value(value) for key, value in output_prompt_value.items()}
|
|
46
|
+
elif isinstance(output_prompt_value, list):
|
|
47
|
+
return [self._generate_output_value(item) for item in output_prompt_value]
|
|
46
48
|
else:
|
|
47
49
|
return output_prompt_value
|
|
48
50
|
|
{agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py
RENAMED
|
@@ -372,10 +372,15 @@ class OpenAICompatible(ModelRequester):
|
|
|
372
372
|
)
|
|
373
373
|
full_request_data.update(request_data.request_options)
|
|
374
374
|
try:
|
|
375
|
+
has_done = False
|
|
375
376
|
async for sse in await self._aiter_sse_with_retry(
|
|
376
377
|
client, "POST", request_data.request_url, json=full_request_data, headers=headers_with_auth
|
|
377
378
|
):
|
|
378
379
|
yield sse.event, sse.data
|
|
380
|
+
if sse.data.strip() == "[DONE]":
|
|
381
|
+
has_done = False
|
|
382
|
+
if not has_done:
|
|
383
|
+
yield "message", "[DONE]"
|
|
379
384
|
except SSEError as e:
|
|
380
385
|
response = await client.post(
|
|
381
386
|
request_data.request_url,
|
|
@@ -403,6 +408,12 @@ class OpenAICompatible(ModelRequester):
|
|
|
403
408
|
error = error_json["error"]
|
|
404
409
|
error_title = f"{ error['code'] if 'code' in error else 'unknown_code' } - { error['type'] if 'type' in error else 'unknown_type' }"
|
|
405
410
|
error_detail = error["message"] if "message" in error else ""
|
|
411
|
+
self._messenger.error(
|
|
412
|
+
f"Error: { error_title }\n"
|
|
413
|
+
f"Detail: {error_detail }\n"
|
|
414
|
+
f"Request Data: {full_request_data}",
|
|
415
|
+
status="FAILED",
|
|
416
|
+
)
|
|
406
417
|
yield "error", error_detail
|
|
407
418
|
else:
|
|
408
419
|
self._messenger.error(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/agent_extensions/ChatSessionExtension.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
|
{agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py
RENAMED
|
File without changes
|
{agently-4.0.5.6 → agently-4.0.5.8}/agently/builtins/plugins/ToolManager/AgentlyToolManager.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
|