swarmauri-core 0.5.1.dev3__tar.gz → 0.5.1.dev5__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.
Files changed (111) hide show
  1. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/PKG-INFO +1 -1
  2. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/ComponentBase.py +1 -1
  3. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/__init__.py +1 -1
  4. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/experiment_stores/__init__.py +2 -2
  5. swarmauri_core-0.5.1.dev5/swarmauri_core/llms/IPredict.py +48 -0
  6. swarmauri_core-0.5.1.dev5/swarmauri_core/measurements/IMeasurement.py +19 -0
  7. swarmauri_core-0.5.1.dev5/swarmauri_core/measurements/IMeasurementAggregate.py +16 -0
  8. swarmauri_core-0.5.1.dev5/swarmauri_core/measurements/IMeasurementCalculate.py +30 -0
  9. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core.egg-info/PKG-INFO +1 -1
  10. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core.egg-info/SOURCES.txt +5 -5
  11. swarmauri_core-0.5.1.dev3/swarmauri_core/llms/IPredict.py +0 -13
  12. swarmauri_core-0.5.1.dev3/swarmauri_core/metrics/IMetric.py +0 -19
  13. swarmauri_core-0.5.1.dev3/swarmauri_core/metrics/IMetricAggregate.py +0 -16
  14. swarmauri_core-0.5.1.dev3/swarmauri_core/metrics/IMetricCalculate.py +0 -30
  15. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/setup.cfg +0 -0
  16. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/setup.py +0 -0
  17. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_apis/IAgentCommands.py +0 -0
  18. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_apis/IAgentRouterCRUD.py +0 -0
  19. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_apis/__init__.py +0 -0
  20. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_factories/IAgentFactory.py +0 -0
  21. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_factories/IExportConf.py +0 -0
  22. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agent_factories/__init__.py +0 -0
  23. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgent.py +0 -0
  24. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentConversation.py +0 -0
  25. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentParser.py +0 -0
  26. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentRetrieve.py +0 -0
  27. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentSystemContext.py +0 -0
  28. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentToolkit.py +0 -0
  29. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/IAgentVectorStore.py +0 -0
  30. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/agents/__init__.py +0 -0
  31. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/ICallableChain.py +0 -0
  32. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChain.py +0 -0
  33. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChainContext.py +0 -0
  34. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChainContextLoader.py +0 -0
  35. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChainDependencyResolver.py +0 -0
  36. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChainFactory.py +0 -0
  37. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/IChainStep.py +0 -0
  38. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chains/__init__.py +0 -0
  39. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chunkers/IChunker.py +0 -0
  40. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/chunkers/__init__.py +0 -0
  41. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/conversations/IConversation.py +0 -0
  42. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/conversations/IMaxSize.py +0 -0
  43. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/conversations/ISystemContext.py +0 -0
  44. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/conversations/__init__.py +0 -0
  45. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/distances/IDistanceSimilarity.py +0 -0
  46. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/distances/__init__.py +0 -0
  47. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/document_stores/IDocumentRetrieve.py +0 -0
  48. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/document_stores/IDocumentStore.py +0 -0
  49. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/document_stores/__init__.py +0 -0
  50. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/documents/IDocument.py +0 -0
  51. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/documents/IExperimentDocument.py +0 -0
  52. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/documents/__init__.py +0 -0
  53. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/embeddings/IFeature.py +0 -0
  54. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/embeddings/ISaveModel.py +0 -0
  55. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/embeddings/IVectorize.py +0 -0
  56. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/embeddings/__init__.py +0 -0
  57. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/experiment_stores/IExperimentStore.py +0 -0
  58. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/llms/IFit.py +0 -0
  59. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/llms/__init__.py +0 -0
  60. {swarmauri_core-0.5.1.dev3/swarmauri_core/metrics → swarmauri_core-0.5.1.dev5/swarmauri_core/measurements}/IThreshold.py +0 -0
  61. {swarmauri_core-0.5.1.dev3/swarmauri_core/metrics → swarmauri_core-0.5.1.dev5/swarmauri_core/measurements}/__init__.py +0 -0
  62. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/messages/IMessage.py +0 -0
  63. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/messages/__init__.py +0 -0
  64. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/parsers/IParser.py +0 -0
  65. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/parsers/__init__.py +0 -0
  66. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/prompts/IPrompt.py +0 -0
  67. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/prompts/IPromptMatrix.py +0 -0
  68. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/prompts/ITemplate.py +0 -0
  69. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/prompts/__init__.py +0 -0
  70. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/schema_converters/ISchemaConvert.py +0 -0
  71. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/schema_converters/__init__.py +0 -0
  72. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarm_apis/IAgentRegistrationAPI.py +0 -0
  73. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarm_apis/ISwarmAPI.py +0 -0
  74. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarm_apis/__init__.py +0 -0
  75. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarm.py +0 -0
  76. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarmAgentRegistration.py +0 -0
  77. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarmChainCRUD.py +0 -0
  78. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarmComponent.py +0 -0
  79. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarmConfigurationExporter.py +0 -0
  80. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/ISwarmFactory.py +0 -0
  81. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/swarms/__init__.py +0 -0
  82. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/toolkits/IToolkit.py +0 -0
  83. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/toolkits/__init__.py +0 -0
  84. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tools/IParameter.py +0 -0
  85. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tools/ITool.py +0 -0
  86. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tools/__init__.py +0 -0
  87. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tracing/IChainTracer.py +0 -0
  88. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tracing/ITraceContext.py +0 -0
  89. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tracing/ITracer.py +0 -0
  90. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/tracing/__init__.py +0 -0
  91. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/typing.py +0 -0
  92. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/utils/ITransactional.py +0 -0
  93. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/utils/__init__.py +0 -0
  94. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vcms/IPredictVision.py +0 -0
  95. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vcms/__init__.py +0 -0
  96. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/ICloudVectorStore.py +0 -0
  97. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/IPersistentVectorStore.py +0 -0
  98. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/ISimilarity.py +0 -0
  99. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/IVectorNorm.py +0 -0
  100. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/IVectorStore.py +0 -0
  101. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/IVectorStoreRetrieve.py +0 -0
  102. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/IVectorStoreSaveLoad.py +0 -0
  103. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vector_stores/__init__.py +0 -0
  104. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vectors/IVector.py +0 -0
  105. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vectors/IVectorMeta.py +0 -0
  106. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vectors/IVectorProduct.py +0 -0
  107. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vectors/IVectorTransform.py +0 -0
  108. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core/vectors/__init__.py +0 -0
  109. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core.egg-info/dependency_links.txt +0 -0
  110. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core.egg-info/requires.txt +0 -0
  111. {swarmauri_core-0.5.1.dev3 → swarmauri_core-0.5.1.dev5}/swarmauri_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: swarmauri-core
