mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 12:10:57 +00:00
fix autoexpand, generation step info
This commit is contained in:
parent
680cfbf017
commit
2edb3e511a
5 changed files with 158 additions and 127 deletions
|
|
@ -13,7 +13,7 @@ class LogFromStream(Extension):
|
|||
|
||||
# thought length indicator
|
||||
pipes = "|" * math.ceil(math.sqrt(len(text)))
|
||||
heading = build_heading(self.agent, f"Reasoning.. {pipes}")
|
||||
heading = build_heading(self.agent, f"Reasoning... {pipes}")
|
||||
|
||||
# create log message and store it in loop data temporary params
|
||||
if "log_item_generating" not in loop_data.params_temporary:
|
||||
|
|
@ -21,9 +21,10 @@ class LogFromStream(Extension):
|
|||
self.agent.context.log.log(
|
||||
type="agent",
|
||||
heading=heading,
|
||||
step="Reasoning..."
|
||||
)
|
||||
)
|
||||
|
||||
# update log message
|
||||
log_item = loop_data.params_temporary["log_item_generating"]
|
||||
log_item.update(heading=heading, reasoning=text)
|
||||
log_item.update(heading=heading, reasoning=text, step="Reasoning...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue