mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 21:50:34 +00:00
Add tool request validation and plugin change notifications
Introduce validate_tool_request() extensible method in agent.py to validate tool request structure (dict with tool_name string and tool_args dict fields) before processing. Add after_plugin_change() helper in helpers/plugins.py that clears cache and sends a frontend reload notification (throttled to display_time interval) with a reload button. Update plugin installer install/delete flows to call after_plugin_change(). Extend notification
This commit is contained in:
parent
a807e2458b
commit
1b89a0d359
24 changed files with 314 additions and 136 deletions
32
plugins/error_retry/webui/config.html
Normal file
32
plugins/error_retry/webui/config.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Error retry</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div x-data>
|
||||
<template x-if="config">
|
||||
<div>
|
||||
<div class="section-title">Error retry</div>
|
||||
<div class="section-description">
|
||||
Settings for retrying failed operations.
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="field-label">
|
||||
<div class="field-title">Retries</div>
|
||||
<div class="field-description">
|
||||
Number of retries after an error occurs.
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-control">
|
||||
<input type="number" min="0"
|
||||
x-model.number="config.retries" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue