Agent manager is close to working with extract prompt

This commit is contained in:
Cyber MacGeddon 2025-07-20 15:44:54 +01:00
parent 8869dd1eed
commit fca082879a
2 changed files with 6 additions and 2 deletions

View file

@ -261,7 +261,8 @@ class AgentManager:
**act.arguments
)
resp = resp.strip()
if isinstance(resp, str):
resp = resp.strip()
logger.info(f"resp: {resp}")

View file

@ -146,7 +146,10 @@ class Processor(FlowProcessor):
print("Done?", response.answer is not None, flush=True)
if response.error is not None:
raise RuntimeError(response.error)
if response.error.message:
raise RuntimeError(str(response.error.message))
else:
raise RuntimeError(str(response.error))
if response.answer is not None:
return True