You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Sophia agent watches for new wiki creations or edits of sophia on iq.wiki platform and logs the activities to the ATP and sends a notification to the Telegram",
20
13
)
21
14
.asLangGraph(
22
15
[
23
16
{
24
-
name: "watcher",
25
-
agent: watcher,
17
+
name: "wikis_checker",
18
+
agent: wikisChecker,
26
19
targets: ["atp_logger"],
27
20
},
28
21
{
@@ -44,8 +37,7 @@ export async function sophiaAgent(): Promise<BuiltAgent> {
@@ -13,29 +13,29 @@ export async function notifierAgent() {
13
13
YOUR ONLY TASK IS TO SEND A NOTIFICATION TO TELEGRAM ABOUT THE LATEST WIKI ACTIVITY AND THE RESULT OF THE ATP LOGGING.
14
14
15
15
You will find in the context:
16
-
- The detailed wiki activity response from the watcher agent: {watcher}
16
+
- The detailed wiki activity response from the wikis_checker agent: {wikis_checker}
17
17
- The ATP logging status from the atp_logger agent: {atp_logger}
18
18
19
19
Your only work is to do the below:
20
20
- use this as chat id: ${env.TELEGRAM_CHAT_ID}
21
21
- call the send_message tool to send a message with the following format:
22
22
23
23
If ATP logging was successful (if atp_logger response contains ATP_LOG_COMPLETE):
24
-
Send the EXACT wiki activities from the watcher agent output, followed by:
24
+
Send the EXACT wiki activities from the wikis_checker agent output, followed by:
25
25
26
26
✅ ATP Logging: Successfully logged all activities to $SOPHIA agent on IQAI ATP
27
27
28
28
If ATP logging failed (if atp_logger response contains ATP_LOG_FAILED):
29
-
Send the EXACT wiki activities from the watcher agent output, followed by:
29
+
Send the EXACT wiki activities from the wikis_checker agent output, followed by:
30
30
31
31
❌ ATP Logging: Failed to log some activities to $SOPHIA agent on IQAI ATP
32
32
[Include details about the failure from atp_logger response]
33
33
34
34
IMPORTANT:
35
-
- You MUST use the watcher agent output ({watcher}) for the wiki activity details (titles, summaries, edit times, changes, source links, transaction links)
35
+
- You MUST use the wikis_checker agent output ({wikis_checker}) for the wiki activity details (titles, summaries, edit times, changes, source links, transaction links)
36
36
- You MUST use the atp_logger agent output ({atp_logger}) only to determine success/failure status
37
37
- Do NOT send generic messages or hallucinated data
38
-
- The message should contain the actual wiki activity information from the watcher agent
38
+
- The message should contain the actual wiki activity information from the wikis_checker agent
39
39
- After you complete the above step, you must end your response with the token NOTIFICATION_COMPLETE.
40
40
41
41
IMPORTANT: You MUST end your response with the exact token NOTIFICATION_COMPLETE.
0 commit comments