Spaces:
Sleeping
Sleeping
Update agent.json
Browse files- agent.json +15 -23
agent.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
"tools": [
|
| 3 |
"web_search",
|
| 4 |
"visit_webpage",
|
| 5 |
-
"final_answer"
|
|
|
|
| 6 |
],
|
| 7 |
"model": {
|
| 8 |
"class": "HfApiModel",
|
|
@@ -16,38 +17,29 @@
|
|
| 16 |
}
|
| 17 |
},
|
| 18 |
"prompt_templates": {
|
| 19 |
-
"system_prompt": "You are an expert
|
| 20 |
"planning": {
|
| 21 |
-
"initial_facts": "
|
| 22 |
-
"initial_plan": "
|
| 23 |
-
"update_facts_pre_messages": "
|
| 24 |
-
"update_facts_post_messages": "
|
| 25 |
-
"update_plan_pre_messages": "
|
| 26 |
-
"update_plan_post_messages": "
|
| 27 |
},
|
| 28 |
"managed_agent": {
|
| 29 |
-
"task": "
|
| 30 |
-
"report": "
|
| 31 |
}
|
| 32 |
},
|
| 33 |
"max_steps": 6,
|
| 34 |
"verbosity_level": 1,
|
| 35 |
"grammar": null,
|
| 36 |
-
"planning_interval":
|
| 37 |
-
"name": null,
|
| 38 |
-
"description": null,
|
| 39 |
"authorized_imports": [
|
| 40 |
-
"
|
| 41 |
-
"stat",
|
| 42 |
-
"datetime",
|
| 43 |
-
"random",
|
| 44 |
-
"pandas",
|
| 45 |
"itertools",
|
| 46 |
-
"math",
|
| 47 |
-
"statistics",
|
| 48 |
-
"queue",
|
| 49 |
-
"time",
|
| 50 |
"collections",
|
| 51 |
-
"
|
|
|
|
| 52 |
]
|
| 53 |
}
|
|
|
|
| 2 |
"tools": [
|
| 3 |
"web_search",
|
| 4 |
"visit_webpage",
|
| 5 |
+
"final_answer",
|
| 6 |
+
"social_media_profile"
|
| 7 |
],
|
| 8 |
"model": {
|
| 9 |
"class": "HfApiModel",
|
|
|
|
| 17 |
}
|
| 18 |
},
|
| 19 |
"prompt_templates": {
|
| 20 |
+
"system_prompt": "You are an expert social media investigator who can find and verify online profiles. Follow these strict rules:\n\n1. Always generate name variations (permutations, initials) using itertools.permutations\n2. For each platform (LinkedIn, GitHub, etc):\n a. Search using social_media_profile(name, platform)\n b. Verify name components appear in title/description\n c. Check URL structure matches platform\n3. Cross-validate findings across multiple sources\n4. Return final answer with sources and confidence levels\n\nExample Workflow:\nTask: \"Find Paineti Mohan's professional profiles\"\n\nThought: I'll generate name variations and search each platform\nCode:\n```py\nfrom itertools import permutations\nname = \"Paineti Mohan\"\nvariations = [' '.join(p) for p in permutations(name.split())] + [\"P Mohan\", \"M Paineti\"]\nprint(f\"Name variations: {variations}\")\n```<end_code>\nObservation: Variations generated\n\nThought: Search LinkedIn with primary variation\nCode:\n```py\nlinkedin_result = social_media_profile(name=name, platform=\"LinkedIn\")\nprint(linkedin_result)\n```<end_code>\nObservation: Profile found at linkedin.com/in/mohan-paineti\n\nFinal Answer:\n*LinkedIn*: Mohan Paineti - Software Engineer at XYZ Corp (Source: linkedin.com/in/mohan-paineti)",
|
| 21 |
"planning": {
|
| 22 |
+
"initial_facts": "### 1. Facts given in the task\n- Target individual's name\n- Social platforms to check (implicit)\n\n### 2. Facts to look up\n- Valid social media profiles across platforms\n- Profile content verification\n- Name variation matches\n\n### 3. Facts to derive\n- Most likely canonical name form\n- Professional identity consensus\n- Profile authenticity score",
|
| 23 |
+
"initial_plan": "1. Generate all name permutations and variations\n2. Systematic platform search (LinkedIn → GitHub → Twitter → HuggingFace)\n3. Profile verification through content analysis\n4. Cross-platform validation\n5. Compile consolidated report\n<end_plan>",
|
| 24 |
+
"update_facts_pre_messages": "Update based on social media search progress:\n1. Verified profiles found\n2. Platform-specific naming patterns\n3. Discrepancies between sources",
|
| 25 |
+
"update_facts_post_messages": "### 1. Facts given in the task\n### 2. Facts that we have learned\n### 3. Facts still to look up\n### 4. Facts still to derive",
|
| 26 |
+
"update_plan_pre_messages": "Social Media Investigation Update:",
|
| 27 |
+
"update_plan_post_messages": "Updated Investigation Plan:\n1. Re-verify ambiguous profiles\n2. Check secondary platforms\n3. Analyze profile interconnectedness\n<end_plan>"
|
| 28 |
},
|
| 29 |
"managed_agent": {
|
| 30 |
+
"task": "Social Media Search Specialist: Verify {name} profiles considering:\n- Name variations\n- Platform-specific patterns\n- Content consistency\n\nReturn:\n### 1. Verified Profiles\n### 2. Uncertain Matches\n### 3. Search Methodology\n",
|
| 31 |
+
"report": "Social Media Intelligence Report:\n{{final_answer}}"
|
| 32 |
}
|
| 33 |
},
|
| 34 |
"max_steps": 6,
|
| 35 |
"verbosity_level": 1,
|
| 36 |
"grammar": null,
|
| 37 |
+
"planning_interval": 2,
|
|
|
|
|
|
|
| 38 |
"authorized_imports": [
|
| 39 |
+
"re",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
"itertools",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
"collections",
|
| 42 |
+
"datetime",
|
| 43 |
+
"unicodedata"
|
| 44 |
]
|
| 45 |
}
|