swarmauri_agent_image_tool 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,160 @@
1
+ """Run the image toolkit with an SDK tool-step model and executor."""
2
+
3
+ import asyncio
4
+ import json
5
+ from collections.abc import Iterable, Mapping
6
+ from typing import Any, Literal
7
+ from uuid import uuid4
8
+
9
+ from pydantic import BaseModel, Field
10
+ from swarmauri_base.agents.AgentBase import AgentBase
11
+ from swarmauri_base.ComponentBase import ComponentBase
12
+ from swarmauri_base.tools.ToolBase import ToolBase
13
+ from swarmauri_base.tools.ToolExecutorBase import ToolExecutorBase
14
+ from swarmauri_core.messages.IMessage import IMessage
15
+ from swarmauri_core.tool_llms import (
16
+ IToolStepModel,
17
+ ProposedToolCall,
18
+ ToolStepResult,
19
+ )
20
+ from swarmauri_toolkit_image import ImageToolkit
21
+
22
+
23
+ class ImageAgentResult(BaseModel):
24
+ """Report the final message and image operations actually executed."""
25
+
26
+ run_id: str
27
+ status: Literal["completed", "step_limit"]
28
+ message: str | None
29
+ images: list[dict[str, Any]] = Field(default_factory=list)
30
+ signing_results: list[dict[str, Any]] = Field(default_factory=list)
31
+ errors: list[dict[str, Any]] = Field(default_factory=list)
32
+ retry_batch_ids: list[str] = Field(default_factory=list)
33
+
34
+ def record(self, outcome: dict[str, Any]) -> None:
35
+ """Collect image and signature results from an executed tool."""
36
+ for artifact in outcome.get("artifacts", []):
37
+ self.images.append({**artifact, "signing_status": "unsigned"})
38
+ if "retry_batch_id" in outcome:
39
+ self.retry_batch_ids.append(outcome["retry_batch_id"])
40
+ if outcome["status"] not in {"signed", "generated"}:
41
+ self.errors.append(outcome)
42
+ return
43
+
44
+ signatures = outcome.get("signatures", [])
45
+ if outcome["status"] == "signed" and "artifact_id" in outcome:
46
+ signatures = [outcome]
47
+ for signature in signatures:
48
+ self.signing_results.append(signature)
49
+ for image in self.images:
50
+ if image["artifact_id"] == signature["artifact_id"]:
51
+ image["signing_status"] = "signed"
52
+
53
+
54
+ @ComponentBase.register_type(AgentBase, "ImageToolAgent")
55
+ class ImageToolAgent(AgentBase):
56
+ """Generate and sign scoped images with a tool-step model."""
57
+
58
+ type: Literal["ImageToolAgent"] = "ImageToolAgent"
59
+ llm: IToolStepModel = Field(exclude=True)
60
+ toolkit: ImageToolkit = Field(exclude=True)
61
+ max_steps: int = Field(default=16, gt=0)
62
+
63
+ @staticmethod
64
+ def _prompt(input_str: str | IMessage | None) -> str:
65
+ if isinstance(input_str, IMessage):
66
+ input_str = input_str.content
67
+ if not isinstance(input_str, str) or not input_str.strip():
68
+ raise ValueError("A text prompt is required")
69
+ return input_str
70
+
71
+ def exec(
72
+ self,
73
+ input_str: str | IMessage | None = "",
74
+ llm_kwargs: dict | None = None,
75
+ ) -> ImageAgentResult:
76
+ """Run an image request and report the actual tool outcomes."""
77
+ if llm_kwargs:
78
+ raise ValueError(
79
+ "Configure tool-step model options on the model instance"
80
+ )
81
+ return self._run(
82
+ self._prompt(input_str), tool_names=self.toolkit.tools
83
+ )
84
+
85
+ async def aexec(
86
+ self,
87
+ input_str: str | IMessage | None = "",
88
+ llm_kwargs: dict | None = None,
89
+ ) -> ImageAgentResult:
90
+ """Run the synchronous model and tools off the event loop."""
91
+ return await asyncio.to_thread(self.exec, input_str, llm_kwargs)
92
+
93
+ def _run(
94
+ self, prompt: str, *, tool_names: Iterable[str]
95
+ ) -> ImageAgentResult:
96
+ tools = {
97
+ name: self.toolkit.get_tool_by_name(name) for name in tool_names
98
+ }
99
+ executor = ToolExecutorBase()
100
+ result = ImageAgentResult(
101
+ run_id=uuid4().hex, status="step_limit", message=None
102
+ )
103
+ history = self.llm.initial_tool_history(prompt)
104
+ seen_calls: set[str] = set()
105
+ for _ in range(self.max_steps):
106
+ step = self.llm.propose_step(list(history), tools)
107
+ history.extend(step.items)
108
+ if not step.calls:
109
+ result.status = "completed"
110
+ result.message = step.content
111
+ break
112
+ settled = []
113
+ for call in step.calls:
114
+ if call.call_id in seen_calls:
115
+ outcome = {"status": "duplicate_tool_call"}
116
+ else:
117
+ seen_calls.add(call.call_id)
118
+ outcome = self._dispatch(
119
+ executor, tools, call, result.run_id
120
+ )
121
+ result.record(outcome)
122
+ settled.append(ToolStepResult(call=call, value=outcome))
123
+ history.extend(self.llm.format_tool_results(settled))
124
+ return result
125
+
126
+ @staticmethod
127
+ def _dispatch(
128
+ executor: ToolExecutorBase,
129
+ tools: Mapping[str, ToolBase],
130
+ call: ProposedToolCall,
131
+ run_id: str,
132
+ ) -> dict[str, Any]:
133
+ if call.name not in tools:
134
+ return {"status": "tool_unavailable"}
135
+ try:
136
+ arguments = (
137
+ json.loads(call.arguments)
138
+ if isinstance(call.arguments, str)
139
+ else call.arguments
140
+ )
141
+ except ValueError:
142
+ return {"status": "invalid_tool_arguments"}
143
+ if not isinstance(arguments, dict):
144
+ return {"status": "invalid_tool_arguments"}
145
+
146
+ execution = executor.execute(
147
+ tools[call.name],
148
+ arguments,
149
+ call_id=call.call_id,
150
+ context={"session_id": run_id},
151
+ )
152
+ if execution.status == "completed" and isinstance(
153
+ execution.value, dict
154
+ ):
155
+ return execution.value
156
+ # Provider exceptions may include signed URLs or other request details.
157
+ operation = (
158
+ "generation" if call.name == "GenerateImageTool" else "signing"
159
+ )
160
+ return {"status": f"{operation}_failed"}
@@ -0,0 +1,5 @@
1
+ """Generate and sign images through an SDK tool-step model."""
2
+
3
+ from .ImageToolAgent import ImageAgentResult, ImageToolAgent
4
+
5
+ __all__ = ["ImageAgentResult", "ImageToolAgent"]
@@ -0,0 +1,344 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_agent_image_tool
3
+ Version: 0.1.0
4
+ Summary: Generate and sign images through an SDK tool-step model.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: swarmauri,agents,tool-step agent,image generation,structured signing results
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
+ Requires-Dist: swarmauri_toolkit_image (>=0.1,<0.2)
21
+ Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
22
+ Description-Content-Type: text/markdown
23
+
24
+ # swarmauri_agent_image_tool
25
+
26
+ <!-- readme-standards:begin branding -->
27
+ <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>
28
+ <p align="center"><strong>swarmauri_agent_image_tool</strong></p>
29
+ <p align="center">Generate and sign images through an SDK tool-step model.</p>
30
+ <p align="center">
31
+ <a href="https://pypi.org/project/swarmauri_agent_image_tool/"><img alt="pypi: swarmauri_agent_image_tool unpublished" src="https://img.shields.io/static/v1?label=pypi&amp;message=swarmauri_agent_image_tool%20unpublished&amp;labelColor=292421&amp;color=805500"></a>
32
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.1.0&amp;labelColor=292421&amp;color=994525"></a>
33
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.15" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.15&amp;labelColor=292421&amp;color=994525"></a>
34
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/pyproject.toml"><img alt="Layer: plugins" src="https://img.shields.io/static/v1?label=Layer&amp;message=plugins&amp;labelColor=292421&amp;color=994525"></a>
35
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=292421&amp;color=24654A"></a>
36
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=292421&amp;color=994525"></a>
37
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=292421&amp;color=994525"></a>
38
+ </p>
39
+ <p align="center">
40
+ <a href="https://pypi.org/project/swarmauri_agent_image_tool/"><img alt="pypi downloads: swarmauri_agent_image_tool: unpublished" src="https://img.shields.io/static/v1?label=pypi%20downloads&amp;message=swarmauri_agent_image_tool%3A%20unpublished&amp;labelColor=292421&amp;color=805500"></a>
41
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/README.md"><img alt="README hits: swarmauri_agent_image_tool" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/60-plugins/swarmauri_agent_image_tool/README.md.svg?label=README%20hits&amp;labelColor=292421&amp;color=08704E"></a>
42
+ </p>
43
+ <p align="center">
44
+ <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&amp;message=CI%20gate&amp;labelColor=292421&amp;color=67437E"></a>
45
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=292421&amp;color=67437E"></a>
46
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=292421&amp;color=805500"></a>
47
+ <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&amp;message=repository%20policy&amp;labelColor=292421&amp;color=67437E"></a>
48
+ <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&amp;message=source%20and%20CI&amp;labelColor=292421&amp;color=67437E"></a>
49
+ </p>
50
+ <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>
51
+ <!-- readme-standards:end branding -->
52
+
53
+ ---
54
+
55
+ ## Overview
56
+
57
+ ### Summary
58
+
59
+ Generate and sign images through an SDK tool-step model.
60
+
61
+ ### Why This Package
62
+
63
+ This package provides tool-step agent, image generation, structured signing results for applications using the Swarmauri SDK.
64
+
65
+ ### When to Use
66
+
67
+ Use this component when an application needs the image workflow described in the usage examples.
68
+
69
+ ### Features
70
+
71
+ - Tool-step agent.
72
+ - Image generation.
73
+ - Structured signing results.
74
+
75
+ ### Non-Goals
76
+
77
+ Provider accounts, storage credentials, and signing identities are configured by the application.
78
+
79
+ ---
80
+
81
+ ## Getting Started
82
+
83
+ ### Prerequisites
84
+
85
+ The package supports Python 3.10 through 3.14. Install any application-specific provider or adapter used in your workflow.
86
+
87
+ ### Installation
88
+
89
+ #### Install with uv
90
+
91
+ <!-- readme-standards:begin installation.uv -->
92
+ `swarmauri_agent_image_tool` is not declared published. From the source checkout:
93
+
94
+ ```bash
95
+ uv pip install .
96
+ ```
97
+ <!-- readme-standards:end installation.uv -->
98
+
99
+ From a Swarmauri SDK checkout, run `uv sync --directory pkgs --package swarmauri_agent_image_tool`.
100
+
101
+ #### Install with pip
102
+
103
+ <!-- readme-standards:begin installation.pip -->
104
+ `swarmauri_agent_image_tool` is not declared published. From the source checkout:
105
+
106
+ ```bash
107
+ python -m pip install .
108
+ ```
109
+ <!-- readme-standards:end installation.pip -->
110
+
111
+ From the wheelhouse containing the SDK dependency builds, run `python -m pip install --find-links dist swarmauri_agent_image_tool`.
112
+
113
+ #### Install with Poetry
114
+
115
+ <!-- readme-standards:begin installation.poetry -->
116
+ `swarmauri_agent_image_tool` is not declared published. From a separate Poetry project, replace the path with your checkout:
117
+
118
+ ```bash
119
+ poetry add /path/to/swarmauri_agent_image_tool
120
+ ```
121
+ <!-- readme-standards:end installation.poetry -->
122
+
123
+ ### Quick Start
124
+
125
+ #### Example
126
+
127
+ <!-- readme-standards:begin example.quick-start -->
128
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/docs/readme/quick_start.py).
129
+
130
+ ```python
131
+ from swarmauri_agent_image_tool import ImageToolAgent
132
+
133
+
134
+ def run(model, toolkit):
135
+ agent = ImageToolAgent(llm=model, toolkit=toolkit)
136
+ return agent.exec("Generate an image of a blue ceramic mug and sign it.")
137
+ ```
138
+ <!-- readme-standards:end example.quick-start -->
139
+
140
+ #### Expected Result
141
+
142
+ The example shows the package’s configuration and workflow entry point.
143
+
144
+ ---
145
+
146
+ ## Usage
147
+
148
+ ### Common Workflows
149
+
150
+ Pass an IToolStepModel instance and an ImageToolkit configured as shown in the toolkit guide. Set the toolkit policy to always for guaranteed signing. The export example writes the image and its sidecar, which you can verify using the SignImageTool guide.
151
+
152
+ <!-- readme-standards:begin example.usage -->
153
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/docs/readme/usage.py).
154
+
155
+ ```python
156
+ from pathlib import Path
157
+
158
+ from swarmauri_agent_image_tool import ImageToolAgent
159
+
160
+
161
+ def export(model, toolkit, destination: Path):
162
+ agent = ImageToolAgent(llm=model, toolkit=toolkit)
163
+ result = agent.exec("Generate an image of a blue ceramic mug and sign it.")
164
+ if not result.signing_results:
165
+ raise RuntimeError("No image signature was returned")
166
+ signature = result.signing_results[0]
167
+ artifact_id = signature["artifact_id"]
168
+ destination.write_bytes(toolkit.read_image(artifact_id))
169
+ destination.with_suffix(".jws.json").write_bytes(
170
+ toolkit.read_signature(artifact_id, signature["signature_id"])
171
+ )
172
+ return result
173
+ ```
174
+ <!-- readme-standards:end example.usage -->
175
+
176
+ **Expected output.** With `Path("mug.png")` and a successful signed generation, `export` writes `mug.png` and `mug.jws.json`. The returned `ImageAgentResult` includes these values.
177
+
178
+ | Field | Example value |
179
+ |---|---|
180
+ | `status` | `completed` |
181
+ | `images[0]["signing_status"]` | `signed` |
182
+ | `signing_results[0]["status"]` | `signed` |
183
+
184
+ ### Configuration
185
+
186
+ Use the public constructor or loader shown above. The caller supplies application-specific collaborators when constructing a component.
187
+
188
+ ### Error Handling
189
+
190
+ Check the structured tool or agent outcome before using image references or reporting that signing succeeded.
191
+
192
+ ### Best Practices
193
+
194
+ Use a distinct storage scope per authorized session and retrieve images through the toolkit after publication.
195
+
196
+ ---
197
+
198
+ ## Package Boundary
199
+
200
+ ### What It Owns
201
+
202
+ Generate and sign images through an SDK tool-step model.
203
+
204
+ ### Public API and Import Surfaces
205
+
206
+ Import `ImageToolAgent` from `swarmauri_agent_image_tool`.
207
+
208
+ ### Entry Points
209
+
210
+ <!-- readme-standards:begin entry-points -->
211
+ - `swarmauri.agents` → `ImageToolAgent` → `swarmauri_agent_image_tool:ImageToolAgent`
212
+ <!-- readme-standards:end entry-points -->
213
+
214
+ ### Injected Dependencies
215
+
216
+ Inject the collaborators required by your application through the public constructor.
217
+
218
+ ### Protocol Consumers
219
+
220
+ Swarmauri applications can use this component through the corresponding SDK resource family.
221
+
222
+ ### Extensions
223
+
224
+ Supply compatible SDK components through the inputs shown in the examples.
225
+
226
+ ---
227
+
228
+ ## Operations and Readiness
229
+
230
+ ### Operational Requirements
231
+
232
+ Set up the application collaborators listed above before running the workflow. Use a test provider and isolated scope for local verification.
233
+
234
+ ### Health and Observability
235
+
236
+ Check tool outcomes, provider health, and storage availability in the application.
237
+
238
+ ### Security and Resource Limits
239
+
240
+ Set provider and storage limits at the application boundary. Keep signing keys in the configured key provider.
241
+
242
+ ### Compatibility
243
+
244
+ Python 3.10 through 3.14. Check the Python support of any provider adapter installed alongside this package.
245
+
246
+ ---
247
+
248
+ ## Verification
249
+
250
+ ### Tests
251
+
252
+ Run the package’s pytest suite from the SDK workspace.
253
+
254
+ ### Certification Status
255
+
256
+ The package is in planning status. Its tests are available in the repository.
257
+
258
+ ### Evidence
259
+
260
+ The package tests and maintained example sources are available alongside its manifest.
261
+
262
+ ---
263
+
264
+ ## FAQ
265
+
266
+ ### Why
267
+
268
+ Generate and sign images through an SDK tool-step model.
269
+
270
+ ### How
271
+
272
+ Use the installation instructions and the workflow examples in this guide.
273
+
274
+ ### When
275
+
276
+ Use it when your image workflow needs tool-step agent, image generation, structured signing results.
277
+
278
+ ---
279
+
280
+ ## Documentation and Related Packages
281
+
282
+ ### More Documentation
283
+
284
+ See the maintained example sources under `docs/readme`.
285
+
286
+ ### Related Packages
287
+
288
+ See the SDK package index for the image tools, toolkit, agents, and packaged skills.
289
+
290
+ ### Project Links
291
+
292
+ <!-- readme-standards:begin project-links -->
293
+ - [Repository](https://github.com/swarmauri/swarmauri-sdk)
294
+ - [pypi: swarmauri_agent_image_tool](https://pypi.org/project/swarmauri_agent_image_tool/)
295
+ <!-- readme-standards:end project-links -->
296
+
297
+ ---
298
+
299
+ ## Contributing
300
+
301
+ ### How to Contribute
302
+
303
+ Follow the SDK contribution guide and keep workflow examples in sync with the public API.
304
+
305
+ ### Development Setup
306
+
307
+ Use the SDK uv workspace and run the package’s lint and test commands.
308
+
309
+ ### Notes for Maintainers
310
+
311
+ Keep the package import path and registered component name aligned with the manifest.
312
+
313
+ ---
314
+
315
+ ## Governance
316
+
317
+ ### Ownership and Decision Making
318
+
319
+ The Swarmauri SDK maintainers review changes to this package.
320
+
321
+ ### Standards and Policies
322
+
323
+ Follow the SDK contribution and package README policies.
324
+
325
+ ### Lifecycle and Migration
326
+
327
+ This is a new package in planning status.
328
+
329
+ ---
330
+
331
+ ## License and Attribution
332
+
333
+ ### License
334
+
335
+ <!-- readme-standards:begin license -->
336
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/LICENSE).
337
+ <!-- readme-standards:end license -->
338
+
339
+ ### Notices
340
+
341
+ <!-- readme-standards:begin notices -->
342
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/swarmauri_agent_image_tool/NOTICE) for attribution.
343
+ <!-- readme-standards:end notices -->
344
+
@@ -0,0 +1,8 @@
1
+ swarmauri_agent_image_tool/ImageToolAgent.py,sha256=RZFrJgATMS3ynkXD_yQ47qkpzRO7t1hz34cEYg1fE3I,5943
2
+ swarmauri_agent_image_tool/__init__.py,sha256=f4E0ZcTA-6zdeSpF4_cgtLbk9SO_PEHjwKk6igwvdRY,175
3
+ swarmauri_agent_image_tool-0.1.0.dist-info/METADATA,sha256=SWk6bzK-FZUauiWGyEeQL4fQil7Cz2yZs6fg4N0Dkio,13627
4
+ swarmauri_agent_image_tool-0.1.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
5
+ swarmauri_agent_image_tool-0.1.0.dist-info/entry_points.txt,sha256=KCRe940Ua2MVMeeDgfUd-mfJ_Q47p0Xr6RelOBBVid0,77
6
+ swarmauri_agent_image_tool-0.1.0.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
7
+ swarmauri_agent_image_tool-0.1.0.dist-info/licenses/NOTICE,sha256=VfAL5X7ziNvo-D3n5KC0OJscjJ6cHcF5CwRHzM3S9cc,150
8
+ swarmauri_agent_image_tool-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 2.5.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [swarmauri.agents]
2
+ ImageToolAgent=swarmauri_agent_image_tool:ImageToolAgent
3
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2025] [Jacob Stewart @ Swarmauri]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ Swarmauri SDK
2
+
3
+ This package is part of the Swarmauri SDK and is distributed under the
4
+ Apache License, Version 2.0. See LICENSE for the license terms.