mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-03 06:00:34 +00:00
refactor: remove _read_fw helper, add ChatSummary TypedDict to dispatcher
This commit is contained in:
parent
26f01555d8
commit
489a8634f1
3 changed files with 16 additions and 13 deletions
|
|
@ -70,8 +70,7 @@ def _extract_last_response(context: AgentContext) -> str:
|
|||
def _notify_agent_of_failure(
|
||||
context: AgentContext, error: str, attempt: int,
|
||||
):
|
||||
from plugins._email_integration.helpers.handler import _read_fw
|
||||
msg = _read_fw(
|
||||
msg = context.agent0.read_prompt(
|
||||
"fw.email.send_failed.md", error=error, attempt=str(attempt),
|
||||
max_retries=str(MAX_SEND_RETRIES),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue