swarmauri_llm_perplexity 0.1.1.dev3__tar.gz → 0.11.0.dev1__tar.gz

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.
@@ -0,0 +1,218 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_llm_perplexity
3
+ Version: 0.11.0.dev1
4
+ Summary: Provider-specific Swarmauri import package for Perplexity chat, streaming, async, batch, and citation-aware LLM workflows.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: swarmauri,llm,swarmauri llm,perplexity,perplexity api,sonar,reasoning model,chat completions,streaming llm,async llm,batch inference,citations,retrieval,large language model,generative ai,model
8
+ Author: Jacob Stewart
9
+ Author-email: jacob@swarmauri.com
10
+ Requires-Python: >=3.10,<3.15
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Requires-Dist: swarmauri_base
29
+ Requires-Dist: swarmauri_core
30
+ Requires-Dist: swarmauri_standard
31
+ Description-Content-Type: text/markdown
32
+
33
+ ![Swarmauri Logo](https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri_sdk_brand.png)
34
+
35
+ <p align="center">
36
+ <a href="https://pepy.tech/project/swarmauri_llm_perplexity/">
37
+ <img src="https://static.pepy.tech/badge/swarmauri_llm_perplexity/month" alt="PyPI - Downloads"/></a>
38
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity/">
39
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity.svg"/></a>
40
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
41
+ <img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
42
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
43
+ <img src="https://img.shields.io/pypi/l/swarmauri_llm_perplexity" alt="PyPI - License"/></a>
44
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
45
+ <img src="https://img.shields.io/pypi/v/swarmauri_llm_perplexity?label=swarmauri_llm_perplexity&color=green" alt="PyPI - swarmauri_llm_perplexity"/></a>
46
+ <a href="https://discord.gg/N4UpBuQv8T">
47
+ <img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
48
+
49
+ # Swarmauri Perplexity LLM
50
+
51
+ `swarmauri_llm_perplexity` provides the provider-specific Swarmauri import package for `PerplexityModel`. It wraps Perplexity's chat completion API so Swarmauri applications can use the tracked `sonar` and `r1-1776` model families through the standard `Conversation` workflow.
52
+
53
+ The runtime targets `https://api.perplexity.ai/chat/completions`, supports sync, async, streaming, and batch generation, and exposes controls such as `return_citations`, `top_p`, `top_k`, `presence_penalty`, and `frequency_penalty`.
54
+
55
+ ## Why Use This Package?
56
+
57
+ - Keep Perplexity-specific imports explicit in Swarmauri applications.
58
+ - Use Swarmauri `Conversation` objects against Perplexity's hosted chat completion API.
59
+ - Stream Perplexity responses while preserving the same component model used across other provider packages.
60
+ - Access Perplexity's current repo-tracked `sonar` and reasoning model families from a dedicated package boundary.
61
+
62
+ ## FAQ
63
+
64
+ ### What does `swarmauri_llm_perplexity` install?
65
+
66
+ It installs `PerplexityModel` under `swarmauri.llms`.
67
+
68
+ ### Which Perplexity model families are tracked?
69
+
70
+ The current runtime allowlist includes `sonar-deep-research`, `sonar-reasoning-pro`, `sonar-reasoning`, `sonar-pro`, `sonar`, and `r1-1776`.
71
+
72
+ ### Does the package support streaming?
73
+
74
+ Yes. `PerplexityModel` supports `predict`, `apredict`, `stream`, `astream`, `batch`, and `abatch`.
75
+
76
+ ### Can it request citations?
77
+
78
+ Yes. The runtime exposes a `return_citations` option so the provider can include citation data when supported by the selected model.
79
+
80
+ ### Can I set both `top_p` and `top_k`?
81
+
82
+ No. The runtime rejects that combination and raises a `ValueError`.
83
+
84
+ ### Where should I verify current model and pricing details?
85
+
86
+ Use the Perplexity section in [docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md), which links to the current model cards and pricing documentation.
87
+
88
+ ## Features
89
+
90
+ - `PerplexityModel` import package for hosted Perplexity chat completion workflows.
91
+ - Sync, async, streaming, and batch generation support.
92
+ - Optional citation-return behavior for supported Perplexity responses.
93
+ - Usage metadata capture through Swarmauri `UsageData` when enabled.
94
+ - Compatibility with Python 3.10, 3.11, 3.12, 3.13, and 3.14.
95
+
96
+ ## Installation
97
+
98
+ ```bash
99
+ uv add swarmauri_llm_perplexity
100
+ ```
101
+
102
+ ```bash
103
+ pip install swarmauri_llm_perplexity
104
+ ```
105
+
106
+ ## Usage
107
+
108
+ Set `PPLX_API_KEY` in your environment before creating the model.
109
+
110
+ ### Chat Completion
111
+
112
+ ```python
113
+ import os
114
+
115
+ from swarmauri_llm_perplexity import PerplexityModel
116
+ from swarmauri_standard.conversations.Conversation import Conversation
117
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
118
+
119
+ conversation = Conversation()
120
+ conversation.add_message(HumanMessage(content="Summarize Swarmauri in two sentences."))
121
+
122
+ model = PerplexityModel(
123
+ api_key=os.environ["PPLX_API_KEY"],
124
+ name="sonar",
125
+ )
126
+ result = model.predict(conversation=conversation, max_tokens=200)
127
+
128
+ print(result.get_last().content)
129
+ ```
130
+
131
+ ### Streaming
132
+
133
+ ```python
134
+ import os
135
+
136
+ from swarmauri_llm_perplexity import PerplexityModel
137
+ from swarmauri_standard.conversations.Conversation import Conversation
138
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
139
+
140
+ conversation = Conversation()
141
+ conversation.add_message(HumanMessage(content="List three differences between hosted and local inference."))
142
+
143
+ model = PerplexityModel(
144
+ api_key=os.environ["PPLX_API_KEY"],
145
+ name="sonar-reasoning",
146
+ )
147
+
148
+ for token in model.stream(conversation=conversation, return_citations=True):
149
+ print(token, end="", flush=True)
150
+ ```
151
+
152
+ ### Async
153
+
154
+ ```python
155
+ import asyncio
156
+ import os
157
+
158
+ from swarmauri_llm_perplexity import PerplexityModel
159
+ from swarmauri_standard.conversations.Conversation import Conversation
160
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
161
+
162
+
163
+ async def main() -> None:
164
+ conversation = Conversation()
165
+ conversation.add_message(HumanMessage(content="Explain retrieval-augmented generation briefly."))
166
+
167
+ model = PerplexityModel(
168
+ api_key=os.environ["PPLX_API_KEY"],
169
+ name="sonar-pro",
170
+ )
171
+ result = await model.apredict(conversation=conversation, return_citations=True)
172
+ print(result.get_last().content)
173
+
174
+
175
+ # asyncio.run(main())
176
+ ```
177
+
178
+ ## Examples
179
+
180
+ - Use `sonar` for general-purpose hosted Perplexity chat workflows.
181
+ - Use `sonar-reasoning` or `sonar-reasoning-pro` when you want the reasoning-oriented family explicitly.
182
+ - Use `return_citations=True` when the downstream experience should expose provider citations alongside the generated response.
183
+
184
+ ## Related Packages
185
+
186
+ - [swarmauri_llm_openai](https://pypi.org/project/swarmauri_llm_openai/)
187
+ - [swarmauri_llm_mistral](https://pypi.org/project/swarmauri_llm_mistral/)
188
+ - [swarmauri_llm_groq](https://pypi.org/project/swarmauri_llm_groq/)
189
+ - [swarmauri_llm_hyperbolic](https://pypi.org/project/swarmauri_llm_hyperbolic/)
190
+ - [swarmauri_llm_deepinfra](https://pypi.org/project/swarmauri_llm_deepinfra/)
191
+ - [swarmauri_llm_playht](https://pypi.org/project/swarmauri_llm_playht/)
192
+
193
+ ## Foundational Swarmauri Packages
194
+
195
+ - [swarmauri](https://pypi.org/project/swarmauri/)
196
+ - [swarmauri_core](https://pypi.org/project/swarmauri_core/)
197
+ - [swarmauri_base](https://pypi.org/project/swarmauri_base/)
198
+ - [swarmauri_standard](https://pypi.org/project/swarmauri_standard/)
199
+
200
+ ## More Documentation
201
+
202
+ - [LLM provider model and pricing links](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md)
203
+ - [Perplexity model cards](https://docs.perplexity.ai/guides/model-cards)
204
+ - [Perplexity pricing](https://docs.perplexity.ai/docs/getting-started/pricing)
205
+
206
+ ## Best Practices
207
+
208
+ - Keep `PPLX_API_KEY` in environment variables or a secret manager.
209
+ - Choose the Perplexity model family intentionally, especially when switching between search-style and reasoning-oriented variants.
210
+ - Do not set both `top_p` and `top_k` in the same request.
211
+ - Use citation-return mode only when the consuming application is prepared to surface or process citation metadata.
212
+
213
+ ## License
214
+
215
+ Apache-2.0
216
+
217
+
218
+
@@ -0,0 +1,185 @@
1
+ ![Swarmauri Logo](https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri_sdk_brand.png)
2
+
3
+ <p align="center">
4
+ <a href="https://pepy.tech/project/swarmauri_llm_perplexity/">
5
+ <img src="https://static.pepy.tech/badge/swarmauri_llm_perplexity/month" alt="PyPI - Downloads"/></a>
6
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity/">
7
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity.svg"/></a>
8
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
9
+ <img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
10
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
11
+ <img src="https://img.shields.io/pypi/l/swarmauri_llm_perplexity" alt="PyPI - License"/></a>
12
+ <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
13
+ <img src="https://img.shields.io/pypi/v/swarmauri_llm_perplexity?label=swarmauri_llm_perplexity&color=green" alt="PyPI - swarmauri_llm_perplexity"/></a>
14
+ <a href="https://discord.gg/N4UpBuQv8T">
15
+ <img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
16
+
17
+ # Swarmauri Perplexity LLM
18
+
19
+ `swarmauri_llm_perplexity` provides the provider-specific Swarmauri import package for `PerplexityModel`. It wraps Perplexity's chat completion API so Swarmauri applications can use the tracked `sonar` and `r1-1776` model families through the standard `Conversation` workflow.
20
+
21
+ The runtime targets `https://api.perplexity.ai/chat/completions`, supports sync, async, streaming, and batch generation, and exposes controls such as `return_citations`, `top_p`, `top_k`, `presence_penalty`, and `frequency_penalty`.
22
+
23
+ ## Why Use This Package?
24
+
25
+ - Keep Perplexity-specific imports explicit in Swarmauri applications.
26
+ - Use Swarmauri `Conversation` objects against Perplexity's hosted chat completion API.
27
+ - Stream Perplexity responses while preserving the same component model used across other provider packages.
28
+ - Access Perplexity's current repo-tracked `sonar` and reasoning model families from a dedicated package boundary.
29
+
30
+ ## FAQ
31
+
32
+ ### What does `swarmauri_llm_perplexity` install?
33
+
34
+ It installs `PerplexityModel` under `swarmauri.llms`.
35
+
36
+ ### Which Perplexity model families are tracked?
37
+
38
+ The current runtime allowlist includes `sonar-deep-research`, `sonar-reasoning-pro`, `sonar-reasoning`, `sonar-pro`, `sonar`, and `r1-1776`.
39
+
40
+ ### Does the package support streaming?
41
+
42
+ Yes. `PerplexityModel` supports `predict`, `apredict`, `stream`, `astream`, `batch`, and `abatch`.
43
+
44
+ ### Can it request citations?
45
+
46
+ Yes. The runtime exposes a `return_citations` option so the provider can include citation data when supported by the selected model.
47
+
48
+ ### Can I set both `top_p` and `top_k`?
49
+
50
+ No. The runtime rejects that combination and raises a `ValueError`.
51
+
52
+ ### Where should I verify current model and pricing details?
53
+
54
+ Use the Perplexity section in [docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md), which links to the current model cards and pricing documentation.
55
+
56
+ ## Features
57
+
58
+ - `PerplexityModel` import package for hosted Perplexity chat completion workflows.
59
+ - Sync, async, streaming, and batch generation support.
60
+ - Optional citation-return behavior for supported Perplexity responses.
61
+ - Usage metadata capture through Swarmauri `UsageData` when enabled.
62
+ - Compatibility with Python 3.10, 3.11, 3.12, 3.13, and 3.14.
63
+
64
+ ## Installation
65
+
66
+ ```bash
67
+ uv add swarmauri_llm_perplexity
68
+ ```
69
+
70
+ ```bash
71
+ pip install swarmauri_llm_perplexity
72
+ ```
73
+
74
+ ## Usage
75
+
76
+ Set `PPLX_API_KEY` in your environment before creating the model.
77
+
78
+ ### Chat Completion
79
+
80
+ ```python
81
+ import os
82
+
83
+ from swarmauri_llm_perplexity import PerplexityModel
84
+ from swarmauri_standard.conversations.Conversation import Conversation
85
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
86
+
87
+ conversation = Conversation()
88
+ conversation.add_message(HumanMessage(content="Summarize Swarmauri in two sentences."))
89
+
90
+ model = PerplexityModel(
91
+ api_key=os.environ["PPLX_API_KEY"],
92
+ name="sonar",
93
+ )
94
+ result = model.predict(conversation=conversation, max_tokens=200)
95
+
96
+ print(result.get_last().content)
97
+ ```
98
+
99
+ ### Streaming
100
+
101
+ ```python
102
+ import os
103
+
104
+ from swarmauri_llm_perplexity import PerplexityModel
105
+ from swarmauri_standard.conversations.Conversation import Conversation
106
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
107
+
108
+ conversation = Conversation()
109
+ conversation.add_message(HumanMessage(content="List three differences between hosted and local inference."))
110
+
111
+ model = PerplexityModel(
112
+ api_key=os.environ["PPLX_API_KEY"],
113
+ name="sonar-reasoning",
114
+ )
115
+
116
+ for token in model.stream(conversation=conversation, return_citations=True):
117
+ print(token, end="", flush=True)
118
+ ```
119
+
120
+ ### Async
121
+
122
+ ```python
123
+ import asyncio
124
+ import os
125
+
126
+ from swarmauri_llm_perplexity import PerplexityModel
127
+ from swarmauri_standard.conversations.Conversation import Conversation
128
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
129
+
130
+
131
+ async def main() -> None:
132
+ conversation = Conversation()
133
+ conversation.add_message(HumanMessage(content="Explain retrieval-augmented generation briefly."))
134
+
135
+ model = PerplexityModel(
136
+ api_key=os.environ["PPLX_API_KEY"],
137
+ name="sonar-pro",
138
+ )
139
+ result = await model.apredict(conversation=conversation, return_citations=True)
140
+ print(result.get_last().content)
141
+
142
+
143
+ # asyncio.run(main())
144
+ ```
145
+
146
+ ## Examples
147
+
148
+ - Use `sonar` for general-purpose hosted Perplexity chat workflows.
149
+ - Use `sonar-reasoning` or `sonar-reasoning-pro` when you want the reasoning-oriented family explicitly.
150
+ - Use `return_citations=True` when the downstream experience should expose provider citations alongside the generated response.
151
+
152
+ ## Related Packages
153
+
154
+ - [swarmauri_llm_openai](https://pypi.org/project/swarmauri_llm_openai/)
155
+ - [swarmauri_llm_mistral](https://pypi.org/project/swarmauri_llm_mistral/)
156
+ - [swarmauri_llm_groq](https://pypi.org/project/swarmauri_llm_groq/)
157
+ - [swarmauri_llm_hyperbolic](https://pypi.org/project/swarmauri_llm_hyperbolic/)
158
+ - [swarmauri_llm_deepinfra](https://pypi.org/project/swarmauri_llm_deepinfra/)
159
+ - [swarmauri_llm_playht](https://pypi.org/project/swarmauri_llm_playht/)
160
+
161
+ ## Foundational Swarmauri Packages
162
+
163
+ - [swarmauri](https://pypi.org/project/swarmauri/)
164
+ - [swarmauri_core](https://pypi.org/project/swarmauri_core/)
165
+ - [swarmauri_base](https://pypi.org/project/swarmauri_base/)
166
+ - [swarmauri_standard](https://pypi.org/project/swarmauri_standard/)
167
+
168
+ ## More Documentation
169
+
170
+ - [LLM provider model and pricing links](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md)
171
+ - [Perplexity model cards](https://docs.perplexity.ai/guides/model-cards)
172
+ - [Perplexity pricing](https://docs.perplexity.ai/docs/getting-started/pricing)
173
+
174
+ ## Best Practices
175
+
176
+ - Keep `PPLX_API_KEY` in environment variables or a secret manager.
177
+ - Choose the Perplexity model family intentionally, especially when switching between search-style and reasoning-oriented variants.
178
+ - Do not set both `top_p` and `top_k` in the same request.
179
+ - Use citation-return mode only when the consuming application is prepared to surface or process citation metadata.
180
+
181
+ ## License
182
+
183
+ Apache-2.0
184
+
185
+
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "swarmauri_llm_perplexity"
3
- version = "0.1.1.dev3"
4
- description = "Swarmauri Perplexity LLM adapters from swarmauri_standard."
3
+ version = "0.11.0.dev1"
4
+ description = "Provider-specific Swarmauri import package for Perplexity chat, streaming, async, batch, and citation-aware LLM workflows."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
7
7
  repository = "http://github.com/swarmauri/swarmauri-sdk"
@@ -11,6 +11,10 @@ classifiers = [
11
11
  "Natural Language :: English",
12
12
  "Development Status :: 3 - Alpha",
13
13
  "Intended Audience :: Developers",
14
+ "Intended Audience :: Science/Research",
15
+ "Operating System :: OS Independent",
16
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
17
+ "Topic :: Software Development :: Libraries",
14
18
  "Topic :: Software Development :: Libraries :: Application Frameworks",
15
19
  "Programming Language :: Python",
16
20
  "Programming Language :: Python :: 3",
@@ -30,7 +34,19 @@ dependencies = [
30
34
  keywords = [
31
35
  "swarmauri",
32
36
  "llm",
37
+ "swarmauri llm",
33
38
  "perplexity",
39
+ "perplexity api",
40
+ "sonar",
41
+ "reasoning model",
42
+ "chat completions",
43
+ "streaming llm",
44
+ "async llm",
45
+ "batch inference",
46
+ "citations",
47
+ "retrieval",
48
+ "large language model",
49
+ "generative ai",
34
50
  "model",
35
51
  ]
36
52
 
@@ -73,7 +89,7 @@ dev = [
73
89
  "pytest-xdist>=3.6.1",
74
90
  "pytest-json-report>=1.5.0",
75
91
  "python-dotenv",
76
- "requests>=2.32.3",
92
+ "httpx>=0.27",
77
93
  "flake8>=7.0",
78
94
  "pytest-timeout>=2.3.1",
79
95
  "ruff>=0.9.9",
@@ -1,83 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_llm_perplexity
3
- Version: 0.1.1.dev3
4
- Summary: Swarmauri Perplexity LLM adapters from swarmauri_standard.
5
- License-Expression: Apache-2.0
6
- License-File: LICENSE
7
- Keywords: swarmauri,llm,perplexity,model
8
- Author: Jacob Stewart
9
- Author-email: jacob@swarmauri.com
10
- Requires-Python: >=3.10,<3.15
11
- Classifier: License :: OSI Approved :: Apache Software License
12
- Classifier: Natural Language :: English
13
- Classifier: Development Status :: 3 - Alpha
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
16
- Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
- Classifier: Programming Language :: Python :: 3.10
20
- Classifier: Programming Language :: Python :: 3.11
21
- Classifier: Programming Language :: Python :: 3.12
22
- Classifier: Programming Language :: Python :: 3.13
23
- Classifier: Programming Language :: Python :: 3.14
24
- Requires-Dist: swarmauri_base
25
- Requires-Dist: swarmauri_core
26
- Requires-Dist: swarmauri_standard
27
- Description-Content-Type: text/markdown
28
-
29
- ![Swarmauri Logo](https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri_sdk_brand.png)
30
-
31
- <p align="center">
32
- <a href="https://pepy.tech/project/swarmauri_llm_perplexity/">
33
- <img src="https://static.pepy.tech/badge/swarmauri_llm_perplexity/month" alt="PyPI - Downloads"/></a>
34
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity/">
35
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity.svg"/></a>
36
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
37
- <img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
38
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
39
- <img src="https://img.shields.io/pypi/l/swarmauri_llm_perplexity" alt="PyPI - License"/></a>
40
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
41
- <img src="https://img.shields.io/pypi/v/swarmauri_llm_perplexity?label=swarmauri_llm_perplexity&color=green" alt="PyPI - swarmauri_llm_perplexity"/></a>
42
- </p>
43
-
44
- # swarmauri_llm_perplexity
45
-
46
- Provider-specific Perplexity LLM package for Swarmauri. This package offers direct imports for PerplexityModel while keeping implementation parity with `swarmauri_standard`.
47
-
48
- ## Features
49
-
50
- - `PerplexityModel` adapter exported from `swarmauri_standard.llms.PerplexityModel`.
51
- - Compatible with Python 3.10 through 3.12.
52
-
53
- ## Installation
54
-
55
- ```bash
56
- # uv
57
- uv add swarmauri_llm_perplexity
58
-
59
- # pip
60
- pip install swarmauri_llm_perplexity
61
- ```
62
-
63
- ## Usage
64
-
65
- ```python
66
- from swarmauri_llm_perplexity import PerplexityModel
67
- from swarmauri_standard.conversations.Conversation import Conversation
68
- from swarmauri_standard.messages.HumanMessage import HumanMessage
69
-
70
- conversation = Conversation()
71
- conversation.add_message(HumanMessage(content="Hello from Swarmauri"))
72
-
73
- model = PerplexityModel()
74
- # Configure provider credentials before making requests.
75
- # result = model.predict(conversation=conversation)
76
- ```
77
-
78
- ## Workflow Notes
79
-
80
- - These adapters intentionally mirror the corresponding classes in `swarmauri_standard`.
81
- - Use the provider package that matches your deployment and credential setup.
82
- - Install only the provider packages you need to keep dependencies minimal.
83
-
@@ -1,54 +0,0 @@
1
- ![Swarmauri Logo](https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri_sdk_brand.png)
2
-
3
- <p align="center">
4
- <a href="https://pepy.tech/project/swarmauri_llm_perplexity/">
5
- <img src="https://static.pepy.tech/badge/swarmauri_llm_perplexity/month" alt="PyPI - Downloads"/></a>
6
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity/">
7
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity.svg"/></a>
8
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
9
- <img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
10
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
11
- <img src="https://img.shields.io/pypi/l/swarmauri_llm_perplexity" alt="PyPI - License"/></a>
12
- <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
13
- <img src="https://img.shields.io/pypi/v/swarmauri_llm_perplexity?label=swarmauri_llm_perplexity&color=green" alt="PyPI - swarmauri_llm_perplexity"/></a>
14
- </p>
15
-
16
- # swarmauri_llm_perplexity
17
-
18
- Provider-specific Perplexity LLM package for Swarmauri. This package offers direct imports for PerplexityModel while keeping implementation parity with `swarmauri_standard`.
19
-
20
- ## Features
21
-
22
- - `PerplexityModel` adapter exported from `swarmauri_standard.llms.PerplexityModel`.
23
- - Compatible with Python 3.10 through 3.12.
24
-
25
- ## Installation
26
-
27
- ```bash
28
- # uv
29
- uv add swarmauri_llm_perplexity
30
-
31
- # pip
32
- pip install swarmauri_llm_perplexity
33
- ```
34
-
35
- ## Usage
36
-
37
- ```python
38
- from swarmauri_llm_perplexity import PerplexityModel
39
- from swarmauri_standard.conversations.Conversation import Conversation
40
- from swarmauri_standard.messages.HumanMessage import HumanMessage
41
-
42
- conversation = Conversation()
43
- conversation.add_message(HumanMessage(content="Hello from Swarmauri"))
44
-
45
- model = PerplexityModel()
46
- # Configure provider credentials before making requests.
47
- # result = model.predict(conversation=conversation)
48
- ```
49
-
50
- ## Workflow Notes
51
-
52
- - These adapters intentionally mirror the corresponding classes in `swarmauri_standard`.
53
- - Use the provider package that matches your deployment and credential setup.
54
- - Install only the provider packages you need to keep dependencies minimal.