@@ -1069,27 +1069,27 @@ async def main():
10691069 task_timeout_seconds = 900.0 ,
10701070 )
10711071
1072- await workforce .add_single_agent_worker (
1072+ await workforce .add_single_agent_worker_async (
10731073 "Search Agent: An expert web researcher that can browse websites, "
10741074 "perform searches, and extract information to support other agents." ,
10751075 worker = search_agent ,
10761076 )
1077- await workforce .add_single_agent_worker (
1077+ await workforce .add_single_agent_worker_async (
10781078 "Developer Agent: A master-level coding assistant with a powerful "
10791079 "terminal. It can write and execute code, manage files, automate "
10801080 "desktop tasks, and deploy web applications to solve complex "
10811081 "technical challenges." ,
10821082 worker = developer_agent ,
10831083 )
1084- await workforce .add_single_agent_worker (
1084+ await workforce .add_single_agent_worker_async (
10851085 "Document Agent: A document processing assistant skilled in creating "
10861086 "and modifying a wide range of file formats. It can generate "
10871087 "text-based files (Markdown, JSON, YAML, HTML), office documents "
10881088 "(Word, PDF), presentations (PowerPoint), and data files "
10891089 "(Excel, CSV)." ,
10901090 worker = document_agent ,
10911091 )
1092- await workforce .add_single_agent_worker (
1092+ await workforce .add_single_agent_worker_async (
10931093 "Multi-Modal Agent: A specialist in media processing. It can "
10941094 "analyze images and audio, transcribe speech, download videos, and "
10951095 "generate new images from text prompts." ,
@@ -1112,16 +1112,16 @@ async def main():
11121112
11131113 # Test WorkforceLogger features
11141114 print ("\n --- Workforce Log Tree ---" )
1115- print (await workforce .get_workforce_log_tree ())
1115+ print (await workforce .get_workforce_log_tree_async ())
11161116
11171117 print ("\n --- Workforce KPIs ---" )
1118- kpis = await workforce .get_workforce_kpis ()
1118+ kpis = await workforce .get_workforce_kpis_async ()
11191119 for key , value in kpis .items ():
11201120 print (f"{ key } : { value } " )
11211121
11221122 log_file_path = "eigent_logs.json"
11231123 print (f"\n --- Dumping Workforce Logs to { log_file_path } ---" )
1124- await workforce .dump_workforce_logs (log_file_path )
1124+ await workforce .dump_workforce_logs_async (log_file_path )
11251125 print (f"Logs dumped. Please check the file: { log_file_path } " )
11261126
11271127
0 commit comments