mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Minor agent-orchestrator updates (#746)
Tidy agent-orchestrator logs Added CLI support for selecting the pattern... tg-invoke-agent -q "What is the document about?" -p supervisor -v tg-invoke-agent -q "What is the document about?" -p plan-then-execute -v tg-invoke-agent -q "What is the document about?" -p react -v Added new event types to tg-show-explain-trace
This commit is contained in:
parent
816a8cfcf6
commit
89e13a756a
9 changed files with 152 additions and 75 deletions
|
|
@ -999,8 +999,6 @@ class ExplainabilityClient:
|
|||
trace = {
|
||||
"question": None,
|
||||
"steps": [],
|
||||
"iterations": [], # Backwards compatibility for ReAct
|
||||
"conclusion": None,
|
||||
}
|
||||
|
||||
# Fetch question/session
|
||||
|
|
@ -1015,11 +1013,6 @@ class ExplainabilityClient:
|
|||
is_first=True, max_depth=50,
|
||||
)
|
||||
|
||||
# Backwards compat: populate iterations from steps
|
||||
trace["iterations"] = [
|
||||
s for s in trace["steps"] if isinstance(s, Analysis)
|
||||
]
|
||||
|
||||
return trace
|
||||
|
||||
def _follow_provenance_chain(
|
||||
|
|
@ -1081,7 +1074,6 @@ class ExplainabilityClient:
|
|||
|
||||
elif isinstance(entity, (Conclusion, Synthesis)):
|
||||
trace["steps"].append(entity)
|
||||
trace["conclusion"] = entity
|
||||
|
||||
def list_sessions(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue