Browse Source

Merge pull request #258 from tiansiyuan/patch-11

fix wrong attribute
jjyaoao 5 months ago
parent
commit
95e0b2890d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/chapter10/第十章 智能体通信协议.md

+ 1 - 1
docs/chapter10/第十章 智能体通信协议.md

@@ -1793,7 +1793,7 @@ for i in range(10):
         }
         }
     )
     )
 
 
-print(f"✅ 注册了 {len(discovery.list_services())} 个计算节点")
+print(f"✅ 注册了 {len(discovery.list_all_services())} 个计算节点")
 
 
 # 3. 创建任务调度Agent
 # 3. 创建任务调度Agent
 scheduler = SimpleAgent(
 scheduler = SimpleAgent(