3
- Version: 0.5.1.dev3
3
+ Version: 0.5.1.dev5
4
4
  Summary: This repository includes core interfaces, standard ABCs and concrete references, third party plugins, and experimental modules for the swarmaURI framework.
5
5
  Home-page: http://github.com/swarmauri/swarmauri-sdk
6
6
  Author: Jacob Stewart
@@ -36,7 +36,7 @@ class ResourceTypes(Enum):
36
36
  EXCEPTION = "Exception"
37
37
  LLM = "LLM"
38
38
  MESSAGE = "Message"
39
- METRIC = "Metric"
39
+ MEASUREMENT = "Measurement"
40
40
  PARSER = "Parser"
41
41
  PROMPT = "Prompt"
42
42
  STATE = "State"
@@ -1,4 +1,4 @@
1
- __version__ = "0.5.1.dev3"
1
+ __version__ = "0.5.1.dev5"
2
2
  __long_desc__ = """
3
3
  # Swarmauri Core
4
4
 
@@ -75,10 +75,10 @@ class IExperimentStore(ABC):
75
75
  @abstractmethod
76
76
  def evaluate_experiments(self, evaluation_criteria: Dict[str, Any]) -> Any:
77
77
  """
78
- Evaluates the experiments stored in the experiment store based on given criteria and metrics.
78
+ Evaluates the experiments stored in the experiment store based on given criteria and measurements.
79
79
 
