Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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."""
|