swarmauri_standard 0.9.2.dev9__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_standard-0.9.2.dev9/LICENSE +201 -0
- swarmauri_standard-0.9.2.dev9/PKG-INFO +313 -0
- swarmauri_standard-0.9.2.dev9/README.md +284 -0
- swarmauri_standard-0.9.2.dev9/pyproject.toml +81 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/README.md +55 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/__init__.py +44 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/agents/QAAgent.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/agents/RagAgent.py +134 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/agents/SimpleConversationAgent.py +40 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/agents/ToolAgent.py +82 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/agents/__init__.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chains/CallableChain.py +32 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chains/ChainStep.py +12 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chains/ContextChain.py +50 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chains/PromptContextChain.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chains/__init__.py +15 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/DelimiterBasedChunker.py +43 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/FixedLengthChunker.py +38 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/MdSnippetChunker.py +58 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/SentenceChunker.py +35 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/SlidingWindowChunker.py +39 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/chunkers/__init__.py +18 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/conversations/Conversation.py +12 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/conversations/MaxSizeConversation.py +27 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/conversations/MaxSystemContextConversation.py +99 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/conversations/SessionCacheConversation.py +93 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/conversations/__init__.py +22 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/dataconnectors/GoogleDriveDataConnector.py +341 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/dataconnectors/__init__.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/decorators/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/decorators/deprecate.py +134 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/decorators/maybe_async.py +20 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/decorators/retry_on_status_codes.py +94 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/decorators/tool_decorator.py +63 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/CanberraDistance.py +78 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/ChebyshevDistance.py +59 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/ChiSquaredDistance.py +49 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/CosineDistance.py +77 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/EuclideanDistance.py +63 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/HaversineDistance.py +61 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/JaccardIndexDistance.py +83 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/LevenshteinDistance.py +93 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/ManhattanDistance.py +65 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/SorensenDiceDistance.py +65 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/SquaredEuclideanDistance.py +63 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/distances/__init__.py +27 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/documents/Document.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/documents/__init__.py +11 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/CohereEmbedding.py +194 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/GeminiEmbedding.py +165 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/MistralEmbedding.py +133 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/OpenAIEmbedding.py +139 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/TfidfEmbedding.py +133 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/VoyageEmbedding.py +118 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/embeddings/__init__.py +19 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/evaluator_pools/EvaluatorPool.py +11 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/evaluator_pools/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/evaluator_results/EvalResult.py +169 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/evaluator_results/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/exceptions/IndexErrorWithContext.py +26 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/exceptions/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/factories/AgentFactory.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/factories/Factory.py +44 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/factories/__init__.py +14 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/BlackForestImgGenModel.py +279 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/DeepInfraImgGenModel.py +216 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/FalAIImgGenModel.py +468 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/HyperbolicImgGenModel.py +230 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/OpenAIImgGenModel.py +206 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/image_gens/__init__.py +17 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/EuclideanInnerProduct.py +234 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/FrobeniusComplexInnerProduct.py +275 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/FrobeniusRealInnerProduct.py +198 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/HermitianInnerProduct.py +319 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/RKHSInnerProduct.py +250 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/SobolevH1InnerProduct.py +456 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/TraceFormWeightedInnerProduct.py +336 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/WeightedL2InnerProduct.py +411 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/inner_products/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/key_providers/InMemoryKeyProvider.py +147 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/key_providers/__init__.py +3 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/AI21StudioModel.py +433 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/AnthropicModel.py +457 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/AnthropicToolModel.py +488 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/CerebrasModel.py +322 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/CohereModel.py +511 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/CohereToolModel.py +684 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/DeepInfraModel.py +421 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/DeepSeekModel.py +375 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/FalAIVisionModel.py +315 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GeminiProModel.py +494 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GeminiToolModel.py +625 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GroqAIAudio.py +246 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GroqModel.py +418 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GroqToolModel.py +516 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/GroqVisionModel.py +409 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/HyperbolicAudioTTS.py +177 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/HyperbolicModel.py +462 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/HyperbolicVisionModel.py +412 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/LLM.py +520 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/LlamaCppModel.py +364 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/MistralModel.py +474 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/MistralToolModel.py +565 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/OpenAIAudio.py +238 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/OpenAIAudioTTS.py +248 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/OpenAIModel.py +516 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/OpenAIReasonModel.py +349 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/OpenAIToolModel.py +497 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/PerplexityModel.py +517 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/PlayHTModel.py +388 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/WhisperLargeModel.py +257 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/llms/__init__.py +81 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/BorderFormatter.py +113 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/ColorFormatter.py +124 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/ContextualFormatter.py +208 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/HTMLFormatter.py +150 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/IndentedFormatter.py +89 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/JSONFormatter.py +165 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/KeyValueFormatter.py +115 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/LoggerFormatter.py +31 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/MultilineFormatter.py +164 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_formatters/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/EmailLoggingHandler.py +142 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/FileLoggingHandler.py +91 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/HTTPLoggingHandler.py +143 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/HTTPSLoggingHandler.py +208 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/MemoryLoggingHandler.py +136 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/NullLoggingHandler.py +51 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/QueueLoggingHandler.py +82 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/RichLoggingHandler.py +95 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/RotatingFileLoggingHandler.py +91 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/StreamLoggingHandler.py +89 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/SysLogLoggingHandler.py +90 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/TimedRotatingFileLoggingHandler.py +126 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/logger_handlers/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/loggers/Logger.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/loggers/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/CompletenessMeasurement.py +80 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/DistinctivenessMeasurement.py +99 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/FirstImpressionMeasurement.py +21 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/MeanMeasurement.py +52 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/MiscMeasurement.py +177 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/MissingnessMeasurement.py +121 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/PatternMatchingMeasurement.py +36 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/RatioOfSumsMeasurement.py +40 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/StaticMeasurement.py +21 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/UniquenessMeasurement.py +98 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/ZeroMeasurement.py +21 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/measurements/__init__.py +41 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/messages/AgentMessage.py +26 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/messages/FunctionMessage.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/messages/HumanMessage.py +41 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/messages/SystemMessage.py +11 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/messages/__init__.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/AbsoluteValueMetric.py +267 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/DiscreteMetric.py +217 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/EuclideanMetric.py +336 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/FrobeniusMetric.py +274 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/HammingMetric.py +259 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/LevenshteinMetric.py +262 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/LpMetric.py +361 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/SobolevMetric.py +402 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/SupremumMetric.py +374 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/metrics/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/GeneralLpNorm.py +304 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/L1ManhattanNorm.py +425 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/L2EuclideanNorm.py +317 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/LInfNorm.py +404 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/SobolevNorm.py +490 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/SupremumComplexNorm.py +326 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/norms/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/CSVParser.py +50 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/HTMLTagStripParser.py +44 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/Md2HtmlParser.py +40 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/OpenAPISpecParser.py +48 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/PhoneNumberExtractorParser.py +41 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/PythonParser.py +60 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/RegExParser.py +41 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/URLExtractorParser.py +45 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/XMLParser.py +49 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/parsers/__init__.py +29 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pipelines/Pipeline.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pipelines/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/programs/Program.py +211 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/programs/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompt_templates/PromptTemplate.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompt_templates/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompts/Prompt.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompts/PromptGenerator.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompts/PromptMatrix.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/prompts/__init__.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/EquivalenceRelationPseudometric.py +259 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/FunctionDifferencePseudometric.py +627 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/LpPseudometric.py +531 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/ProjectionPseudometricR2.py +408 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/ZeroPseudometric.py +239 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/pseudometrics/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/rate_limits/TokenBucketRateLimit.py +17 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/rate_limits/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/AnthropicSchemaConverter.py +32 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/CohereSchemaConverter.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/GeminiSchemaConverter.py +74 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/GroqSchemaConverter.py +40 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/MistralSchemaConverter.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/OpenAISchemaConverter.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/ShuttleAISchemaConverter.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/schema_converters/__init__.py +37 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/CoordinateProjectionSeminorm.py +305 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/LpSeminorm.py +253 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/PartialSumSeminorm.py +343 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/PointEvaluationSeminorm.py +288 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/TraceSeminorm.py +267 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/ZeroSeminorm.py +117 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/seminorms/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/service_registries/ServiceRegistry.py +12 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/service_registries/__init__.py +16 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/signing/__init__.py +1 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/BhattacharyyaCoefficientSimilarity.py +230 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/BrayCurtisSimilarity.py +290 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/CosineSimilarity.py +315 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/DiceSimilarity.py +256 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/GaussianRBFSimilarity.py +218 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/HellingerAffinitySimilarity.py +398 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/JaccardIndexSimilarity.py +185 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/OverlapCoefficientSimilarity.py +323 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/TanimotoSimilarity.py +424 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/TriangleCosineSimilarity.py +305 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/similarities/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/state/DictState.py +52 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/state/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/stt/GroqSTT.py +235 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/stt/OpenaiSTT.py +226 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/stt/WhisperLargeSTT.py +251 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/stt/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/swarms/Swarm.py +19 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/swarms/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/task_mgmt_strategies/RoundRobinStrategy.py +85 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/task_mgmt_strategies/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/AnthropicToolModel.py +660 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/CohereToolModel.py +712 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/DeepInfraToolModel.py +582 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/GeminiToolModel.py +791 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/GroqToolModel.py +616 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/MistralToolModel.py +662 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/OpenAIToolModel.py +626 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/ToolLLM.py +452 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tool_llms/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/toolkits/AccessibilityToolkit.py +28 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/toolkits/Toolkit.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/toolkits/__init__.py +14 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/AdditionTool.py +43 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/AutomatedReadabilityIndexTool.py +120 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/CalculatorTool.py +96 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/CodeExtractorTool.py +136 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/CodeInterpreterTool.py +65 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/ColemanLiauIndexTool.py +121 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/FleschKincaidTool.py +168 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/FleschReadingEaseTool.py +99 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/GunningFogTool.py +150 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/ImportMemoryModuleTool.py +92 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/JSONRequestsTool.py +186 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/Parameter.py +12 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/RequestsTool.py +175 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/SubprocessTool.py +78 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/TemperatureConverterTool.py +71 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/TestTool.py +72 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/WeatherTool.py +36 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tools/__init__.py +35 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/CallableTracer.py +38 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/ChainTracer.py +54 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/SimpleTraceContext.py +27 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/SimpleTracer.py +46 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/TracedVariable.py +30 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/VariableTracer.py +28 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tracing/__init__.py +17 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/transports/PubSubTransport.py +102 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/transports/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tts/HyperbolicTTS.py +166 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tts/OpenaiTTS.py +238 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tts/PlayhtTTS.py +396 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/tts/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/__init__.py +0 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/_get_subclasses.py +71 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/_lazy_import.py +22 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/apply_metaclass.py +4 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/base64_encoder.py +17 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/base64_to_file_path.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/base64_to_img_url.py +42 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/base64_to_in_memory_img.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/decorate.py +30 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/duration_manager.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/file_path_to_base64.py +10 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/file_path_to_img_url.py +43 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/file_path_to_in_memory_img.py +6 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/get_class_hash.py +36 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/img_url_to_base64.py +12 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/img_url_to_file_path.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/img_url_to_in_memory_img.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/in_memory_img_to_base64.py +9 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/in_memory_img_to_file_path.py +5 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/in_memory_img_to_img_url.py +49 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/json_validator.py +19 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/load_documents_from_folder.py +75 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/load_documents_from_json.py +35 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/memoize.py +19 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/method_signature_extractor_decorator.py +111 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/print_notebook_metadata.py +108 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/retry_decorator.py +94 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/sql_log.py +92 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/timeout_wrapper.py +42 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/utils/tool_decorator.py +71 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vector_stores/TfidfVectorStore.py +76 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vector_stores/__init__.py +14 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vectors/Vector.py +8 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vectors/__init__.py +13 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vlms/FalVLM.py +286 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vlms/GroqVLM.py +399 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vlms/HyperbolicVLM.py +402 -0
- swarmauri_standard-0.9.2.dev9/swarmauri_standard/vlms/__init__.py +0 -0
|
@@ -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,313 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_standard
|
|
3
|
+
Version: 0.9.2.dev9
|
|
4
|
+
Summary: This repository includes standard components within the Swarmauri framework.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: Jacob Stewart
|
|
8
|
+
Author-email: jacob@swarmauri.com
|
|
9
|
+
Requires-Python: >=3.10,<3.13
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Requires-Dist: aiofiles
|
|
15
|
+
Requires-Dist: h11 (>=0.16.0)
|
|
16
|
+
Requires-Dist: httpx (>=0.27.0)
|
|
17
|
+
Requires-Dist: joblib (>=1.4.0)
|
|
18
|
+
Requires-Dist: numpy
|
|
19
|
+
Requires-Dist: pandas
|
|
20
|
+
Requires-Dist: pillow (>=11.1.0)
|
|
21
|
+
Requires-Dist: pydantic (>=2.9.2)
|
|
22
|
+
Requires-Dist: rich
|
|
23
|
+
Requires-Dist: swarmauri_base
|
|
24
|
+
Requires-Dist: swarmauri_core
|
|
25
|
+
Requires-Dist: toml (>=0.10.2)
|
|
26
|
+
Requires-Dist: typing_extensions
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
<p align="center">
|
|
32
|
+
<a href="https://pypi.org/project/swarmauri-standard/">
|
|
33
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri-standard" alt="PyPI - Downloads"/></a>
|
|
34
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_standard/">
|
|
35
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_standard.svg"/></a>
|
|
36
|
+
<a href="https://pypi.org/project/swarmauri-standard/">
|
|
37
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri-standard" alt="PyPI - Python Version"/></a>
|
|
38
|
+
<a href="https://pypi.org/project/swarmauri-standard/">
|
|
39
|
+
<img src="https://img.shields.io/pypi/l/swarmauri-standard" alt="PyPI - License"/></a>
|
|
40
|
+
<a href="https://pypi.org/project/swarmauri-standard/">
|
|
41
|
+
<img src="https://img.shields.io/pypi/v/swarmauri-standard?label=swarmauri-standard&color=green" alt="PyPI - swarmauri-standard"/></a>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
# Swarmauri Standard
|
|
49
|
+
|
|
50
|
+
The Swarmauri SDK offers a comprehensive suite of tools designed for building distributed, extensible systems using the Swarmauri framework.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Standard
|
|
54
|
+
|
|
55
|
+
- **Concrete Classes**: Ready-to-use, pre-implemented classes that fulfill standard system needs while adhering to Swarmauri principles. **These classes are the first in line for ongoing support and maintenance, ensuring they remain stable, performant, and up to date with future SDK developments.**
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## AI Kit
|
|
60
|
+
|
|
61
|
+
The AI Kit provides a collection of tools and components for building intelligent systems with the Swarmauri SDK. Below is an overview of the directories and their contents:
|
|
62
|
+
|
|
63
|
+
### Agents
|
|
64
|
+
- [QAAgent.py](swarmauri_standard/agents/QAAgent.py): Implements a question-answering agent.
|
|
65
|
+
- [RagAgent.py](swarmauri_standard/agents/RagAgent.py): Implements a retrieval-augmented generation agent.
|
|
66
|
+
- [SimpleConversationAgent.py](swarmauri_standard/agents/SimpleConversationAgent.py): Implements a basic conversational agent.
|
|
67
|
+
- [ToolAgent.py](swarmauri_standard/agents/ToolAgent.py): Implements an agent that uses various tools.
|
|
68
|
+
|
|
69
|
+
### Chains
|
|
70
|
+
- [CallableChain.py](swarmauri_standard/chains/CallableChain.py): Defines a chain of callable steps.
|
|
71
|
+
- [ChainStep.py](swarmauri_standard/chains/ChainStep.py): Represents a single step in a chain.
|
|
72
|
+
- [ContextChain.py](swarmauri_standard/chains/ContextChain.py): Manages context within a chain.
|
|
73
|
+
- [PromptContextChain.py](swarmauri_standard/chains/PromptContextChain.py): Handles prompt-based context in a chain.
|
|
74
|
+
|
|
75
|
+
### Chunkers
|
|
76
|
+
- [DelimiterBasedChunker.py](swarmauri_standard/chunkers/DelimiterBasedChunker.py): Splits text based on delimiters.
|
|
77
|
+
- [FixedLengthChunker.py](swarmauri_standard/chunkers/FixedLengthChunker.py): Splits text into fixed-length chunks.
|
|
78
|
+
- [MdSnippetChunker.py](swarmauri_standard/chunkers/MdSnippetChunker.py): Splits markdown text into snippets.
|
|
79
|
+
- [SentenceChunker.py](swarmauri_standard/chunkers/SentenceChunker.py): Splits text into sentences.
|
|
80
|
+
- [SlidingWindowChunker.py](swarmauri_standard/chunkers/SlidingWindowChunker.py): Splits text using a sliding window approach.
|
|
81
|
+
|
|
82
|
+
### Conversations
|
|
83
|
+
- [Conversation.py](swarmauri_standard/conversations/Conversation.py): Manages conversation state and flow.
|
|
84
|
+
- [MaxSizeConversation.py](swarmauri_standard/conversations/MaxSizeConversation.py): Implements a conversation with a maximum size limit.
|
|
85
|
+
- [MaxSystemContextConversation.py](swarmauri_standard/conversations/MaxSystemContextConversation.py): Manages conversation with system context constraints.
|
|
86
|
+
- [SessionCacheConversation.py](swarmauri_standard/conversations/SessionCacheConversation.py): Implements a session-cached conversation.
|
|
87
|
+
|
|
88
|
+
### Data Connectors
|
|
89
|
+
- [GoogleDriveDataConnector.py](swarmauri_standard/dataconnectors/GoogleDriveDataConnector.py): Connects to Google Drive for data access.
|
|
90
|
+
|
|
91
|
+
### Decorators
|
|
92
|
+
- [deprecate.py](swarmauri_standard/decorators/deprecate.py): Marks functions as deprecated.
|
|
93
|
+
- [maybe_async.py](swarmauri_standard/decorators/maybe_async.py): Allows functions to be optionally asynchronous.
|
|
94
|
+
- [retry_on_status_codes.py](swarmauri_standard/decorators/retry_on_status_codes.py): Retries functions based on status codes.
|
|
95
|
+
- [tool_decorator.py](swarmauri_standard/decorators/tool_decorator.py): Decorates tool functions.
|
|
96
|
+
|
|
97
|
+
### Distances
|
|
98
|
+
- [CanberraDistance.py](swarmauri_standard/distances/CanberraDistance.py): Calculates Canberra distance.
|
|
99
|
+
- [ChebyshevDistance.py](swarmauri_standard/distances/ChebyshevDistance.py): Calculates Chebyshev distance.
|
|
100
|
+
- [ChiSquaredDistance.py](swarmauri_standard/distances/ChiSquaredDistance.py): Calculates Chi-squared distance.
|
|
101
|
+
- [CosineDistance.py](swarmauri_standard/distances/CosineDistance.py): Calculates Cosine distance.
|
|
102
|
+
- [EuclideanDistance.py](swarmauri_standard/distances/EuclideanDistance.py): Calculates Euclidean distance.
|
|
103
|
+
- [HaversineDistance.py](swarmauri_standard/distances/HaversineDistance.py): Calculates Haversine distance.
|
|
104
|
+
- [JaccardIndexDistance.py](swarmauri_standard/distances/JaccardIndexDistance.py): Calculates Jaccard index distance.
|
|
105
|
+
- [LevenshteinDistance.py](swarmauri_standard/distances/LevenshteinDistance.py): Calculates Levenshtein distance.
|
|
106
|
+
- [ManhattanDistance.py](swarmauri_standard/distances/ManhattanDistance.py): Calculates Manhattan distance.
|
|
107
|
+
- [SorensenDiceDistance.py](swarmauri_standard/distances/SorensenDiceDistance.py): Calculates Sørensen-Dice distance.
|
|
108
|
+
- [SquaredEuclideanDistance.py](swarmauri_standard/distances/SquaredEuclideanDistance.py): Calculates squared Euclidean distance.
|
|
109
|
+
|
|
110
|
+
### Documents
|
|
111
|
+
- [Document.py](swarmauri_standard/documents/Document.py): Manages document data and operations.
|
|
112
|
+
|
|
113
|
+
### Embeddings
|
|
114
|
+
- [CohereEmbedding.py](swarmauri_standard/embeddings/CohereEmbedding.py): Generates embeddings using Cohere.
|
|
115
|
+
- [GeminiEmbedding.py](swarmauri_standard/embeddings/GeminiEmbedding.py): Generates embeddings using Gemini.
|
|
116
|
+
- [MistralEmbedding.py](swarmauri_standard/embeddings/MistralEmbedding.py): Generates embeddings using Mistral.
|
|
117
|
+
- [OpenAIEmbedding.py](swarmauri_standard/embeddings/OpenAIEmbedding.py): Generates embeddings using OpenAI.
|
|
118
|
+
- [TfidfEmbedding.py](swarmauri_standard/embeddings/TfidfEmbedding.py): Generates TF-IDF embeddings.
|
|
119
|
+
- [VoyageEmbedding.py](swarmauri_standard/embeddings/VoyageEmbedding.py): Generates embeddings using Voyage.
|
|
120
|
+
|
|
121
|
+
### Exceptions
|
|
122
|
+
- [IndexErrorWithContext.py](swarmauri_standard/exceptions/IndexErrorWithContext.py): Custom index error with context.
|
|
123
|
+
|
|
124
|
+
### Factories
|
|
125
|
+
- [AgentFactory.py](swarmauri_standard/factories/AgentFactory.py): Creates
|
|
126
|
+
agents using predefined configurations.
|
|
127
|
+
|
|
128
|
+
### Image Generators
|
|
129
|
+
- [BlackForestImgGenModel.py](swarmauri_standard/image_gens/BlackForestImgGenModel.py): Generates images using the Black Forest model.
|
|
130
|
+
- [DeepInfraImgGenModel.py](swarmauri_standard/image_gens/DeepInfraImgGenModel.py): Generates images using the Deep Infra model.
|
|
131
|
+
- [FalAIImgGenModel.py](swarmauri_standard/image_gens/FalAIImgGenModel.py): Generates images using the Fal AI model.
|
|
132
|
+
- [HyperbolicImgGenModel.py](swarmauri_standard/image_gens/HyperbolicImgGenModel.py): Generates images using the Hyperbolic model.
|
|
133
|
+
- [OpenAIImgGenModel.py](swarmauri_standard/image_gens/OpenAIImgGenModel.py): Generates images using the OpenAI model.
|
|
134
|
+
|
|
135
|
+
### LLMs
|
|
136
|
+
- [AI21StudioModel.py](swarmauri_standard/llms/AI21StudioModel.py): Implements the AI21 Studio model.
|
|
137
|
+
- [AnthropicModel.py](swarmauri_standard/llms/AnthropicModel.py): Implements the Anthropic model.
|
|
138
|
+
- [AnthropicToolModel.py](swarmauri_standard/llms/AnthropicToolModel.py): Implements the Anthropic tool model.
|
|
139
|
+
- [CohereModel.py](swarmauri_standard/llms/CohereModel.py): Implements the Cohere model.
|
|
140
|
+
- [CohereToolModel.py](swarmauri_standard/llms/CohereToolModel.py): Implements the Cohere tool model.
|
|
141
|
+
- [DeepInfraModel.py](swarmauri_standard/llms/DeepInfraModel.py): Implements the Deep Infra model.
|
|
142
|
+
- [DeepSeekModel.py](swarmauri_standard/llms/DeepSeekModel.py): Implements the Deep Seek model.
|
|
143
|
+
- [FalAIVisionModel.py](swarmauri_standard/llms/FalAIVisionModel.py): Implements the Fal AI Vision model.
|
|
144
|
+
- [GeminiProModel.py](swarmauri_standard/llms/GeminiProModel.py): Implements the Gemini Pro model.
|
|
145
|
+
- [GeminiToolModel.py](swarmauri_standard/llms/GeminiToolModel.py): Implements the Gemini tool model.
|
|
146
|
+
- [GroqAIAudio.py](swarmauri_standard/llms/GroqAIAudio.py): Implements the Groq AI audio model.
|
|
147
|
+
- [GroqModel.py](swarmauri_standard/llms/GroqModel.py): Implements the Groq model.
|
|
148
|
+
- [GroqToolModel.py](swarmauri_standard/llms/GroqToolModel.py): Implements the Groq tool model.
|
|
149
|
+
- [GroqVisionModel.py](swarmauri_standard/llms/GroqVisionModel.py): Implements the Groq vision model.
|
|
150
|
+
- [HyperbolicAudioTTS.py](swarmauri_standard/llms/HyperbolicAudioTTS.py): Implements the Hyperbolic audio TTS model.
|
|
151
|
+
- [HyperbolicModel.py](swarmauri_standard/llms/HyperbolicModel.py): Implements the Hyperbolic model.
|
|
152
|
+
- [HyperbolicVisionModel.py](swarmauri_standard/llms/HyperbolicVisionModel.py): Implements the Hyperbolic vision model.
|
|
153
|
+
- [LlamaCppModel.py](swarmauri_standard/llms/LlamaCppModel.py): Implements the Llama Cpp model.
|
|
154
|
+
- [MistralModel.py](swarmauri_standard/llms/MistralModel.py): Implements the Mistral model.
|
|
155
|
+
- [MistralToolModel.py](swarmauri_standard/llms/MistralToolModel.py): Implements the Mistral tool model.
|
|
156
|
+
- [OpenAIAudio.py](swarmauri_standard/llms/OpenAIAudio.py): Implements the OpenAI audio model.
|
|
157
|
+
- [OpenAIAudioTTS.py](swarmauri_standard/llms/OpenAIAudioTTS.py): Implements the OpenAI audio TTS model.
|
|
158
|
+
- [OpenAIModel.py](swarmauri_standard/llms/OpenAIModel.py): Implements the OpenAI model.
|
|
159
|
+
- [OpenAIReasonModel.py](swarmauri_standard/llms/OpenAIReasonModel.py): Implements the OpenAI reason model.
|
|
160
|
+
- [OpenAIToolModel.py](swarmauri_standard/llms/OpenAIToolModel.py): Implements the OpenAI tool model.
|
|
161
|
+
- [PerplexityModel.py](swarmauri_standard/llms/PerplexityModel.py): Implements the Perplexity model.
|
|
162
|
+
- [PlayHTModel.py](swarmauri_standard/llms/PlayHTModel.py): Implements the PlayHT model.
|
|
163
|
+
- [WhisperLargeModel.py](swarmauri_standard/llms/WhisperLargeModel.py): Implements the Whisper Large model.
|
|
164
|
+
|
|
165
|
+
### Measurements
|
|
166
|
+
- [CompletenessMeasurement.py](swarmauri_standard/measurements/CompletenessMeasurement.py): Measures the completeness of data.
|
|
167
|
+
- [DistinctivenessMeasurement.py](swarmauri_standard/measurements/DistinctivenessMeasurement.py): Measures the distinctiveness of data.
|
|
168
|
+
- [FirstImpressionMeasurement.py](swarmauri_standard/measurements/FirstImpressionMeasurement.py): Measures the first impression of data.
|
|
169
|
+
- [MeanMeasurement.py](swarmauri_standard/measurements/MeanMeasurement.py): Measures the mean of data.
|
|
170
|
+
- [MiscMeasurement.py](swarmauri_standard/measurements/MiscMeasurement.py): Miscellaneous measurements.
|
|
171
|
+
- [MissingnessMeasurement.py](swarmauri_standard/measurements/MissingnessMeasurement.py): Measures the missingness of data.
|
|
172
|
+
- [PatternMatchingMeasurement.py](swarmauri_standard/measurements/PatternMatchingMeasurement.py): Measures pattern matching in data.
|
|
173
|
+
- [RatioOfSumsMeasurement.py](swarmauri_standard/measurements/RatioOfSumsMeasurement.py): Measures the ratio of sums in data.
|
|
174
|
+
- [StaticMeasurement.py](swarmauri_standard/measurements/StaticMeasurement.py): Static measurements.
|
|
175
|
+
- [UniquenessMeasurement.py](swarmauri_standard/measurements/UniquenessMeasurement.py): Measures the uniqueness of data.
|
|
176
|
+
- [ZeroMeasurement.py](swarmauri_standard/measurements/ZeroMeasurement.py): Measures zero values in data.
|
|
177
|
+
|
|
178
|
+
### Messages
|
|
179
|
+
- [AgentMessage.py](swarmauri_standard/messages/AgentMessage.py): Defines messages sent by agents.
|
|
180
|
+
- [FunctionMessage.py](swarmauri_standard/messages/FunctionMessage.py): Defines messages for functions.
|
|
181
|
+
- [HumanMessage.py](swarmauri_standard/messages/HumanMessage.py): Defines messages sent by humans.
|
|
182
|
+
- [SystemMessage.py](swarmauri_standard/messages/SystemMessage.py): Defines system messages.
|
|
183
|
+
|
|
184
|
+
### Parsers
|
|
185
|
+
- [CSVParser.py](swarmauri_standard/parsers/CSVParser.py): Parses CSV files.
|
|
186
|
+
- [HTMLTagStripParser.py](swarmauri_standard/parsers/HTMLTagStripParser.py): Strips HTML tags from text.
|
|
187
|
+
- [Md2HtmlParser.py](swarmauri_standard/parsers/Md2HtmlParser.py): Converts markdown to HTML.
|
|
188
|
+
- [OpenAPISpecParser.py](swarmauri_standard/parsers/OpenAPISpecParser.py): Parses OpenAPI specifications.
|
|
189
|
+
- [PhoneNumberExtractorParser.py](swarmauri_standard/parsers/PhoneNumberExtractorParser.py): Extracts phone numbers from text.
|
|
190
|
+
- [PythonParser.py](swarmauri_standard/parsers/PythonParser.py): Parses Python code.
|
|
191
|
+
- [RegExParser.py](swarmauri_standard/parsers/RegExParser.py): Parses text using regular expressions.
|
|
192
|
+
- [URLExtractorParser.py](swarmauri_standard/parsers/URLExtractorParser.py): Extracts URLs from text.
|
|
193
|
+
- [XMLParser.py](swarmauri_standard/parsers/XMLParser.py): Parses XML files.
|
|
194
|
+
|
|
195
|
+
### Pipelines
|
|
196
|
+
- [Pipeline.py](swarmauri_standard/pipelines/Pipeline.py): Defines data processing pipelines.
|
|
197
|
+
|
|
198
|
+
### Prompts
|
|
199
|
+
- [PromptGenerator.py](swarmauri_standard/prompts/PromptGenerator.py): Generates prompts.
|
|
200
|
+
- [PromptMatrix.py](swarmauri_standard/prompts/PromptMatrix.py): Defines a matrix of prompts.
|
|
201
|
+
- [Prompt.py](swarmauri_standard/prompts/Prompt.py): Defines a single prompt.
|
|
202
|
+
|
|
203
|
+
### Prompt Templates
|
|
204
|
+
- [PromptTemplate.py](swarmauri_standard/prompt_templates/PromptTemplate.py): Defines templates for generating prompts.
|
|
205
|
+
|
|
206
|
+
### Schema Converters
|
|
207
|
+
- [AnthropicSchemaConverter.py](swarmauri_standard/schema_converters/AnthropicSchemaConverter.py): Converts schemas for Anthropic models.
|
|
208
|
+
- [CohereSchemaConverter.py](swarmauri_standard/schema_converters/CohereSchemaConverter.py): Converts schemas for Cohere models.
|
|
209
|
+
- [GeminiSchemaConverter.py](swarmauri_standard/schema_converters/GeminiSchemaConverter.py): Converts schemas for Gemini models.
|
|
210
|
+
- [GroqSchemaConverter.py](swarmauri_standard/schema_converters/GroqSchemaConverter.py): Converts schemas for Groq models.
|
|
211
|
+
- [MistralSchemaConverter.py](swarmauri_standard/schema_converters/MistralSchemaConverter.py): Converts schemas for Mistral models.
|
|
212
|
+
- [OpenAISchemaConverter.py](swarmauri_standard/schema_converters/OpenAISchemaConverter.py): Converts schemas for OpenAI models.
|
|
213
|
+
- [ShuttleAISchemaConverter.py](swarmauri_standard/schema_converters/ShuttleAISchemaConverter.py): Converts schemas for Shuttle AI models.
|
|
214
|
+
|
|
215
|
+
### Service Registries
|
|
216
|
+
- [ServiceRegistry.py](swarmauri_standard/service_registries/ServiceRegistry.py): Manages service registrations.
|
|
217
|
+
|
|
218
|
+
### State
|
|
219
|
+
- [DictState.py](swarmauri_standard/state/DictState.py): Manages state using dictionaries.
|
|
220
|
+
|
|
221
|
+
### STT (Speech-to-Text)
|
|
222
|
+
- [GroqSTT.py](swarmauri_standard/stt/GroqSTT.py): Implements speech-to-text using Groq.
|
|
223
|
+
- [OpenaiSTT.py](swarmauri_standard/stt/OpenaiSTT.py): Implements speech-to-text using OpenAI.
|
|
224
|
+
- [WhisperLargeSTT.py](swarmauri_standard/stt/WhisperLargeSTT.py): Implements speech-to-text using Whisper Large.
|
|
225
|
+
|
|
226
|
+
### Swarms
|
|
227
|
+
- [Swarm.py](swarmauri_standard/swarms/Swarm.py): Manages swarm operations.
|
|
228
|
+
|
|
229
|
+
### Task Management Strategies
|
|
230
|
+
- [RoundRobinStrategy.py](swarmauri_standard/task_mgmt_strategies/RoundRobinStrategy.py): Implements a round-robin task management strategy.
|
|
231
|
+
|
|
232
|
+
### Toolkits
|
|
233
|
+
- [AccessibilityToolkit.py](swarmauri_standard/toolkits/AccessibilityToolkit.py): Provides tools for accessibility.
|
|
234
|
+
- [Toolkit.py](swarmauri_standard/toolkits/Toolkit.py): Defines a general toolkit.
|
|
235
|
+
|
|
236
|
+
### Tool LLMs
|
|
237
|
+
- [AnthropicToolModel.py](swarmauri_standard/tool_llms/AnthropicToolModel.py): Implements the Anthropic tool model.
|
|
238
|
+
- [CohereToolModel.py](swarmauri_standard/tool_llms/CohereToolModel.py): Implements the Cohere tool model.
|
|
239
|
+
- [GeminiToolModel.py](swarmauri_standard/tool_llms/GeminiToolModel.py): Implements the Gemini tool model.
|
|
240
|
+
- [GroqToolModel.py](swarmauri_standard/tool_llms/GroqToolModel.py): Implements the Groq tool model.
|
|
241
|
+
- [MistralToolModel.py](swarmauri_standard/tool_llms/MistralToolModel.py): Implements the Mistral tool model.
|
|
242
|
+
- [OpenAIToolModel.py](swarmauri_standard/tool_llms/OpenAIToolModel.py): Implements the OpenAI tool model.
|
|
243
|
+
|
|
244
|
+
### Tools
|
|
245
|
+
- [AdditionTool.py](swarmauri_standard/tools/AdditionTool.py): Implements a tool for performing addition operations.
|
|
246
|
+
- [AutomatedReadabilityIndexTool.py](swarmauri_standard/tools/AutomatedReadabilityIndexTool.py): Calculates the Automated Readability Index.
|
|
247
|
+
- [CalculatorTool.py](swarmauri_standard/tools/CalculatorTool.py): Provides basic calculator functionalities.
|
|
248
|
+
- [CodeExtractorTool.py](swarmauri_standard/tools/CodeExtractorTool.py): Extracts code snippets from text.
|
|
249
|
+
- [CodeInterpreterTool.py](swarmauri_standard/tools/CodeInterpreterTool.py): Interprets and executes code snippets.
|
|
250
|
+
- [ColemanLiauIndexTool.py](swarmauri_standard/tools/ColemanLiauIndexTool.py): Calculates the Coleman-Liau Index.
|
|
251
|
+
- [FleschKincaidTool.py](swarmauri_standard/tools/FleschKincaidTool.py): Calculates the Flesch-Kincaid Grade Level.
|
|
252
|
+
- [FleschReadingEaseTool.py](swarmauri_standard/tools/FleschReadingEaseTool.py): Calculates the Flesch Reading Ease score.
|
|
253
|
+
- [GunningFogTool.py](swarmauri_standard/tools/GunningFogTool.py): Calculates the Gunning Fog Index.
|
|
254
|
+
- [ImportMemoryModuleTool.py](swarmauri_standard/tools/ImportMemoryModuleTool.py): Imports memory modules.
|
|
255
|
+
- [JSONRequestsTool.py](swarmauri_standard/tools/JSONRequestsTool.py): Handles JSON-based HTTP requests.
|
|
256
|
+
- [Parameter.py](swarmauri_standard/tools/Parameter.py): Manages tool parameters.
|
|
257
|
+
- [RequestsTool.py](swarmauri_standard/tools/RequestsTool.py): Handles HTTP requests.
|
|
258
|
+
- [TemperatureConverterTool.py](swarmauri_standard/tools/TemperatureConverterTool.py): Converts temperatures between different units.
|
|
259
|
+
- [TestTool.py](swarmauri_standard/tools/TestTool.py): Implements a test tool.
|
|
260
|
+
- [WeatherTool.py](swarmauri_standard/tools/WeatherTool.py): Provides weather-related functionalities.
|
|
261
|
+
|
|
262
|
+
### Tracing
|
|
263
|
+
- [CallableTracer.py](swarmauri_standard/tracing/CallableTracer.py): Traces callable objects.
|
|
264
|
+
- [ChainTracer.py](swarmauri_standard/tracing/ChainTracer.py): Traces chains of operations.
|
|
265
|
+
- [SimpleTraceContext.py](swarmauri_standard/tracing/SimpleTraceContext.py): Provides a simple trace context.
|
|
266
|
+
- [SimpleTracer.py](swarmauri_standard/tracing/SimpleTracer.py): Implements a simple tracer.
|
|
267
|
+
- [TracedVariable.py](swarmauri_standard/tracing/TracedVariable.py): Manages traced variables.
|
|
268
|
+
- [VariableTracer.py](swarmauri_standard/tracing/VariableTracer.py): Traces variable changes.
|
|
269
|
+
|
|
270
|
+
### Transports
|
|
271
|
+
- [PubSubTransport.py](swarmauri_standard/transports/PubSubTransport.py): Implements a publish-subscribe transport mechanism.
|
|
272
|
+
|
|
273
|
+
### TTS (Text-to-Speech)
|
|
274
|
+
- [HyperbolicTTS.py](swarmauri_standard/tts/HyperbolicTTS.py): Implements text-to-speech using Hyperbolic.
|
|
275
|
+
- [OpenaiTTS.py](swarmauri_standard/tts/OpenaiTTS.py): Implements text-to-speech using OpenAI.
|
|
276
|
+
- [PlayhtTTS.py](swarmauri_standard/tts/PlayhtTTS.py): Implements text-to-speech using PlayHT.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Vectors
|
|
280
|
+
- [Vector.py](swarmauri_standard/vectors/Vector.py): Defines vector operations and manipulations.
|
|
281
|
+
|
|
282
|
+
### Vector Stores
|
|
283
|
+
- [TfidfVectorStore.py](swarmauri_standard/vector_stores/TfidfVectorStore.py): Implements a vector store using TF-IDF.
|
|
284
|
+
|
|
285
|
+
### VLMs (Vision-Language Models)
|
|
286
|
+
- [FalVLM.py](swarmauri_standard/vlms/FalVLM.py): Implements the Fal Vision-Language Model.
|
|
287
|
+
- [GroqVLM.py](swarmauri_standard/vlms/GroqVLM.py): Implements the Groq Vision-Language Model.
|
|
288
|
+
- [HyperbolicVLM.py](swarmauri_standard/vlms/HyperbolicVLM.py): Implements the Hyperbolic Vision-Language Model.
|
|
289
|
+
|
|
290
|
+
# Features
|
|
291
|
+
|
|
292
|
+
- **Polymorphism**: Allows for dynamic behavior switching between components, enabling flexible, context-aware system behavior.
|
|
293
|
+
- **Discriminated Unions**: Provides a robust method for handling multiple possible object types in a type-safe manner.
|
|
294
|
+
- **Serialization**: Efficiently encode and decode data for transmission across different environments and system components, with support for both standard and custom serialization formats.
|
|
295
|
+
- **Intensional and Extensional Programming**: Leverages both rule-based (intensional) and set-based (extensional) approaches to building and manipulating complex data structures, offering developers a wide range of tools for system design.
|
|
296
|
+
|
|
297
|
+
## Use Cases
|
|
298
|
+
|
|
299
|
+
- **Modular Systems**: Develop scalable, pluggable systems that can evolve over time by adding or modifying components without disrupting the entire ecosystem.
|
|
300
|
+
- **Distributed Architectures**: Build systems with distributed nodes that seamlessly communicate using the SDK’s standardized interfaces.
|
|
301
|
+
- **Third-Party Integrations**: Extend the system's capabilities by easily incorporating third-party tools, libraries, and services.
|
|
302
|
+
- **Prototype and Experimentation**: Test cutting-edge ideas using the experimental components in the SDK, while retaining the reliability of core and standard features for production systems.
|
|
303
|
+
|
|
304
|
+
# Future Development
|
|
305
|
+
|
|
306
|
+
The Swarmauri SDK is an evolving platform, and the community is encouraged to contribute to its growth. Upcoming releases will focus on enhancing the framework's modularity, providing more advanced serialization methods, and expanding the community-driven component library.
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
## Contributing
|
|
310
|
+
|
|
311
|
+
Contributions are welcome! If you'd like to add a new feature, fix a bug, or improve documentation, kindly go through the [contributions guidelines](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) first.
|
|
312
|
+
|
|
313
|
+
|