You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnum_code_blocks==1:
iostream.print(
colored(
f"\n>>>>>>>> EXECUTING CODE BLOCK (inferred language is {code_blocks[0].language})...",
"red",
),
flush=True,
)
else:
iostream.print(
colored(
f"\n>>>>>>>> EXECUTING {num_code_blocks} CODE BLOCKS (inferred languages are [{', '.join([x.languageforxincode_blocks])}])...",
"red",
),
flush=True,
)
This really makes for extremely messy streamed output (e.g. using Websockets to connect to a different UI framework) where I just want the returned text, not the pre-defined formatting and extra language.
I'm thinking of changing the behavior a bit to a structured output with json inclusive of the raw response, the content with the original formatting (for compatibility), metadata on the sender/receiver of the message, etc. but this seems like it would be a big undertaking.
Is anyone working on something similar or related?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
printed/streamed responses from the agents include all sorts of extra messages and implied UI/debug formatting. For example:
In conversable_agent.py:
This really makes for extremely messy streamed output (e.g. using Websockets to connect to a different UI framework) where I just want the returned text, not the pre-defined formatting and extra language.
I'm thinking of changing the behavior a bit to a structured output with json inclusive of the raw response, the content with the original formatting (for compatibility), metadata on the sender/receiver of the message, etc. but this seems like it would be a big undertaking.
Is anyone working on something similar or related?
Beta Was this translation helpful? Give feedback.
All reactions