swarmauri_provider_amazon_nova 0.1.0__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.
- swarmauri_provider_amazon_nova-0.1.0/LICENSE +13 -0
- swarmauri_provider_amazon_nova-0.1.0/NOTICE +7 -0
- swarmauri_provider_amazon_nova-0.1.0/PKG-INFO +320 -0
- swarmauri_provider_amazon_nova-0.1.0/README.md +298 -0
- swarmauri_provider_amazon_nova-0.1.0/pyproject.toml +84 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaAuthConfig.py +39 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaEndpoints.py +27 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaErrorMapper.py +14 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaModelCatalog.py +15 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaProvider.py +86 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaToolSchemaConverter.py +12 -0
- swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/__init__.py +15 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2024 Jacob Stewart
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_provider_amazon_nova
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Aggregated Amazon Nova provider resources for Swarmauri models.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: swarmauri,provider,amazon nova,bedrock,nova sonic
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.15
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Requires-Dist: swarmauri_base (>=0.11.0,<0.12)
|
|
19
|
+
Requires-Dist: swarmauri_core (>=0.11.0,<0.12)
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# swarmauri_provider_amazon_nova
|
|
23
|
+
|
|
24
|
+
<!-- readme-standards:begin branding -->
|
|
25
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
26
|
+
<p align="center"><strong>swarmauri_provider_amazon_nova</strong></p>
|
|
27
|
+
<p align="center">Aggregated Amazon Nova provider resources for Swarmauri models.</p>
|
|
28
|
+
<p align="center">
|
|
29
|
+
<a href="https://pypi.org/project/swarmauri_provider_amazon_nova/"><img alt="pypi: swarmauri_provider_amazon_nova" src="https://img.shields.io/pypi/v/swarmauri_provider_amazon_nova?labelColor=1E293B&color=1D4ED8"></a>
|
|
30
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.1.0&labelColor=1E293B&color=4338CA"></a>
|
|
31
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
32
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Layer: community" src="https://img.shields.io/static/v1?label=Layer&message=community&labelColor=1E293B&color=6D28D9"></a>
|
|
33
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
34
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
35
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
36
|
+
</p>
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://pypi.org/project/swarmauri_provider_amazon_nova/"><img alt="Monthly PyPI downloads: swarmauri_provider_amazon_nova" src="https://img.shields.io/pypi/dm/swarmauri_provider_amazon_nova?labelColor=1E293B&color=0E7490"></a>
|
|
39
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md"><img alt="README hits: swarmauri_provider_amazon_nova" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/50-community/swarmauri_provider_amazon_nova/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
40
|
+
</p>
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
43
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
44
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
45
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
46
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
47
|
+
</p>
|
|
48
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
49
|
+
<!-- readme-standards:end branding -->
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Overview
|
|
54
|
+
|
|
55
|
+
### Summary
|
|
56
|
+
|
|
57
|
+
[](https://pypi.org/project/swarmauri_provider_amazon_nova/) [](https://pypi.org/project/swarmauri_provider_amazon_nova/) [](LICENSE) [](https://pepy.tech/project/swarmauri_provider_amazon_nova) [](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)
|
|
58
|
+
|
|
59
|
+
### Why This Package
|
|
60
|
+
|
|
61
|
+
`swarmauri_provider_amazon_nova` isolates this responsibility: Aggregated Amazon Nova provider resources for Swarmauri models. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) exposes `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
|
|
62
|
+
|
|
63
|
+
### When to Use
|
|
64
|
+
|
|
65
|
+
Choose `swarmauri_provider_amazon_nova` when your integration needs aggregated Amazon Nova provider resources for Swarmauri models. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
- AWS identity, region, Bedrock endpoint, catalog, error, and schema resources.
|
|
70
|
+
- Shared provider resource for Amazon Nova model families.
|
|
71
|
+
|
|
72
|
+
### Non-Goals
|
|
73
|
+
|
|
74
|
+
`swarmauri_provider_amazon_nova` owns aggregated Amazon Nova provider resources for Swarmauri models. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Getting Started
|
|
79
|
+
|
|
80
|
+
### Prerequisites
|
|
81
|
+
|
|
82
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`. Read the example’s inputs and service requirements before execution.
|
|
83
|
+
|
|
84
|
+
### Installation
|
|
85
|
+
|
|
86
|
+
`uv add swarmauri_provider_amazon_nova` or `pip install swarmauri_provider_amazon_nova`.
|
|
87
|
+
|
|
88
|
+
#### uv
|
|
89
|
+
|
|
90
|
+
<!-- readme-standards:begin installation.uv -->
|
|
91
|
+
```bash
|
|
92
|
+
uv add swarmauri_provider_amazon_nova
|
|
93
|
+
```
|
|
94
|
+
<!-- readme-standards:end installation.uv -->
|
|
95
|
+
|
|
96
|
+
#### pip
|
|
97
|
+
|
|
98
|
+
<!-- readme-standards:begin installation.pip -->
|
|
99
|
+
```bash
|
|
100
|
+
python -m pip install swarmauri_provider_amazon_nova
|
|
101
|
+
```
|
|
102
|
+
<!-- readme-standards:end installation.pip -->
|
|
103
|
+
|
|
104
|
+
#### Poetry
|
|
105
|
+
|
|
106
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
107
|
+
```bash
|
|
108
|
+
poetry add swarmauri_provider_amazon_nova
|
|
109
|
+
```
|
|
110
|
+
<!-- readme-standards:end installation.poetry -->
|
|
111
|
+
|
|
112
|
+
### Quick Start
|
|
113
|
+
|
|
114
|
+
#### Example
|
|
115
|
+
|
|
116
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
117
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/docs/readme/quick_start.py).
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
import importlib
|
|
121
|
+
|
|
122
|
+
package = importlib.import_module("swarmauri_provider_amazon_nova")
|
|
123
|
+
assert package.__name__ == "swarmauri_provider_amazon_nova"
|
|
124
|
+
```
|
|
125
|
+
<!-- readme-standards:end example.quick-start -->
|
|
126
|
+
|
|
127
|
+
#### Expected Result
|
|
128
|
+
|
|
129
|
+
This quick start is explicitly an import smoke check for `swarmauri_provider_amazon_nova`. It confirms that the documented namespace loads; it does not demonstrate or certify a complete application workflow. The detailed source and retained usage guidance below describe the integration boundary.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Usage
|
|
134
|
+
|
|
135
|
+
### Common Workflows
|
|
136
|
+
|
|
137
|
+
<!-- readme-standards:begin example.usage -->
|
|
138
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/docs/readme/usage.py).
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import importlib
|
|
142
|
+
|
|
143
|
+
package = importlib.import_module("swarmauri_provider_amazon_nova")
|
|
144
|
+
assert package.__name__ == "swarmauri_provider_amazon_nova"
|
|
145
|
+
```
|
|
146
|
+
<!-- readme-standards:end example.usage -->
|
|
147
|
+
|
|
148
|
+
Inject `AmazonNovaProvider(region=...)` into a Nova model adapter.
|
|
149
|
+
|
|
150
|
+
### Configuration
|
|
151
|
+
|
|
152
|
+
Configure `swarmauri_provider_amazon_nova` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
153
|
+
|
|
154
|
+
### Error Handling
|
|
155
|
+
|
|
156
|
+
The inspected `swarmauri_provider_amazon_nova` source raises `ValueError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
|
|
157
|
+
|
|
158
|
+
### Best Practices
|
|
159
|
+
|
|
160
|
+
Use the explicit `swarmauri_provider_amazon_nova` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`; an import or successful installation alone does not establish its runtime guarantees.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Package Boundary
|
|
165
|
+
|
|
166
|
+
### What It Owns
|
|
167
|
+
|
|
168
|
+
`swarmauri_provider_amazon_nova` is located in `community` and owns aggregated Amazon Nova provider resources for Swarmauri models. Source-declared APIs include `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) records its direct dependency boundary.
|
|
169
|
+
|
|
170
|
+
### Public API and Import Surfaces
|
|
171
|
+
|
|
172
|
+
Import namespace: `swarmauri_provider_amazon_nova`.
|
|
173
|
+
|
|
174
|
+
Source-declared exports or types: `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`.
|
|
175
|
+
|
|
176
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
177
|
+
|
|
178
|
+
### Entry Points
|
|
179
|
+
|
|
180
|
+
<!-- readme-standards:begin entry-points -->
|
|
181
|
+
- `swarmauri.model_providers` → `AmazonNovaProvider` → `swarmauri_provider_amazon_nova:AmazonNovaProvider`
|
|
182
|
+
<!-- readme-standards:end entry-points -->
|
|
183
|
+
|
|
184
|
+
### Injected Dependencies
|
|
185
|
+
|
|
186
|
+
The direct installation dependencies of `swarmauri_provider_amazon_nova` are `swarmauri-core`, `swarmauri-base`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py).
|
|
187
|
+
|
|
188
|
+
### Protocol Consumers
|
|
189
|
+
|
|
190
|
+
Direct consumers in this checkout’s package manifests include `swarmauri_live_model_amazon_nova`. These edges describe declared dependencies, not protocol-conformance evidence.
|
|
191
|
+
|
|
192
|
+
### Extensions
|
|
193
|
+
|
|
194
|
+
For `swarmauri_provider_amazon_nova`, use the source-declared public interfaces (`AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Operations and Readiness
|
|
199
|
+
|
|
200
|
+
### Operational Requirements
|
|
201
|
+
|
|
202
|
+
Operate `swarmauri_provider_amazon_nova` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
203
|
+
|
|
204
|
+
### Health and Observability
|
|
205
|
+
|
|
206
|
+
This README does not establish a standalone health endpoint for `swarmauri_provider_amazon_nova`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
207
|
+
|
|
208
|
+
### Security and Resource Limits
|
|
209
|
+
|
|
210
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py). The `swarmauri_provider_amazon_nova` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
211
|
+
|
|
212
|
+
### Compatibility
|
|
213
|
+
|
|
214
|
+
This source version of `swarmauri_provider_amazon_nova` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Verification
|
|
219
|
+
|
|
220
|
+
### Tests
|
|
221
|
+
|
|
222
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_provider_amazon_nova` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
|
|
223
|
+
|
|
224
|
+
- [tests/unit/test_amazon_nova_provider.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_amazon_nova_provider.py)
|
|
225
|
+
- [tests/unit/test_helper_methods.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_helper_methods.py)
|
|
226
|
+
- [tests/unit/test_package_contract.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_package_contract.py)
|
|
227
|
+
|
|
228
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
229
|
+
|
|
230
|
+
### Certification Status
|
|
231
|
+
|
|
232
|
+
No external certification is asserted for `swarmauri_provider_amazon_nova` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
233
|
+
|
|
234
|
+
### Evidence
|
|
235
|
+
|
|
236
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## FAQ
|
|
241
|
+
|
|
242
|
+
### Why
|
|
243
|
+
|
|
244
|
+
**Why select this package?** `swarmauri_provider_amazon_nova` provides aggregated Amazon Nova provider resources for Swarmauri models; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
|
|
245
|
+
|
|
246
|
+
### How
|
|
247
|
+
|
|
248
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_provider_amazon_nova`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) for the exact types and signatures involved.
|
|
249
|
+
|
|
250
|
+
### When
|
|
251
|
+
|
|
252
|
+
**When should I validate an upgrade?** Recheck `swarmauri_provider_amazon_nova` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## Documentation and Related Packages
|
|
257
|
+
|
|
258
|
+
### More Documentation
|
|
259
|
+
|
|
260
|
+
The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) provide the supporting context for `swarmauri_provider_amazon_nova`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
|
|
261
|
+
|
|
262
|
+
### Related Packages
|
|
263
|
+
|
|
264
|
+
- [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
|
|
265
|
+
- [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
|
|
266
|
+
|
|
267
|
+
### Project Links
|
|
268
|
+
|
|
269
|
+
<!-- readme-standards:begin project-links -->
|
|
270
|
+
- [pypi: swarmauri_provider_amazon_nova](https://pypi.org/project/swarmauri_provider_amazon_nova/)
|
|
271
|
+
<!-- readme-standards:end project-links -->
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Contributing
|
|
276
|
+
|
|
277
|
+
### How to Contribute
|
|
278
|
+
|
|
279
|
+
Follow the [contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md) and include a focused example or regression for changes to `swarmauri_provider_amazon_nova`. Keep package behavior, its documented boundary, and its tests aligned.
|
|
280
|
+
|
|
281
|
+
### Development Setup
|
|
282
|
+
|
|
283
|
+
Work from the `pkgs/50-community/swarmauri_provider_amazon_nova` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
284
|
+
|
|
285
|
+
### Notes for Maintainers
|
|
286
|
+
|
|
287
|
+
Edit authored prose directly in this `swarmauri_provider_amazon_nova` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Governance
|
|
292
|
+
|
|
293
|
+
### Ownership and Decision Making
|
|
294
|
+
|
|
295
|
+
Changes to `swarmauri_provider_amazon_nova` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
296
|
+
|
|
297
|
+
### Standards and Policies
|
|
298
|
+
|
|
299
|
+
`swarmauri_provider_amazon_nova` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
300
|
+
|
|
301
|
+
### Lifecycle and Migration
|
|
302
|
+
|
|
303
|
+
The `swarmauri_provider_amazon_nova` source version is `0.1.0`.
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## License and Attribution
|
|
308
|
+
|
|
309
|
+
### License
|
|
310
|
+
|
|
311
|
+
<!-- readme-standards:begin license -->
|
|
312
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/LICENSE).
|
|
313
|
+
<!-- readme-standards:end license -->
|
|
314
|
+
|
|
315
|
+
### Notices
|
|
316
|
+
|
|
317
|
+
<!-- readme-standards:begin notices -->
|
|
318
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/NOTICE) for attribution.
|
|
319
|
+
<!-- readme-standards:end notices -->
|
|
320
|
+
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# swarmauri_provider_amazon_nova
|
|
2
|
+
|
|
3
|
+
<!-- readme-standards:begin branding -->
|
|
4
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
5
|
+
<p align="center"><strong>swarmauri_provider_amazon_nova</strong></p>
|
|
6
|
+
<p align="center">Aggregated Amazon Nova provider resources for Swarmauri models.</p>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/swarmauri_provider_amazon_nova/"><img alt="pypi: swarmauri_provider_amazon_nova" src="https://img.shields.io/pypi/v/swarmauri_provider_amazon_nova?labelColor=1E293B&color=1D4ED8"></a>
|
|
9
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.1.0&labelColor=1E293B&color=4338CA"></a>
|
|
10
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
11
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml"><img alt="Layer: community" src="https://img.shields.io/static/v1?label=Layer&message=community&labelColor=1E293B&color=6D28D9"></a>
|
|
12
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
13
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
14
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
15
|
+
</p>
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://pypi.org/project/swarmauri_provider_amazon_nova/"><img alt="Monthly PyPI downloads: swarmauri_provider_amazon_nova" src="https://img.shields.io/pypi/dm/swarmauri_provider_amazon_nova?labelColor=1E293B&color=0E7490"></a>
|
|
18
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md"><img alt="README hits: swarmauri_provider_amazon_nova" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/50-community/swarmauri_provider_amazon_nova/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
19
|
+
</p>
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
22
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
23
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
24
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
25
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
26
|
+
</p>
|
|
27
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
28
|
+
<!-- readme-standards:end branding -->
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Overview
|
|
33
|
+
|
|
34
|
+
### Summary
|
|
35
|
+
|
|
36
|
+
[](https://pypi.org/project/swarmauri_provider_amazon_nova/) [](https://pypi.org/project/swarmauri_provider_amazon_nova/) [](LICENSE) [](https://pepy.tech/project/swarmauri_provider_amazon_nova) [](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)
|
|
37
|
+
|
|
38
|
+
### Why This Package
|
|
39
|
+
|
|
40
|
+
`swarmauri_provider_amazon_nova` isolates this responsibility: Aggregated Amazon Nova provider resources for Swarmauri models. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) exposes `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
|
|
41
|
+
|
|
42
|
+
### When to Use
|
|
43
|
+
|
|
44
|
+
Choose `swarmauri_provider_amazon_nova` when your integration needs aggregated Amazon Nova provider resources for Swarmauri models. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- AWS identity, region, Bedrock endpoint, catalog, error, and schema resources.
|
|
49
|
+
- Shared provider resource for Amazon Nova model families.
|
|
50
|
+
|
|
51
|
+
### Non-Goals
|
|
52
|
+
|
|
53
|
+
`swarmauri_provider_amazon_nova` owns aggregated Amazon Nova provider resources for Swarmauri models. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Getting Started
|
|
58
|
+
|
|
59
|
+
### Prerequisites
|
|
60
|
+
|
|
61
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`. Read the example’s inputs and service requirements before execution.
|
|
62
|
+
|
|
63
|
+
### Installation
|
|
64
|
+
|
|
65
|
+
`uv add swarmauri_provider_amazon_nova` or `pip install swarmauri_provider_amazon_nova`.
|
|
66
|
+
|
|
67
|
+
#### uv
|
|
68
|
+
|
|
69
|
+
<!-- readme-standards:begin installation.uv -->
|
|
70
|
+
```bash
|
|
71
|
+
uv add swarmauri_provider_amazon_nova
|
|
72
|
+
```
|
|
73
|
+
<!-- readme-standards:end installation.uv -->
|
|
74
|
+
|
|
75
|
+
#### pip
|
|
76
|
+
|
|
77
|
+
<!-- readme-standards:begin installation.pip -->
|
|
78
|
+
```bash
|
|
79
|
+
python -m pip install swarmauri_provider_amazon_nova
|
|
80
|
+
```
|
|
81
|
+
<!-- readme-standards:end installation.pip -->
|
|
82
|
+
|
|
83
|
+
#### Poetry
|
|
84
|
+
|
|
85
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
86
|
+
```bash
|
|
87
|
+
poetry add swarmauri_provider_amazon_nova
|
|
88
|
+
```
|
|
89
|
+
<!-- readme-standards:end installation.poetry -->
|
|
90
|
+
|
|
91
|
+
### Quick Start
|
|
92
|
+
|
|
93
|
+
#### Example
|
|
94
|
+
|
|
95
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
96
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/docs/readme/quick_start.py).
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
import importlib
|
|
100
|
+
|
|
101
|
+
package = importlib.import_module("swarmauri_provider_amazon_nova")
|
|
102
|
+
assert package.__name__ == "swarmauri_provider_amazon_nova"
|
|
103
|
+
```
|
|
104
|
+
<!-- readme-standards:end example.quick-start -->
|
|
105
|
+
|
|
106
|
+
#### Expected Result
|
|
107
|
+
|
|
108
|
+
This quick start is explicitly an import smoke check for `swarmauri_provider_amazon_nova`. It confirms that the documented namespace loads; it does not demonstrate or certify a complete application workflow. The detailed source and retained usage guidance below describe the integration boundary.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Usage
|
|
113
|
+
|
|
114
|
+
### Common Workflows
|
|
115
|
+
|
|
116
|
+
<!-- readme-standards:begin example.usage -->
|
|
117
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/docs/readme/usage.py).
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
import importlib
|
|
121
|
+
|
|
122
|
+
package = importlib.import_module("swarmauri_provider_amazon_nova")
|
|
123
|
+
assert package.__name__ == "swarmauri_provider_amazon_nova"
|
|
124
|
+
```
|
|
125
|
+
<!-- readme-standards:end example.usage -->
|
|
126
|
+
|
|
127
|
+
Inject `AmazonNovaProvider(region=...)` into a Nova model adapter.
|
|
128
|
+
|
|
129
|
+
### Configuration
|
|
130
|
+
|
|
131
|
+
Configure `swarmauri_provider_amazon_nova` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
132
|
+
|
|
133
|
+
### Error Handling
|
|
134
|
+
|
|
135
|
+
The inspected `swarmauri_provider_amazon_nova` source raises `ValueError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
|
|
136
|
+
|
|
137
|
+
### Best Practices
|
|
138
|
+
|
|
139
|
+
Use the explicit `swarmauri_provider_amazon_nova` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`; an import or successful installation alone does not establish its runtime guarantees.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Package Boundary
|
|
144
|
+
|
|
145
|
+
### What It Owns
|
|
146
|
+
|
|
147
|
+
`swarmauri_provider_amazon_nova` is located in `community` and owns aggregated Amazon Nova provider resources for Swarmauri models. Source-declared APIs include `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) records its direct dependency boundary.
|
|
148
|
+
|
|
149
|
+
### Public API and Import Surfaces
|
|
150
|
+
|
|
151
|
+
Import namespace: `swarmauri_provider_amazon_nova`.
|
|
152
|
+
|
|
153
|
+
Source-declared exports or types: `AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`.
|
|
154
|
+
|
|
155
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
156
|
+
|
|
157
|
+
### Entry Points
|
|
158
|
+
|
|
159
|
+
<!-- readme-standards:begin entry-points -->
|
|
160
|
+
- `swarmauri.model_providers` → `AmazonNovaProvider` → `swarmauri_provider_amazon_nova:AmazonNovaProvider`
|
|
161
|
+
<!-- readme-standards:end entry-points -->
|
|
162
|
+
|
|
163
|
+
### Injected Dependencies
|
|
164
|
+
|
|
165
|
+
The direct installation dependencies of `swarmauri_provider_amazon_nova` are `swarmauri-core`, `swarmauri-base`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py).
|
|
166
|
+
|
|
167
|
+
### Protocol Consumers
|
|
168
|
+
|
|
169
|
+
Direct consumers in this checkout’s package manifests include `swarmauri_live_model_amazon_nova`. These edges describe declared dependencies, not protocol-conformance evidence.
|
|
170
|
+
|
|
171
|
+
### Extensions
|
|
172
|
+
|
|
173
|
+
For `swarmauri_provider_amazon_nova`, use the source-declared public interfaces (`AmazonNovaAuthConfig`, `AmazonNovaEndpoints`, `AmazonNovaErrorMapper`, `AmazonNovaModelCatalog`, `AmazonNovaProvider`, `AmazonNovaToolSchemaConverter`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Operations and Readiness
|
|
178
|
+
|
|
179
|
+
### Operational Requirements
|
|
180
|
+
|
|
181
|
+
Operate `swarmauri_provider_amazon_nova` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
182
|
+
|
|
183
|
+
### Health and Observability
|
|
184
|
+
|
|
185
|
+
This README does not establish a standalone health endpoint for `swarmauri_provider_amazon_nova`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
186
|
+
|
|
187
|
+
### Security and Resource Limits
|
|
188
|
+
|
|
189
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py). The `swarmauri_provider_amazon_nova` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
190
|
+
|
|
191
|
+
### Compatibility
|
|
192
|
+
|
|
193
|
+
This source version of `swarmauri_provider_amazon_nova` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Verification
|
|
198
|
+
|
|
199
|
+
### Tests
|
|
200
|
+
|
|
201
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_provider_amazon_nova` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
|
|
202
|
+
|
|
203
|
+
- [tests/unit/test_amazon_nova_provider.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_amazon_nova_provider.py)
|
|
204
|
+
- [tests/unit/test_helper_methods.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_helper_methods.py)
|
|
205
|
+
- [tests/unit/test_package_contract.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_package_contract.py)
|
|
206
|
+
|
|
207
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
208
|
+
|
|
209
|
+
### Certification Status
|
|
210
|
+
|
|
211
|
+
No external certification is asserted for `swarmauri_provider_amazon_nova` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
212
|
+
|
|
213
|
+
### Evidence
|
|
214
|
+
|
|
215
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## FAQ
|
|
220
|
+
|
|
221
|
+
### Why
|
|
222
|
+
|
|
223
|
+
**Why select this package?** `swarmauri_provider_amazon_nova` provides aggregated Amazon Nova provider resources for Swarmauri models; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
|
|
224
|
+
|
|
225
|
+
### How
|
|
226
|
+
|
|
227
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_provider_amazon_nova`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py) for the exact types and signatures involved.
|
|
228
|
+
|
|
229
|
+
### When
|
|
230
|
+
|
|
231
|
+
**When should I validate an upgrade?** Recheck `swarmauri_provider_amazon_nova` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Documentation and Related Packages
|
|
236
|
+
|
|
237
|
+
### More Documentation
|
|
238
|
+
|
|
239
|
+
The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/swarmauri_provider_amazon_nova/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml) provide the supporting context for `swarmauri_provider_amazon_nova`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
|
|
240
|
+
|
|
241
|
+
### Related Packages
|
|
242
|
+
|
|
243
|
+
- [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
|
|
244
|
+
- [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
|
|
245
|
+
|
|
246
|
+
### Project Links
|
|
247
|
+
|
|
248
|
+
<!-- readme-standards:begin project-links -->
|
|
249
|
+
- [pypi: swarmauri_provider_amazon_nova](https://pypi.org/project/swarmauri_provider_amazon_nova/)
|
|
250
|
+
<!-- readme-standards:end project-links -->
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Contributing
|
|
255
|
+
|
|
256
|
+
### How to Contribute
|
|
257
|
+
|
|
258
|
+
Follow the [contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md) and include a focused example or regression for changes to `swarmauri_provider_amazon_nova`. Keep package behavior, its documented boundary, and its tests aligned.
|
|
259
|
+
|
|
260
|
+
### Development Setup
|
|
261
|
+
|
|
262
|
+
Work from the `pkgs/50-community/swarmauri_provider_amazon_nova` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
263
|
+
|
|
264
|
+
### Notes for Maintainers
|
|
265
|
+
|
|
266
|
+
Edit authored prose directly in this `swarmauri_provider_amazon_nova` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Governance
|
|
271
|
+
|
|
272
|
+
### Ownership and Decision Making
|
|
273
|
+
|
|
274
|
+
Changes to `swarmauri_provider_amazon_nova` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
275
|
+
|
|
276
|
+
### Standards and Policies
|
|
277
|
+
|
|
278
|
+
`swarmauri_provider_amazon_nova` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
279
|
+
|
|
280
|
+
### Lifecycle and Migration
|
|
281
|
+
|
|
282
|
+
The `swarmauri_provider_amazon_nova` source version is `0.1.0`.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## License and Attribution
|
|
287
|
+
|
|
288
|
+
### License
|
|
289
|
+
|
|
290
|
+
<!-- readme-standards:begin license -->
|
|
291
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/LICENSE).
|
|
292
|
+
<!-- readme-standards:end license -->
|
|
293
|
+
|
|
294
|
+
### Notices
|
|
295
|
+
|
|
296
|
+
<!-- readme-standards:begin notices -->
|
|
297
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/NOTICE) for attribution.
|
|
298
|
+
<!-- readme-standards:end notices -->
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "swarmauri_provider_amazon_nova"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Aggregated Amazon Nova provider resources for Swarmauri models."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10,<3.15"
|
|
7
|
+
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
8
|
+
license = "Apache-2.0"
|
|
9
|
+
dependencies = ["swarmauri_core<0.12,>=0.11.0", "swarmauri_base<0.12,>=0.11.0"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 1 - Planning",
|
|
12
|
+
"Programming Language :: Python :: 3.10",
|
|
13
|
+
"Programming Language :: Python :: 3.11",
|
|
14
|
+
"Programming Language :: Python :: 3.12",
|
|
15
|
+
"Programming Language :: Python :: 3.13",
|
|
16
|
+
"Programming Language :: Python :: 3.14",
|
|
17
|
+
]
|
|
18
|
+
keywords = ["swarmauri", "provider", "amazon nova", "bedrock", "nova sonic"]
|
|
19
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
20
|
+
[tool.uv.sources]
|
|
21
|
+
swarmauri_core = { workspace = true }
|
|
22
|
+
swarmauri_base = { workspace = true }
|
|
23
|
+
|
|
24
|
+
[tool.readme_standards]
|
|
25
|
+
policy = "package-guide-v1"
|
|
26
|
+
readme = "README.md"
|
|
27
|
+
brand = "swarmauri"
|
|
28
|
+
brand_catalog = "../../../tools/readme/brands.toml"
|
|
29
|
+
repository = "https://github.com/swarmauri/swarmauri-sdk"
|
|
30
|
+
ref = "master"
|
|
31
|
+
package_path = "pkgs/50-community/swarmauri_provider_amazon_nova"
|
|
32
|
+
layer = "community"
|
|
33
|
+
lifecycle = "active"
|
|
34
|
+
license_file = "LICENSE"
|
|
35
|
+
notice_file = "NOTICE"
|
|
36
|
+
|
|
37
|
+
[tool.readme_standards.distributions.pypi]
|
|
38
|
+
name = "swarmauri_provider_amazon_nova"
|
|
39
|
+
published = true
|
|
40
|
+
|
|
41
|
+
[tool.readme_standards.examples.quick_start]
|
|
42
|
+
source = "docs/readme/quick_start.py"
|
|
43
|
+
test = "tests/unit/test_readme_sources.py"
|
|
44
|
+
language = "python"
|
|
45
|
+
expected_exit_code = 0
|
|
46
|
+
|
|
47
|
+
[tool.readme_standards.examples.usage]
|
|
48
|
+
source = "docs/readme/usage.py"
|
|
49
|
+
test = "tests/unit/test_readme_sources.py"
|
|
50
|
+
language = "python"
|
|
51
|
+
expected_exit_code = 0
|
|
52
|
+
|
|
53
|
+
[tool.readme_standards.statuses.readme]
|
|
54
|
+
label = "CI gate"
|
|
55
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
|
|
56
|
+
|
|
57
|
+
[tool.readme_standards.statuses.tests]
|
|
58
|
+
label = "example source"
|
|
59
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/tests/unit/test_readme_sources.py"
|
|
60
|
+
|
|
61
|
+
[tool.readme_standards.statuses.certification]
|
|
62
|
+
label = "not certified"
|
|
63
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_provider_amazon_nova/README.md#certification-status"
|
|
64
|
+
|
|
65
|
+
[tool.readme_standards.statuses.governance]
|
|
66
|
+
label = "repository policy"
|
|
67
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"
|
|
68
|
+
|
|
69
|
+
[tool.readme_standards.statuses.evidence]
|
|
70
|
+
label = "source and CI"
|
|
71
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
|
|
72
|
+
[project.entry-points."swarmauri.model_providers"]
|
|
73
|
+
AmazonNovaProvider = "swarmauri_provider_amazon_nova:AmazonNovaProvider"
|
|
74
|
+
[build-system]
|
|
75
|
+
requires = ["poetry-core>=1.8.0"]
|
|
76
|
+
build-backend = "poetry.core.masonry.api"
|
|
77
|
+
[dependency-groups]
|
|
78
|
+
dev = ["pytest>=8.0", "ruff>=0.9.9", "swarmauri_tests_component", "readme-standards==0.1.3; python_version >= \"3.11\""]
|
|
79
|
+
|
|
80
|
+
[tool.ruff]
|
|
81
|
+
extend = "../../pyproject.toml"
|
|
82
|
+
|
|
83
|
+
[tool.ruff.lint]
|
|
84
|
+
ignore = ["N999", "RUF012"]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Literal
|
|
3
|
+
|
|
4
|
+
from pydantic import Field, SecretStr
|
|
5
|
+
from swarmauri_base.model_providers.ProviderAuthBase import ProviderAuthBase
|
|
6
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@ComponentBase.register_type(ProviderAuthBase, "AmazonNovaAuthConfig")
|
|
10
|
+
class AmazonNovaAuthConfig(ProviderAuthBase):
|
|
11
|
+
access_key_id: SecretStr | None = Field(default=None, exclude=True)
|
|
12
|
+
secret_access_key: SecretStr | None = Field(default=None, exclude=True)
|
|
13
|
+
session_token: SecretStr | None = Field(default=None, exclude=True)
|
|
14
|
+
profile: str | None = None
|
|
15
|
+
type: Literal["AmazonNovaAuthConfig"] = "AmazonNovaAuthConfig"
|
|
16
|
+
|
|
17
|
+
def apply(self, headers: Mapping[str, str]) -> dict[str, str]:
|
|
18
|
+
"""Preserve headers; the AWS transport applies request-aware SigV4."""
|
|
19
|
+
return dict(headers)
|
|
20
|
+
|
|
21
|
+
def sdk_credentials(self) -> dict[str, str]:
|
|
22
|
+
if (self.access_key_id is None) != (self.secret_access_key is None):
|
|
23
|
+
raise ValueError(
|
|
24
|
+
"AWS access_key_id and secret_access_key must be "
|
|
25
|
+
"provided together"
|
|
26
|
+
)
|
|
27
|
+
if self.access_key_id is None:
|
|
28
|
+
return {}
|
|
29
|
+
credentials = {
|
|
30
|
+
"aws_access_key_id": self.access_key_id.get_secret_value(),
|
|
31
|
+
"aws_secret_access_key": (
|
|
32
|
+
self.secret_access_key.get_secret_value()
|
|
33
|
+
),
|
|
34
|
+
}
|
|
35
|
+
if self.session_token is not None:
|
|
36
|
+
credentials["aws_session_token"] = (
|
|
37
|
+
self.session_token.get_secret_value()
|
|
38
|
+
)
|
|
39
|
+
return credentials
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from swarmauri_base.model_providers.ProviderEndpointBase import (
|
|
4
|
+
ProviderEndpointBase,
|
|
5
|
+
)
|
|
6
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@ComponentBase.register_type(ProviderEndpointBase, "AmazonNovaEndpoints")
|
|
10
|
+
class AmazonNovaEndpoints(ProviderEndpointBase):
|
|
11
|
+
region: str = "us-east-1"
|
|
12
|
+
service: str = "bedrock-runtime"
|
|
13
|
+
type: Literal["AmazonNovaEndpoints"] = "AmazonNovaEndpoints"
|
|
14
|
+
|
|
15
|
+
def runtime_url(self) -> str:
|
|
16
|
+
return f"https://bedrock-runtime.{self.region}.amazonaws.com"
|
|
17
|
+
|
|
18
|
+
def resolve(self, capability: str) -> str:
|
|
19
|
+
if capability not in {
|
|
20
|
+
"bedrock.runtime",
|
|
21
|
+
"live.connect",
|
|
22
|
+
"model.invoke",
|
|
23
|
+
}:
|
|
24
|
+
raise ValueError(
|
|
25
|
+
f"Amazon Nova does not support capability {capability!r}"
|
|
26
|
+
)
|
|
27
|
+
return self.runtime_url()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Any, Literal
|
|
2
|
+
|
|
3
|
+
from swarmauri_base.model_providers.ProviderErrorMapperBase import (
|
|
4
|
+
ProviderErrorMapperBase,
|
|
5
|
+
)
|
|
6
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@ComponentBase.register_type(ProviderErrorMapperBase, "AmazonNovaErrorMapper")
|
|
10
|
+
class AmazonNovaErrorMapper(ProviderErrorMapperBase):
|
|
11
|
+
type: Literal["AmazonNovaErrorMapper"] = "AmazonNovaErrorMapper"
|
|
12
|
+
|
|
13
|
+
def map_error(self, error: BaseException | Any) -> BaseException:
|
|
14
|
+
return RuntimeError(f"Amazon Nova provider error: {error}")
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from swarmauri_base.model_providers.ModelCatalogBase import ModelCatalogBase
|
|
4
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@ComponentBase.register_type(ModelCatalogBase, "AmazonNovaModelCatalog")
|
|
8
|
+
class AmazonNovaModelCatalog(ModelCatalogBase):
|
|
9
|
+
models: dict = {
|
|
10
|
+
"amazon.nova-sonic-v1:0": {
|
|
11
|
+
"name": "amazon.nova-sonic-v1:0",
|
|
12
|
+
"features": ["realtime", "audio", "tools", "http2"],
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
type: Literal["AmazonNovaModelCatalog"] = "AmazonNovaModelCatalog"
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
from urllib.parse import quote
|
|
3
|
+
|
|
4
|
+
from pydantic import Field, SecretStr, model_validator
|
|
5
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
6
|
+
from swarmauri_base.model_providers.ModelProviderBase import ModelProviderBase
|
|
7
|
+
from swarmauri_base.model_providers.ProviderConnectionConfig import (
|
|
8
|
+
ProviderConnectionConfig,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from .AmazonNovaAuthConfig import AmazonNovaAuthConfig
|
|
12
|
+
from .AmazonNovaEndpoints import AmazonNovaEndpoints
|
|
13
|
+
from .AmazonNovaErrorMapper import AmazonNovaErrorMapper
|
|
14
|
+
from .AmazonNovaModelCatalog import AmazonNovaModelCatalog
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@ComponentBase.register_type(ModelProviderBase, "AmazonNovaProvider")
|
|
18
|
+
class AmazonNovaProvider(ModelProviderBase):
|
|
19
|
+
provider_name: Literal["amazon_nova"] = "amazon_nova"
|
|
20
|
+
access_key_id: SecretStr | None = Field(default=None, exclude=True)
|
|
21
|
+
secret_access_key: SecretStr | None = Field(default=None, exclude=True)
|
|
22
|
+
session_token: SecretStr | None = Field(default=None, exclude=True)
|
|
23
|
+
profile: str | None = None
|
|
24
|
+
auth: AmazonNovaAuthConfig = Field(
|
|
25
|
+
default_factory=AmazonNovaAuthConfig, exclude=True
|
|
26
|
+
)
|
|
27
|
+
endpoints: AmazonNovaEndpoints = Field(default_factory=AmazonNovaEndpoints)
|
|
28
|
+
catalog: AmazonNovaModelCatalog = Field(
|
|
29
|
+
default_factory=AmazonNovaModelCatalog
|
|
30
|
+
)
|
|
31
|
+
error_mapper: AmazonNovaErrorMapper = Field(
|
|
32
|
+
default_factory=AmazonNovaErrorMapper
|
|
33
|
+
)
|
|
34
|
+
type: Literal["AmazonNovaProvider"] = "AmazonNovaProvider"
|
|
35
|
+
|
|
36
|
+
@model_validator(mode="after")
|
|
37
|
+
def configure(self) -> "AmazonNovaProvider":
|
|
38
|
+
self.region = self.region or self.endpoints.region
|
|
39
|
+
self.endpoints.region = self.region
|
|
40
|
+
self.base_url = self.base_url or self.endpoints.resolve(
|
|
41
|
+
"bedrock.runtime"
|
|
42
|
+
)
|
|
43
|
+
if self.access_key_id is not None:
|
|
44
|
+
self.auth.access_key_id = self.access_key_id
|
|
45
|
+
elif self.auth.access_key_id is not None:
|
|
46
|
+
self.access_key_id = self.auth.access_key_id
|
|
47
|
+
if self.secret_access_key is not None:
|
|
48
|
+
self.auth.secret_access_key = self.secret_access_key
|
|
49
|
+
elif self.auth.secret_access_key is not None:
|
|
50
|
+
self.secret_access_key = self.auth.secret_access_key
|
|
51
|
+
if self.session_token is not None:
|
|
52
|
+
self.auth.session_token = self.session_token
|
|
53
|
+
elif self.auth.session_token is not None:
|
|
54
|
+
self.session_token = self.auth.session_token
|
|
55
|
+
if self.profile is not None:
|
|
56
|
+
self.auth.profile = self.profile
|
|
57
|
+
elif self.auth.profile is not None:
|
|
58
|
+
self.profile = self.auth.profile
|
|
59
|
+
return self
|
|
60
|
+
|
|
61
|
+
def connection_config(
|
|
62
|
+
self, capability: str, model: str | None = None
|
|
63
|
+
) -> ProviderConnectionConfig:
|
|
64
|
+
endpoint = self.endpoints.resolve(capability)
|
|
65
|
+
options: dict[str, object] = {"region": self.region}
|
|
66
|
+
if self.profile is not None:
|
|
67
|
+
options["profile"] = self.profile
|
|
68
|
+
if model is not None:
|
|
69
|
+
options["model_id"] = model
|
|
70
|
+
endpoint = (
|
|
71
|
+
f"{endpoint.rstrip('/')}/model/{quote(model, safe='')}"
|
|
72
|
+
"/invoke-with-bidirectional-stream"
|
|
73
|
+
)
|
|
74
|
+
return ProviderConnectionConfig(
|
|
75
|
+
endpoint=endpoint,
|
|
76
|
+
transport_options=options,
|
|
77
|
+
auth_context=self.auth,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
def prepare_connection(
|
|
81
|
+
self, capability: str, model: str | None = None
|
|
82
|
+
) -> ProviderConnectionConfig:
|
|
83
|
+
config = super().prepare_connection(capability, model)
|
|
84
|
+
options = dict(config.transport_options)
|
|
85
|
+
options.update(self.auth.sdk_credentials())
|
|
86
|
+
return config.model_copy(update={"transport_options": options})
|
swarmauri_provider_amazon_nova-0.1.0/swarmauri_provider_amazon_nova/AmazonNovaToolSchemaConverter.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AmazonNovaToolSchemaConverter:
|
|
5
|
+
def convert(self, tool: Any) -> dict[str, Any]:
|
|
6
|
+
return {
|
|
7
|
+
"toolSpec": {
|
|
8
|
+
"name": tool.name,
|
|
9
|
+
"description": getattr(tool, "description", ""),
|
|
10
|
+
"inputSchema": {"json": {"type": "object", "properties": {}}},
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from .AmazonNovaAuthConfig import AmazonNovaAuthConfig
|
|
2
|
+
from .AmazonNovaEndpoints import AmazonNovaEndpoints
|
|
3
|
+
from .AmazonNovaErrorMapper import AmazonNovaErrorMapper
|
|
4
|
+
from .AmazonNovaModelCatalog import AmazonNovaModelCatalog
|
|
5
|
+
from .AmazonNovaProvider import AmazonNovaProvider
|
|
6
|
+
from .AmazonNovaToolSchemaConverter import AmazonNovaToolSchemaConverter
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"AmazonNovaAuthConfig",
|
|
10
|
+
"AmazonNovaEndpoints",
|
|
11
|
+
"AmazonNovaErrorMapper",
|
|
12
|
+
"AmazonNovaModelCatalog",
|
|
13
|
+
"AmazonNovaProvider",
|
|
14
|
+
"AmazonNovaToolSchemaConverter",
|
|
15
|
+
]
|