Exxe commited on
Commit
cb7e8cb
Β·
verified Β·
1 Parent(s): 13c00ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -166,7 +166,8 @@ def _auto_init_a2a():
166
  print("A2A: Auto-registration failed (will retry next boot)")
167
 
168
 
169
- _auto_init_a2a()
 
170
 
171
 
172
  # ─── LLM Client ────────────────────────────────────────────────
@@ -927,6 +928,10 @@ def skillcloud_create(data):
927
  return None
928
 
929
 
 
 
 
 
930
  # ─── A2A System: Peer Communication ────────────────────────────
931
  def fetch_peer_card(peer_url):
932
  """Fetch a peer's A2A Agent Card."""
 
166
  print("A2A: Auto-registration failed (will retry next boot)")
167
 
168
 
169
+ # NOTE: _auto_init_a2a() is called at the bottom of the file,
170
+ # after all A2A functions (registry_create, skillcloud_create, etc.) are defined.
171
 
172
 
173
  # ─── LLM Client ────────────────────────────────────────────────
 
928
  return None
929
 
930
 
931
+ # ─── Auto-init A2A on first boot (called here, after all functions are defined) ──
932
+ _auto_init_a2a()
933
+
934
+
935
  # ─── A2A System: Peer Communication ────────────────────────────
936
  def fetch_peer_card(peer_url):
937
  """Fetch a peer's A2A Agent Card."""