universal-mcp-applications 0.1.13__py3-none-any.whl → 0.1.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of universal-mcp-applications might be problematic. Click here for more details.
- universal_mcp/applications/aws_s3/app.py +71 -71
- universal_mcp/applications/calendly/app.py +199 -199
- universal_mcp/applications/canva/app.py +189 -189
- universal_mcp/applications/domain_checker/app.py +31 -24
- universal_mcp/applications/e2b/app.py +6 -7
- universal_mcp/applications/elevenlabs/app.py +24 -20
- universal_mcp/applications/exa/app.py +25 -20
- universal_mcp/applications/falai/app.py +44 -41
- universal_mcp/applications/file_system/app.py +20 -12
- universal_mcp/applications/firecrawl/app.py +46 -47
- universal_mcp/applications/fireflies/app.py +79 -79
- universal_mcp/applications/fpl/app.py +83 -74
- universal_mcp/applications/github/README.md +0 -1028
- universal_mcp/applications/github/app.py +55 -50227
- universal_mcp/applications/google_calendar/app.py +63 -65
- universal_mcp/applications/google_docs/app.py +78 -78
- universal_mcp/applications/google_drive/app.py +361 -440
- universal_mcp/applications/google_gemini/app.py +34 -17
- universal_mcp/applications/google_mail/app.py +117 -117
- universal_mcp/applications/google_searchconsole/app.py +41 -47
- universal_mcp/applications/google_sheet/app.py +157 -164
- universal_mcp/applications/http_tools/app.py +16 -16
- universal_mcp/applications/linkedin/app.py +26 -31
- universal_mcp/applications/ms_teams/app.py +190 -190
- universal_mcp/applications/openai/app.py +55 -56
- universal_mcp/applications/outlook/app.py +57 -57
- universal_mcp/applications/perplexity/app.py +17 -17
- universal_mcp/applications/reddit/app.py +225 -4053
- universal_mcp/applications/replicate/app.py +40 -42
- universal_mcp/applications/resend/app.py +157 -154
- universal_mcp/applications/scraper/app.py +24 -24
- universal_mcp/applications/serpapi/app.py +18 -20
- universal_mcp/applications/sharepoint/app.py +46 -36
- universal_mcp/applications/slack/app.py +66 -66
- universal_mcp/applications/tavily/app.py +7 -7
- universal_mcp/applications/twitter/api_segments/compliance_api.py +17 -20
- universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +35 -40
- universal_mcp/applications/twitter/api_segments/dm_events_api.py +18 -21
- universal_mcp/applications/twitter/api_segments/likes_api.py +19 -22
- universal_mcp/applications/twitter/api_segments/lists_api.py +59 -68
- universal_mcp/applications/twitter/api_segments/spaces_api.py +36 -42
- universal_mcp/applications/twitter/api_segments/trends_api.py +7 -8
- universal_mcp/applications/twitter/api_segments/tweets_api.py +159 -185
- universal_mcp/applications/twitter/api_segments/usage_api.py +5 -6
- universal_mcp/applications/twitter/api_segments/users_api.py +230 -264
- universal_mcp/applications/unipile/app.py +99 -105
- universal_mcp/applications/whatsapp/app.py +86 -82
- universal_mcp/applications/whatsapp_business/app.py +147 -147
- universal_mcp/applications/youtube/app.py +290 -290
- universal_mcp/applications/zenquotes/app.py +6 -6
- {universal_mcp_applications-0.1.13.dist-info → universal_mcp_applications-0.1.14.dist-info}/METADATA +1 -1
- {universal_mcp_applications-0.1.13.dist-info → universal_mcp_applications-0.1.14.dist-info}/RECORD +54 -54
- {universal_mcp_applications-0.1.13.dist-info → universal_mcp_applications-0.1.14.dist-info}/WHEEL +0 -0
- {universal_mcp_applications-0.1.13.dist-info → universal_mcp_applications-0.1.14.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,7 +9,7 @@ class PerplexityApp(APIApplication):
|
|
|
9
9
|
super().__init__(name="perplexity", integration=integration)
|
|
10
10
|
self.base_url = "https://api.perplexity.ai"
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def answer_with_search(
|
|
13
13
|
self,
|
|
14
14
|
query: str,
|
|
15
15
|
model: Literal[
|
|
@@ -19,28 +19,28 @@ class PerplexityApp(APIApplication):
|
|
|
19
19
|
"sonar-reasoning",
|
|
20
20
|
"sonar-reasoning-pro",
|
|
21
21
|
"sonar-deep-research",
|
|
22
|
-
] = "sonar",
|
|
22
|
+
] = "sonar-pro",
|
|
23
23
|
temperature: float = 1,
|
|
24
|
-
system_prompt: str = "
|
|
24
|
+
system_prompt: str = "You are a helpful AI assistant that answers questions using real-time information from the web.",
|
|
25
25
|
) -> dict[str, Any] | str:
|
|
26
26
|
"""
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
Queries the Perplexity Chat Completions API for a web-search-grounded answer. It sends the user's prompt and model parameters to the `/chat/completions` endpoint, then parses the response to return the synthesized content and a list of supporting source citations, ideal for real-time information retrieval.
|
|
28
|
+
|
|
29
29
|
Args:
|
|
30
|
-
query: The
|
|
31
|
-
model: The model to use
|
|
32
|
-
temperature: Controls randomness in the model's output. Higher values make output more random, lower values more deterministic. Defaults to 1
|
|
33
|
-
system_prompt:
|
|
34
|
-
|
|
30
|
+
query: The search query or question to ask. For example: "What are the latest developments in AI regulation?"
|
|
31
|
+
model: The Perplexity model to use.
|
|
32
|
+
temperature: Controls randomness in the model's output. Higher values make the output more random, lower values make it more deterministic. Defaults to 1.
|
|
33
|
+
system_prompt: The initial system message to guide the model's behavior.
|
|
34
|
+
|
|
35
35
|
Returns:
|
|
36
|
-
A dictionary containing the generated
|
|
37
|
-
|
|
36
|
+
A dictionary containing the generated 'content' (str) and a list of 'citations' (list) from the web search.
|
|
37
|
+
|
|
38
38
|
Raises:
|
|
39
|
-
AuthenticationError: Raised when API authentication fails due to missing or invalid credentials
|
|
40
|
-
HTTPError: Raised when the API request fails or returns an error status
|
|
41
|
-
|
|
39
|
+
AuthenticationError: Raised when API authentication fails due to missing or invalid credentials.
|
|
40
|
+
HTTPError: Raised when the API request fails or returns an error status.
|
|
41
|
+
|
|
42
42
|
Tags:
|
|
43
|
-
|
|
43
|
+
search, web, research, citations, current events, important
|
|
44
44
|
"""
|
|
45
45
|
endpoint = f"{self.base_url}/chat/completions"
|
|
46
46
|
messages = []
|
|
@@ -61,5 +61,5 @@ class PerplexityApp(APIApplication):
|
|
|
61
61
|
|
|
62
62
|
def list_tools(self):
|
|
63
63
|
return [
|
|
64
|
-
self.
|
|
64
|
+
self.answer_with_search,
|
|
65
65
|
]
|