mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 19:21:03 +02:00
Agent manager is close to working with extract prompt
This commit is contained in:
parent
8869dd1eed
commit
fca082879a
2 changed files with 6 additions and 2 deletions
|
|
@ -261,7 +261,8 @@ class AgentManager:
|
|||
**act.arguments
|
||||
)
|
||||
|
||||
resp = resp.strip()
|
||||
if isinstance(resp, str):
|
||||
resp = resp.strip()
|
||||
|
||||
logger.info(f"resp: {resp}")
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue