swarmauri_llm_llamacpp 0.1.1.dev2__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,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_llm_llamacpp
3
+ Version: 0.11.0.dev1
4
+ Summary: Provider-specific Swarmauri import package for local llama.cpp OpenAI-compatible chat, streaming, async, and batch LLM workflows.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: swarmauri,llm,swarmauri llm,llamacpp,llama.cpp,local llm,self hosted llm,openai compatible,chat completions,streaming llm,async llm,batch inference,local inference,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_llamacpp/">
37
+ <img src="https://static.pepy.tech/badge/swarmauri_llm_llamacpp/month" alt="PyPI - Downloads"/></a>
38
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp/">
39
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp.svg"/></a>
40
+ <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
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_llamacpp/">
43
+ <img src="https://img.shields.io/pypi/l/swarmauri_llm_llamacpp" alt="PyPI - License"/></a>
44
+ <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
45
+ <img src="https://img.shields.io/pypi/v/swarmauri_llm_llamacpp?label=swarmauri_llm_llamacpp&color=green" alt="PyPI - swarmauri_llm_llamacpp"/></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 llama.cpp LLM
50
+
51
+ `swarmauri_llm_llamacpp` provides the provider-specific Swarmauri import package for `LlamaCppModel`. It is intended for local or self-hosted `llama.cpp` deployments that expose an OpenAI-compatible API, not a hosted SaaS provider.
52
+
53
+ The runtime delegates to `swarmauri_standard.llms.LlamaCppModel`, which talks to a local `llama.cpp` server at `http://localhost:8080/v1` by default, discovers models from `/models`, and sends chat completion requests to `/chat/completions`.
54
+
55
+ ## Why Use This Package?
56
+
57
+ - Keep local `llama.cpp` model usage explicit in Swarmauri applications.
58
+ - Run self-hosted LLM inference through the same `Conversation` workflow used by other Swarmauri provider packages.
59
+ - Support sync, async, streaming, and batch execution against an OpenAI-compatible local endpoint.
60
+ - Avoid coupling local model runtime choices to hosted-provider packages.
61
+
62
+ ## FAQ
63
+
64
+ ### What does `swarmauri_llm_llamacpp` install?
65
+
66
+ It installs the `LlamaCppModel` provider package entry point under `swarmauri.llms`.
67
+
68
+ ### Does this package download or bundle a model?
69
+
70
+ No. You must run your own `llama.cpp` server and make at least one model available through its OpenAI-compatible API.
71
+
72
+ ### Which endpoint does the runtime call?
73
+
74
+ By default the underlying runtime targets `http://localhost:8080/v1`, queries `/models` for model discovery, and calls `/chat/completions` for inference.
75
+
76
+ ### Does it require an API key?
77
+
78
+ Usually no for local development. The runtime can include an API key if your self-hosted endpoint is configured to require one.
79
+
80
+ ### Does it support streaming and async workflows?
81
+
82
+ Yes. `LlamaCppModel` supports `predict`, `apredict`, `stream`, `astream`, `batch`, and `abatch`.
83
+
84
+ ### Where should I verify model pricing?
85
+
86
+ There is no provider pricing surface for `llama.cpp` itself. Cost depends on your hardware, hosting, and model selection. See [docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md) for the project-level note on local-runtime pricing.
87
+
88
+ ## Features
89
+
90
+ - `LlamaCppModel` import package for local or self-hosted `llama.cpp` inference.
91
+ - OpenAI-compatible chat completion requests against a local `llama.cpp` server.
92
+ - Automatic model discovery via the `/models` endpoint.
93
+ - Sync, async, streaming, and batch generation workflows.
94
+ - Optional JSON response mode and stop-sequence support.
95
+ - Compatibility with Python 3.10, 3.11, 3.12, 3.13, and 3.14.
96
+
97
+ ## Installation
98
+
99
+ ```bash
100
+ uv add swarmauri_llm_llamacpp
101
+ ```
102
+
103
+ ```bash
104
+ pip install swarmauri_llm_llamacpp
105
+ ```
106
+
107
+ ## Usage
108
+
109
+ Start a `llama.cpp` server that exposes an OpenAI-compatible API before creating the model.
110
+
111
+ ### Basic Chat Completion
112
+
113
+ ```python
114
+ from swarmauri_llm_llamacpp import LlamaCppModel
115
+ from swarmauri_standard.conversations.Conversation import Conversation
116
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
117
+
118
+ conversation = Conversation()
119
+ conversation.add_message(HumanMessage(content="Explain Swarmauri in one paragraph."))
120
+
121
+ model = LlamaCppModel()
122
+ result = model.predict(conversation=conversation, max_tokens=200)
123
+
124
+ print(result.get_last().content)
125
+ ```
126
+
127
+ ### Streaming
128
+
129
+ ```python
130
+ from swarmauri_llm_llamacpp import LlamaCppModel
131
+ from swarmauri_standard.conversations.Conversation import Conversation
132
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
133
+
134
+ conversation = Conversation()
135
+ conversation.add_message(HumanMessage(content="Write a short haiku about local inference."))
136
+
137
+ model = LlamaCppModel()
138
+
139
+ for token in model.stream(conversation=conversation):
140
+ print(token, end="", flush=True)
141
+ ```
142
+
143
+ ### Async
144
+
145
+ ```python
146
+ import asyncio
147
+
148
+ from swarmauri_llm_llamacpp import LlamaCppModel
149
+ from swarmauri_standard.conversations.Conversation import Conversation
150
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
151
+
152
+
153
+ async def main() -> None:
154
+ conversation = Conversation()
155
+ conversation.add_message(HumanMessage(content="List three reasons to self-host an LLM."))
156
+
157
+ model = LlamaCppModel()
158
+ result = await model.apredict(conversation=conversation)
159
+ print(result.get_last().content)
160
+
161
+
162
+ # asyncio.run(main())
163
+ ```
164
+
165
+ ## Examples
166
+
167
+ - Use `LlamaCppModel` when you want Swarmauri agents to run against a local `llama.cpp` server instead of a remote provider.
168
+ - Use `stream` or `astream` when the UI should render tokens as they are produced by the local model.
169
+ - Use `enable_json=True` when your downstream logic expects structured JSON output from the model.
170
+
171
+ ## Related Packages
172
+
173
+ - [swarmauri_llm_openai](https://pypi.org/project/swarmauri_llm_openai/)
174
+ - [swarmauri_llm_mistral](https://pypi.org/project/swarmauri_llm_mistral/)
175
+ - [swarmauri_llm_deepinfra](https://pypi.org/project/swarmauri_llm_deepinfra/)
176
+ - [swarmauri_llm_groq](https://pypi.org/project/swarmauri_llm_groq/)
177
+ - [swarmauri_llm_hyperbolic](https://pypi.org/project/swarmauri_llm_hyperbolic/)
178
+ - [swarmauri_llm_leptonai](https://pypi.org/project/swarmauri_llm_leptonai/)
179
+
180
+ ## Foundational Swarmauri Packages
181
+
182
+ - [swarmauri](https://pypi.org/project/swarmauri/)
183
+ - [swarmauri_core](https://pypi.org/project/swarmauri_core/)
184
+ - [swarmauri_base](https://pypi.org/project/swarmauri_base/)
185
+ - [swarmauri_standard](https://pypi.org/project/swarmauri_standard/)
186
+
187
+ ## More Documentation
188
+
189
+ - [LLM provider model and pricing links](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md)
190
+ - [llama.cpp](https://github.com/ggml-org/llama.cpp)
191
+
192
+ ## Best Practices
193
+
194
+ - Keep your `llama.cpp` server configuration aligned with the OpenAI-compatible routes this runtime expects.
195
+ - Confirm the local server is reachable before starting agent workflows that depend on it.
196
+ - Use self-hosted model names returned by `/models` instead of hard-coding assumptions about local model IDs.
197
+ - Tune `temperature`, `max_tokens`, `stop`, and `enable_json` to match your application contract.
198
+
199
+ ## License
200
+
201
+ Apache-2.0
202
+
203
+
204
+
@@ -0,0 +1,171 @@
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_llamacpp/">
5
+ <img src="https://static.pepy.tech/badge/swarmauri_llm_llamacpp/month" alt="PyPI - Downloads"/></a>
6
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp/">
7
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp.svg"/></a>
8
+ <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
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_llamacpp/">
11
+ <img src="https://img.shields.io/pypi/l/swarmauri_llm_llamacpp" alt="PyPI - License"/></a>
12
+ <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
13
+ <img src="https://img.shields.io/pypi/v/swarmauri_llm_llamacpp?label=swarmauri_llm_llamacpp&color=green" alt="PyPI - swarmauri_llm_llamacpp"/></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 llama.cpp LLM
18
+
19
+ `swarmauri_llm_llamacpp` provides the provider-specific Swarmauri import package for `LlamaCppModel`. It is intended for local or self-hosted `llama.cpp` deployments that expose an OpenAI-compatible API, not a hosted SaaS provider.
20
+
21
+ The runtime delegates to `swarmauri_standard.llms.LlamaCppModel`, which talks to a local `llama.cpp` server at `http://localhost:8080/v1` by default, discovers models from `/models`, and sends chat completion requests to `/chat/completions`.
22
+
23
+ ## Why Use This Package?
24
+
25
+ - Keep local `llama.cpp` model usage explicit in Swarmauri applications.
26
+ - Run self-hosted LLM inference through the same `Conversation` workflow used by other Swarmauri provider packages.
27
+ - Support sync, async, streaming, and batch execution against an OpenAI-compatible local endpoint.
28
+ - Avoid coupling local model runtime choices to hosted-provider packages.
29
+
30
+ ## FAQ
31
+
32
+ ### What does `swarmauri_llm_llamacpp` install?
33
+
34
+ It installs the `LlamaCppModel` provider package entry point under `swarmauri.llms`.
35
+
36
+ ### Does this package download or bundle a model?
37
+
38
+ No. You must run your own `llama.cpp` server and make at least one model available through its OpenAI-compatible API.
39
+
40
+ ### Which endpoint does the runtime call?
41
+
42
+ By default the underlying runtime targets `http://localhost:8080/v1`, queries `/models` for model discovery, and calls `/chat/completions` for inference.
43
+
44
+ ### Does it require an API key?
45
+
46
+ Usually no for local development. The runtime can include an API key if your self-hosted endpoint is configured to require one.
47
+
48
+ ### Does it support streaming and async workflows?
49
+
50
+ Yes. `LlamaCppModel` supports `predict`, `apredict`, `stream`, `astream`, `batch`, and `abatch`.
51
+
52
+ ### Where should I verify model pricing?
53
+
54
+ There is no provider pricing surface for `llama.cpp` itself. Cost depends on your hardware, hosting, and model selection. See [docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md) for the project-level note on local-runtime pricing.
55
+
56
+ ## Features
57
+
58
+ - `LlamaCppModel` import package for local or self-hosted `llama.cpp` inference.
59
+ - OpenAI-compatible chat completion requests against a local `llama.cpp` server.
60
+ - Automatic model discovery via the `/models` endpoint.
61
+ - Sync, async, streaming, and batch generation workflows.
62
+ - Optional JSON response mode and stop-sequence support.
63
+ - Compatibility with Python 3.10, 3.11, 3.12, 3.13, and 3.14.
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ uv add swarmauri_llm_llamacpp
69
+ ```
70
+
71
+ ```bash
72
+ pip install swarmauri_llm_llamacpp
73
+ ```
74
+
75
+ ## Usage
76
+
77
+ Start a `llama.cpp` server that exposes an OpenAI-compatible API before creating the model.
78
+
79
+ ### Basic Chat Completion
80
+
81
+ ```python
82
+ from swarmauri_llm_llamacpp import LlamaCppModel
83
+ from swarmauri_standard.conversations.Conversation import Conversation
84
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
85
+
86
+ conversation = Conversation()
87
+ conversation.add_message(HumanMessage(content="Explain Swarmauri in one paragraph."))
88
+
89
+ model = LlamaCppModel()
90
+ result = model.predict(conversation=conversation, max_tokens=200)
91
+
92
+ print(result.get_last().content)
93
+ ```
94
+
95
+ ### Streaming
96
+
97
+ ```python
98
+ from swarmauri_llm_llamacpp import LlamaCppModel
99
+ from swarmauri_standard.conversations.Conversation import Conversation
100
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
101
+
102
+ conversation = Conversation()
103
+ conversation.add_message(HumanMessage(content="Write a short haiku about local inference."))
104
+
105
+ model = LlamaCppModel()
106
+
107
+ for token in model.stream(conversation=conversation):
108
+ print(token, end="", flush=True)
109
+ ```
110
+
111
+ ### Async
112
+
113
+ ```python
114
+ import asyncio
115
+
116
+ from swarmauri_llm_llamacpp import LlamaCppModel
117
+ from swarmauri_standard.conversations.Conversation import Conversation
118
+ from swarmauri_standard.messages.HumanMessage import HumanMessage
119
+
120
+
121
+ async def main() -> None:
122
+ conversation = Conversation()
123
+ conversation.add_message(HumanMessage(content="List three reasons to self-host an LLM."))
124
+
125
+ model = LlamaCppModel()
126
+ result = await model.apredict(conversation=conversation)
127
+ print(result.get_last().content)
128
+
129
+
130
+ # asyncio.run(main())
131
+ ```
132
+
133
+ ## Examples
134
+
135
+ - Use `LlamaCppModel` when you want Swarmauri agents to run against a local `llama.cpp` server instead of a remote provider.
136
+ - Use `stream` or `astream` when the UI should render tokens as they are produced by the local model.
137
+ - Use `enable_json=True` when your downstream logic expects structured JSON output from the model.
138
+
139
+ ## Related Packages
140
+
141
+ - [swarmauri_llm_openai](https://pypi.org/project/swarmauri_llm_openai/)
142
+ - [swarmauri_llm_mistral](https://pypi.org/project/swarmauri_llm_mistral/)
143
+ - [swarmauri_llm_deepinfra](https://pypi.org/project/swarmauri_llm_deepinfra/)
144
+ - [swarmauri_llm_groq](https://pypi.org/project/swarmauri_llm_groq/)
145
+ - [swarmauri_llm_hyperbolic](https://pypi.org/project/swarmauri_llm_hyperbolic/)
146
+ - [swarmauri_llm_leptonai](https://pypi.org/project/swarmauri_llm_leptonai/)
147
+
148
+ ## Foundational Swarmauri Packages
149
+
150
+ - [swarmauri](https://pypi.org/project/swarmauri/)
151
+ - [swarmauri_core](https://pypi.org/project/swarmauri_core/)
152
+ - [swarmauri_base](https://pypi.org/project/swarmauri_base/)
153
+ - [swarmauri_standard](https://pypi.org/project/swarmauri_standard/)
154
+
155
+ ## More Documentation
156
+
157
+ - [LLM provider model and pricing links](../../../docs/LLM_PROVIDER_MODEL_PRICING_LINKS.md)
158
+ - [llama.cpp](https://github.com/ggml-org/llama.cpp)
159
+
160
+ ## Best Practices
161
+
162
+ - Keep your `llama.cpp` server configuration aligned with the OpenAI-compatible routes this runtime expects.
163
+ - Confirm the local server is reachable before starting agent workflows that depend on it.
164
+ - Use self-hosted model names returned by `/models` instead of hard-coding assumptions about local model IDs.
165
+ - Tune `temperature`, `max_tokens`, `stop`, and `enable_json` to match your application contract.
166
+
167
+ ## License
168
+
169
+ Apache-2.0
170
+
171
+
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "swarmauri_llm_llamacpp"
3
- version = "0.1.1.dev2"
4
- description = "Swarmauri Llamacpp LLM adapters from swarmauri_standard."
3
+ version = "0.11.0.dev1"
4
+ description = "Provider-specific Swarmauri import package for local llama.cpp OpenAI-compatible chat, streaming, async, and batch 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
  "llamacpp",
39
+ "llama.cpp",
40
+ "local llm",
41
+ "self hosted llm",
42
+ "openai compatible",
43
+ "chat completions",
44
+ "streaming llm",
45
+ "async llm",
46
+ "batch inference",
47
+ "local inference",
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,84 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_llm_llamacpp
3
- Version: 0.1.1.dev2
4
- Summary: Swarmauri Llamacpp LLM adapters from swarmauri_standard.
5
- License-Expression: Apache-2.0
6
- License-File: LICENSE
7
- Keywords: swarmauri,llm,llamacpp,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_llamacpp/">
33
- <img src="https://static.pepy.tech/badge/swarmauri_llm_llamacpp/month" alt="PyPI - Downloads"/></a>
34
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp/">
35
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp.svg"/></a>
36
- <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
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_llamacpp/">
39
- <img src="https://img.shields.io/pypi/l/swarmauri_llm_llamacpp" alt="PyPI - License"/></a>
40
- <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
41
- <img src="https://img.shields.io/pypi/v/swarmauri_llm_llamacpp?label=swarmauri_llm_llamacpp&color=green" alt="PyPI - swarmauri_llm_llamacpp"/></a>
42
- </p>
43
- ---
44
-
45
- # swarmauri_llm_llamacpp
46
-
47
- Provider-specific Llamacpp LLM package for Swarmauri. This package offers direct imports for LlamaCppModel while keeping implementation parity with `swarmauri_standard`.
48
-
49
- ## Features
50
-
51
- - `LlamaCppModel` adapter exported from `swarmauri_standard.llms.LlamaCppModel`.
52
- - Compatible with Python 3.10 through 3.12.
53
-
54
- ## Installation
55
-
56
- ```bash
57
- # uv
58
- uv add swarmauri_llm_llamacpp
59
-
60
- # pip
61
- pip install swarmauri_llm_llamacpp
62
- ```
63
-
64
- ## Usage
65
-
66
- ```python
67
- from swarmauri_llm_llamacpp import LlamaCppModel
68
- from swarmauri_standard.conversations.Conversation import Conversation
69
- from swarmauri_standard.messages.HumanMessage import HumanMessage
70
-
71
- conversation = Conversation()
72
- conversation.add_message(HumanMessage(content="Hello from Swarmauri"))
73
-
74
- model = LlamaCppModel()
75
- # Configure provider credentials before making requests.
76
- # result = model.predict(conversation=conversation)
77
- ```
78
-
79
- ## Workflow Notes
80
-
81
- - These adapters intentionally mirror the corresponding classes in `swarmauri_standard`.
82
- - Use the provider package that matches your deployment and credential setup.
83
- - Install only the provider packages you need to keep dependencies minimal.
84
-
@@ -1,55 +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_llamacpp/">
5
- <img src="https://static.pepy.tech/badge/swarmauri_llm_llamacpp/month" alt="PyPI - Downloads"/></a>
6
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp/">
7
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_llamacpp.svg"/></a>
8
- <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
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_llamacpp/">
11
- <img src="https://img.shields.io/pypi/l/swarmauri_llm_llamacpp" alt="PyPI - License"/></a>
12
- <a href="https://pypi.org/project/swarmauri_llm_llamacpp/">
13
- <img src="https://img.shields.io/pypi/v/swarmauri_llm_llamacpp?label=swarmauri_llm_llamacpp&color=green" alt="PyPI - swarmauri_llm_llamacpp"/></a>
14
- </p>
15
- ---
16
-
17
- # swarmauri_llm_llamacpp
18
-
19
- Provider-specific Llamacpp LLM package for Swarmauri. This package offers direct imports for LlamaCppModel while keeping implementation parity with `swarmauri_standard`.
20
-
21
- ## Features
22
-
23
- - `LlamaCppModel` adapter exported from `swarmauri_standard.llms.LlamaCppModel`.
24
- - Compatible with Python 3.10 through 3.12.
25
-
26
- ## Installation
27
-
28
- ```bash
29
- # uv
30
- uv add swarmauri_llm_llamacpp
31
-
32
- # pip
33
- pip install swarmauri_llm_llamacpp
34
- ```
35
-
36
- ## Usage
37
-
38
- ```python
39
- from swarmauri_llm_llamacpp import LlamaCppModel
40
- from swarmauri_standard.conversations.Conversation import Conversation
41
- from swarmauri_standard.messages.HumanMessage import HumanMessage
42
-
43
- conversation = Conversation()
44
- conversation.add_message(HumanMessage(content="Hello from Swarmauri"))
45
-
46
- model = LlamaCppModel()
47
- # Configure provider credentials before making requests.
48
- # result = model.predict(conversation=conversation)
49
- ```
50
-
51
- ## Workflow Notes
52
-
53
- - These adapters intentionally mirror the corresponding classes in `swarmauri_standard`.
54
- - Use the provider package that matches your deployment and credential setup.
55
- - Install only the provider packages you need to keep dependencies minimal.