swarmauri_tool_sentimentanalysis 0.6.1.dev15__tar.gz → 0.7.0.dev2__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.
@@ -1,20 +1,21 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarmauri_tool_sentimentanalysis
3
- Version: 0.6.1.dev15
3
+ Version: 0.7.0.dev2
4
4
  Summary: Sentiment Analysis Tool
5
5
  License: Apache-2.0
6
6
  Author: Jacob Stewart
7
7
  Author-email: jacob@swarmauri.com
8
8
  Requires-Python: >=3.10,<3.13
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3
11
10
  Classifier: Programming Language :: Python :: 3.10
12
11
  Classifier: Programming Language :: Python :: 3.11
13
12
  Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: swarmauri_base (>=0.6.1.dev15,<0.7.0)
15
- Requires-Dist: swarmauri_core (>=0.6.1.dev15,<0.7.0)
16
- Requires-Dist: swarmauri_standard (>=0.6.1.dev2,<0.7.0)
17
- Project-URL: Repository, http://github.com/swarmauri/swarmauri-sdk
13
+ Requires-Dist: swarmauri_base
14
+ Requires-Dist: swarmauri_core
15
+ Requires-Dist: swarmauri_standard
16
+ Requires-Dist: tensorflow (>=2.16.2)
17
+ Requires-Dist: tf-keras
18
+ Requires-Dist: transformers (>=4.49.0)
18
19
  Description-Content-Type: text/markdown
19
20
 
20
21
  ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
@@ -0,0 +1,67 @@
1
+ [project]
2
+ name = "swarmauri_tool_sentimentanalysis"
3
+ version = "0.7.0.dev2"
4
+ description = "Sentiment Analysis Tool"
5
+ license = "Apache-2.0"
6
+ readme = "README.md"
7
+ repository = "http://github.com/swarmauri/swarmauri-sdk"
8
+ requires-python = ">=3.10,<3.13"
9
+ classifiers = [
10
+ "License :: OSI Approved :: Apache Software License",
11
+ "Programming Language :: Python :: 3.10",
12
+ "Programming Language :: Python :: 3.11",
13
+ "Programming Language :: Python :: 3.12",
14
+ ]
15
+ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
16
+ dependencies = [
17
+ "swarmauri_core",
18
+ "swarmauri_base",
19
+ "swarmauri_standard",
20
+ "transformers>=4.49.0",
21
+ "tensorflow>=2.16.2",
22
+ "tf-keras"
23
+ ]
24
+
25
+ [tool.uv.sources]
26
+ swarmauri_core = { workspace = true }
27
+ swarmauri_base = { workspace = true }
28
+ swarmauri_standard = { workspace = true }
29
+
30
+ [tool.pytest.ini_options]
31
+ norecursedirs = ["combined", "scripts"]
32
+ markers = [
33
+ "test: standard test",
34
+ "unit: Unit tests",
35
+ "i9n: Integration tests",
36
+ "r8n: Regression tests",
37
+ "timeout: mark test to timeout after X seconds",
38
+ "xpass: Expected passes",
39
+ "xfail: Expected failures",
40
+ "acceptance: Acceptance tests",
41
+ ]
42
+ timeout = 300
43
+ log_cli = true
44
+ log_cli_level = "INFO"
45
+ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
46
+ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
47
+ asyncio_default_fixture_loop_scope = "function"
48
+
49
+ [tool.project.entry-points."swarmauri.tools"]
50
+ SentimentAnalysisTool = "swarmauri_tool_sentimentanalysis.SentimentAnalysisTool:SentimentAnalysisTool"
51
+
52
+ [build-system]
53
+ requires = ["poetry-core>=1.0.0"]
54
+ build-backend = "poetry.core.masonry.api"
55
+
56
+ [dependency-groups]
57
+ dev = [
58
+ "pytest>=8.0",
59
+ "pytest-asyncio>=0.24.0",
60
+ "pytest-xdist>=3.6.1",
61
+ "pytest-json-report>=1.5.0",
62
+ "python-dotenv",
63
+ "requests>=2.32.3",
64
+ "flake8>=7.0",
65
+ "pytest-timeout>=2.3.1",
66
+ "ruff>=0.9.9",
67
+ ]
@@ -2,8 +2,8 @@ from transformers import pipeline
2
2
  from transformers import logging as hf_logging
3
3
  from typing import List, Literal, Dict
4
4
  from swarmauri_base.tools.ToolBase import ToolBase
5
- from swarmauri.tools.Parameter import Parameter
6
- from swarmauri_core.ComponentBase import ComponentBase
5
+ from swarmauri_standard.tools.Parameter import Parameter
6
+ from swarmauri_base.ComponentBase import ComponentBase
7
7
  from pydantic import Field
8
8
 
9
9
  hf_logging.set_verbosity_error()
@@ -20,7 +20,7 @@ class SentimentAnalysisTool(ToolBase):
20
20
  default_factory=lambda: [
21
21
  Parameter(
22
22
  name="text",
23
- type="string",
23
+ input_type="string",
24
24
  description="The text for sentiment analysis",
25
25
  required=True,
26
26
  )
@@ -1,54 +0,0 @@
1
- [tool.poetry]
2
- name = "swarmauri_tool_sentimentanalysis"
3
- version = "0.6.1.dev15"
4
- description = "Sentiment Analysis Tool"
5
- authors = ["Jacob Stewart <jacob@swarmauri.com>"]
6
- license = "Apache-2.0"
7
- readme = "README.md"
8
- repository = "http://github.com/swarmauri/swarmauri-sdk"
9
- classifiers = [
10
- "License :: OSI Approved :: Apache Software License",
11
- "Programming Language :: Python :: 3.10",
12
- "Programming Language :: Python :: 3.11",
13
- "Programming Language :: Python :: 3.12"
14
- ]
15
-
16
- [tool.poetry.dependencies]
17
- python = ">=3.10,<3.13"
18
-
19
- # Swarmauri
20
- swarmauri_core = {version = "^0.6.1.dev15"}
21
- swarmauri_base = {version = "^0.6.1.dev15"}
22
- swarmauri_standard = {version = "^0.6.1.dev2"}
23
-
24
- [tool.poetry.group.dev.dependencies]
25
- flake8 = "^7.0"
26
- pytest = "^8.0"
27
- pytest-asyncio = ">=0.24.0"
28
- pytest-xdist = "^3.6.1"
29
- pytest-json-report = "^1.5.0"
30
- python-dotenv = "*"
31
- requests = "^2.32.3"
32
-
33
- [build-system]
34
- requires = ["poetry-core>=1.0.0"]
35
- build-backend = "poetry.core.masonry.api"
36
-
37
- [tool.pytest.ini_options]
38
- norecursedirs = ["combined", "scripts"]
39
-
40
- markers = [
41
- "test: standard test",
42
- "unit: Unit tests",
43
- "integration: Integration tests",
44
- "acceptance: Acceptance tests",
45
- "experimental: Experimental tests"
46
- ]
47
- log_cli = true
48
- log_cli_level = "INFO"
49
- log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
50
- log_cli_date_format = "%Y-%m-%d %H:%M:%S"
51
- asyncio_default_fixture_loop_scope = "function"
52
-
53
- [tool.poetry.plugins."swarmauri.tools"]
54
- SentimentAnalysisTool = "swarmauri_tool_sentimentanalysis.SentimentAnalysisTool:SentimentAnalysisTool"