80
80
  Parameters:
81
- - evaluation_criteria (Dict[str, Any]): The criteria and metrics to evaluate the experiments.
81
+ - evaluation_criteria (Dict[str, Any]): The criteria and measurements to evaluate the experiments.
82
82
 
83
83
  Returns:
84
84
  - Any: The evaluation results, which may vary depending on the evaluation criteria.
@@ -0,0 +1,48 @@
1
+ from abc import ABC, abstractmethod
2
+
3
+ class IPredict(ABC):
4
+ """
5
+ Interface focusing on the basic properties and settings essential for defining models.
6
+ """
7
+
8
+ @abstractmethod
9
+ def predict(self, *args, **kwargs) -> any:
10
+ """
11
+ Generate predictions based on the input data provided to the model.
12
+ """
13
+ pass
14
+
15
+ @abstractmethod
16
+ async def apredict(self, *args, **kwargs) -> any:
17
+ """
18
+ Generate predictions based on the input data provided to the model.
19
+ """
20
+ pass
21
+
22
+ @abstractmethod
23
+ def stream(self, *args, **kwargs) -> any:
24
+ """
25
+ Generate predictions based on the input data provided to the model.
26
+ """
27
+ pass
28
+
29
+ @abstractmethod
30
+ async def astream(self, *args, **kwargs) -> any:
31
+ """
32
+ Generate predictions based on the input data provided to the model.
33
+ """
34
+ pass
35
+
36
+ @abstractmethod
37
+ def batch(self, *args, **kwargs) -> any:
38
+ """
39
+ Generate predictions based on the input data provided to the model.
40
+ """
41
+ pass
42
+
43
+ @abstractmethod
44
+ async def abatch(self, *args, **kwargs) -> any:
45
+ """
46
+ Generate predictions based on the input data provided to the model.
47
+ """
48
+ pass
@@ -0,0 +1,19 @@
1
+ from typing import Any
2
+ from abc import ABC, abstractmethod
3
+
4
+ class IMeasurement(ABC):
5
+ """
6
+ Defines a general interface for measurements within the SwarmaURI system.
7
+ Measurements can be anything from system performance measurements to
8
+ machine learning model evaluation measurements.
9
+ """
10
+
11
+ @abstractmethod
12
+ def __call__(self, **kwargs) -> Any:
13
+ """
14
+ Retrieves the current value of the measurement.
15
+
16
+ Returns:
17
+ The current value of the measurement.
18
+ """
19
+ pass
@@ -0,0 +1,16 @@
1
+ from typing import List, Any
2
+ from abc import ABC, abstractmethod
3
+
4
+ class IMeasurementAggregate(ABC):
5
+
6
+ @abstractmethod
7
+ def add_measurement(self, measurement: Any) -> None:
8
+ pass
9
+
10
+ @abstractmethod
11
+ def reset(self) -> None:
12
+ """
13
+ Reset or clear the measurement's current state, starting fresh as if no data had been processed.
14
+ This is useful for measurements that might aggregate or average data over time and need to be reset.
15
+ """
16
+ pass
@@ -0,0 +1,30 @@
1
+ from typing import Any
2
+ from abc import ABC, abstractmethod
3
+
4
+ class IMeasurementCalculate(ABC):
5
+
6
+ @abstractmethod
7
+ def calculate(self, **kwargs) -> Any:
8
+ """
9
+ Calculate the measurement based on the provided data.
10
+
11
+ Args:
12
+ *args: Variable length argument list that the measurement calculation might require.
13
+ **kwargs: Arbitrary keyword arguments that the measurement calculation might require.
14
+ """
15
+ pass
16
+
17
+ @abstractmethod
18
+ def update(self, value) -> None:
19
+ """
20
+ Update the measurement value based on new information.
21
+
22
+ Args:
23
+ value: The new information used to update the measurement. This could be a new
24
+ measurement or data point that affects the measurement's current value.
25
+
26
+ Note:
27
+ This method is intended for internal use and should not be publicly accessible.
28
+ """
29
+ pass
30
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: swarmauri-core
3
- Version: 0.5.1.dev3
3
+ Version: 0.5.1.dev5
4
4
  Summary: This repository includes core interfaces, standard ABCs and concrete references, third party plugins, and experimental modules for the swarmaURI framework.
