A programming framework for agentic AI
Improve pretty printing (#171)
gagbe0065cab42f0
diff --git a/python/benchmarks/HumanEval/Templates/TeamOne/scenario.py b/python/benchmarks/HumanEval/Templates/TeamOne/scenario.pyindex 7b14453f4..4dfb74365 100644--- a/python/benchmarks/HumanEval/Templates/TeamOne/scenario.py+++ b/python/benchmarks/HumanEval/Templates/TeamOne/scenario.py@@ -89,7 +89,7 @@ class MyHandler(logging.Handler):def emit(self, record: logging.LogRecord) -> None:try:if isinstance(record.msg, OrchestrationEvent):- print(f"[{record.msg.timestamp}]: {record.msg.message}", flush=True)+ print(record.msg.message, flush=True)except Exception:self.handleError(record)diff --git a/python/teams/team-one/src/team_one/agents/orchestrator.py b/python/teams/team-one/src/team_one/agents/orchestrator.pyindex 56f89f5da..e830f2eb7 100644--- a/python/teams/team-one/src/team_one/agents/orchestrator.py+++ b/python/teams/team-one/src/team_one/agents/orchestrator.py@@ -35,11 +35,10 @@ class RoundRobinOrchestrator(TypeRoutedAgent):logger.info(OrchestrationEvent(current_timestamp,- f"""---------------------------------------{source}: {message.content.content}---------------------------------------""",+ f"""{source}:++{message.content.content}+-------------------------------------""",))@@ -54,7 +53,10 @@ class RoundRobinOrchestrator(TypeRoutedAgent):logger.info(OrchestrationEvent(current_timestamp,- f"Orchestrator (thought): Next speaker {next_agent.metadata['name']}",+ f"""Orchestrator (thought):++Next speaker {next_agent.metadata['name']}+-------------------------------------""",))