5
5
  Home-page: http://github.com/swarmauri/swarmauri-sdk
6
6
  Author: Jacob Stewart
@@ -52,13 +52,13 @@ swarmauri_core/experiment_stores/__init__.py
52
52
  swarmauri_core/llms/IFit.py
53
53
  swarmauri_core/llms/IPredict.py
54
54
  swarmauri_core/llms/__init__.py
55
+ swarmauri_core/measurements/IMeasurement.py
56
+ swarmauri_core/measurements/IMeasurementAggregate.py
57
+ swarmauri_core/measurements/IMeasurementCalculate.py
58
+ swarmauri_core/measurements/IThreshold.py
59
+ swarmauri_core/measurements/__init__.py
55
60
  swarmauri_core/messages/IMessage.py
56
61
  swarmauri_core/messages/__init__.py
57
- swarmauri_core/metrics/IMetric.py
58
- swarmauri_core/metrics/IMetricAggregate.py
59
- swarmauri_core/metrics/IMetricCalculate.py
60
- swarmauri_core/metrics/IThreshold.py
61
- swarmauri_core/metrics/__init__.py
62
62
  swarmauri_core/parsers/IParser.py
63
63
  swarmauri_core/parsers/__init__.py
64
64
  swarmauri_core/prompts/IPrompt.py
@@ -1,13 +0,0 @@
1
- from abc import ABC, abstractmethod
2
-
3
- class IPredict(ABC):
4
- """
5
- Interface focusing on the basic properties and settings essential for defining models.
6
- """
7
-
8
- @abstractmethod
9
- def predict(self, *args, **kwargs) -> any:
10
- """
11
- Generate predictions based on the input data provided to the model.
12
- """
13
- pass
@@ -1,19 +0,0 @@
1
- from typing import Any
2
- from abc import ABC, abstractmethod
3
-
4
- class IMetric(ABC):
5
- """
6
- Defines a general interface for metrics within the SwarmaURI system.
7
- Metrics can be anything from system performance measurements to
8
- machine learning model evaluation metrics.
9
- """
10
-
11
- @abstractmethod
12
- def __call__(self, **kwargs) -> Any:
13
- """
14
- Retrieves the current value of the metric.
15
-
16
- Returns:
17
- The current value of the metric.
18
- """
19
- pass
@@ -1,16 +0,0 @@
1
- from typing import List, Any
2
- from abc import ABC, abstractmethod
3
-
4
- class IMetricAggregate(ABC):
5
-
6
- @abstractmethod
7
- def add_measurement(self, measurement: Any) -> None:
8
- pass
9
-
10
- @abstractmethod
11
- def reset(self) -> None:
12
- """
13
- Reset or clear the metric's current state, starting fresh as if no data had been processed.
14
- This is useful for metrics that might aggregate or average data over time and need to be reset.
15
- """
16
- pass
@@ -1,30 +0,0 @@
1
- from typing import Any
2
- from abc import ABC, abstractmethod
3
-
4
- class IMetricCalculate(ABC):
5
-
6
- @abstractmethod
7
- def calculate(self, **kwargs) -> Any:
8
- """
9
- Calculate the metric based on the provided data.
10
-
11
- Args:
12
- *args: Variable length argument list that the metric calculation might require.
13
- **kwargs: Arbitrary keyword arguments that the metric calculation might require.
14
- """
15
- pass
16
-
17
- @abstractmethod
18
- def update(self, value) -> None:
19
- """
20
- Update the metric value based on new information.
21
-
22
- Args:
23
- value: The new information used to update the metric. This could be a new
24
- measurement or data point that affects the metric's current value.
25
-
26
- Note:
27
- This method is intended for internal use and should not be publicly accessible.
28
- """
29
- pass
30
-