swarmauri 0.5.3.dev1__tar.gz → 0.5.3.dev4__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-0.5.3.dev1 → swarmauri-0.5.3.dev4}/PKG-INFO +3 -3
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/pyproject.toml +8 -4
- swarmauri-0.5.3.dev4/swarmauri/agent_factories/concrete/__init__.py +22 -0
- swarmauri-0.5.3.dev4/swarmauri/agents/concrete/__init__.py +16 -0
- swarmauri-0.5.3.dev4/swarmauri/chains/concrete/__init__.py +15 -0
- swarmauri-0.5.3.dev4/swarmauri/chunkers/concrete/__init__.py +17 -0
- swarmauri-0.5.3.dev4/swarmauri/conversations/concrete/__init__.py +22 -0
- swarmauri-0.5.3.dev4/swarmauri/distances/concrete/__init__.py +27 -0
- swarmauri-0.5.3.dev4/swarmauri/documents/concrete/__init__.py +11 -0
- swarmauri-0.5.3.dev4/swarmauri/embeddings/concrete/__init__.py +19 -0
- swarmauri-0.5.3.dev4/swarmauri/exceptions/concrete/__init__.py +13 -0
- swarmauri-0.5.3.dev4/swarmauri/image_gens/base/ImageGenBase.py +51 -0
- {swarmauri-0.5.3.dev1/swarmauri/llms → swarmauri-0.5.3.dev4/swarmauri/image_gens}/concrete/BlackForestImgGenModel.py +7 -7
- {swarmauri-0.5.3.dev1/swarmauri/llms → swarmauri-0.5.3.dev4/swarmauri/image_gens}/concrete/DeepInfraImgGenModel.py +4 -4
- {swarmauri-0.5.3.dev1/swarmauri/llms → swarmauri-0.5.3.dev4/swarmauri/image_gens}/concrete/FalAIImgGenModel.py +4 -4
- {swarmauri-0.5.3.dev1/swarmauri/llms → swarmauri-0.5.3.dev4/swarmauri/image_gens}/concrete/HyperbolicImgGenModel.py +6 -6
- {swarmauri-0.5.3.dev1/swarmauri/llms → swarmauri-0.5.3.dev4/swarmauri/image_gens}/concrete/OpenAIImgGenModel.py +4 -4
- swarmauri-0.5.3.dev4/swarmauri/llms/concrete/__init__.py +43 -0
- swarmauri-0.5.3.dev4/swarmauri/measurements/concrete/__init__.py +41 -0
- swarmauri-0.5.3.dev4/swarmauri/messages/concrete/__init__.py +16 -0
- swarmauri-0.5.3.dev4/swarmauri/parsers/concrete/__init__.py +29 -0
- swarmauri-0.5.3.dev4/swarmauri/prompts/concrete/__init__.py +16 -0
- swarmauri-0.5.3.dev4/swarmauri/schema_converters/concrete/__init__.py +37 -0
- swarmauri-0.5.3.dev4/swarmauri/swarms/concrete/__init__.py +11 -0
- swarmauri-0.5.3.dev4/swarmauri/toolkits/base/__init__.py +0 -0
- swarmauri-0.5.3.dev4/swarmauri/toolkits/concrete/__init__.py +14 -0
- swarmauri-0.5.3.dev4/swarmauri/tools/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/__init__.py +5 -18
- swarmauri-0.5.3.dev4/swarmauri/tracing/concrete/__init__.py +17 -0
- swarmauri-0.5.3.dev4/swarmauri/utils/__init__.py +0 -0
- swarmauri-0.5.3.dev4/swarmauri/vector_stores/concrete/__init__.py +14 -0
- swarmauri-0.5.3.dev4/swarmauri/vectors/concrete/__init__.py +14 -0
- swarmauri-0.5.3.dev1/swarmauri/agent_factories/concrete/__init__.py +0 -8
- swarmauri-0.5.3.dev1/swarmauri/agents/concrete/__init__.py +0 -33
- swarmauri-0.5.3.dev1/swarmauri/chains/concrete/__init__.py +0 -11
- swarmauri-0.5.3.dev1/swarmauri/chunkers/concrete/__init__.py +0 -13
- swarmauri-0.5.3.dev1/swarmauri/conversations/concrete/__init__.py +0 -15
- swarmauri-0.5.3.dev1/swarmauri/distances/concrete/__init__.py +0 -34
- swarmauri-0.5.3.dev1/swarmauri/documents/concrete/__init__.py +0 -1
- swarmauri-0.5.3.dev1/swarmauri/embeddings/concrete/__init__.py +0 -31
- swarmauri-0.5.3.dev1/swarmauri/exceptions/concrete/__init__.py +0 -3
- swarmauri-0.5.3.dev1/swarmauri/llms/concrete/__init__.py +0 -47
- swarmauri-0.5.3.dev1/swarmauri/measurements/concrete/__init__.py +0 -6
- swarmauri-0.5.3.dev1/swarmauri/messages/concrete/__init__.py +0 -4
- swarmauri-0.5.3.dev1/swarmauri/parsers/concrete/__init__.py +0 -37
- swarmauri-0.5.3.dev1/swarmauri/prompts/concrete/__init__.py +0 -4
- swarmauri-0.5.3.dev1/swarmauri/schema_converters/concrete/__init__.py +0 -29
- swarmauri-0.5.3.dev1/swarmauri/swarms/concrete/__init__.py +0 -1
- swarmauri-0.5.3.dev1/swarmauri/toolkits/concrete/__init__.py +0 -31
- swarmauri-0.5.3.dev1/swarmauri/tracing/concrete/__init__.py +0 -5
- swarmauri-0.5.3.dev1/swarmauri/vector_stores/concrete/__init__.py +0 -26
- swarmauri-0.5.3.dev1/swarmauri/vectors/concrete/__init__.py +0 -4
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/README.md +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/README.md +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/__version__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/concrete/AgentFactory.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/concrete/ConfDrivenAgentFactory.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/concrete/JsonAgentFactory.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agent_factories/concrete/ReflectiveAgentFactory.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentConversationMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentRetrieveMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentSystemContextMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentToolMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/AgentVectorStoreMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/concrete/QAAgent.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/concrete/RagAgent.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/concrete/SimpleConversationAgent.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/agents/concrete/ToolAgent.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/apis/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/apis/base/README.md +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/apis/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/apis/concrete/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/base/ChainBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/base/ChainContextBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/base/ChainStepBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/base/PromptContextChainBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/concrete/CallableChain.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/concrete/ChainStep.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/concrete/ContextChain.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chains/concrete/PromptContextChain.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/base/ChunkerBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/concrete/DelimiterBasedChunker.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/concrete/FixedLengthChunker.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/concrete/MdSnippetChunker.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/concrete/SentenceChunker.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/chunkers/concrete/SlidingWindowChunker.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/base/ConversationBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/base/ConversationSystemContextMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/concrete/Conversation.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/concrete/MaxSizeConversation.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/concrete/MaxSystemContextConversation.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/conversations/concrete/SessionCacheConversation.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/base/DistanceBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/base/VisionDistanceBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/CanberraDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/ChebyshevDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/ChiSquaredDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/CosineDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/EuclideanDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/HaversineDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/JaccardIndexDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/LevenshteinDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/ManhattanDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/MinkowskiDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/SorensenDiceDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/distances/concrete/SquaredEuclideanDistance.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/document_stores/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/document_stores/base/DocumentStoreBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/document_stores/base/DocumentStoreRetrieveBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/document_stores/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/document_stores/concrete/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/documents/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/documents/base/DocumentBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/documents/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/documents/concrete/Document.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/base/EmbeddingBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/base/VisionEmbeddingBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/CohereEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/GeminiEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/MistralEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/NmfEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/OpenAIEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/TfidfEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/embeddings/concrete/VoyageEmbedding.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/exceptions/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/exceptions/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/exceptions/concrete/IndexErrorWithContext.py +0 -0
- /swarmauri-0.5.3.dev1/swarmauri/llms/base/__init__.py → /swarmauri-0.5.3.dev4/swarmauri/image_gens/__init_.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/measurements → swarmauri-0.5.3.dev4/swarmauri/image_gens}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/messages/base → swarmauri-0.5.3.dev4/swarmauri/image_gens/concrete}/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/base/LLMBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/parsers → swarmauri-0.5.3.dev4/swarmauri/llms}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/AI21StudioModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/AnthropicModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/AnthropicToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/CohereModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/CohereToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/DeepInfraModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/DeepSeekModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/FalAIVisionModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GeminiProModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GeminiToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GroqAIAudio.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GroqModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GroqToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/GroqVisionModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/HyperbolicAudioTTS.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/HyperbolicModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/HyperbolicVisionModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/MistralModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/MistralToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/OpenAIAudio.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/OpenAIAudioTTS.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/OpenAIModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/OpenAIToolModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/PerplexityModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/PlayHTModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/llms/concrete/WhisperLargeModel.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/base/MeasurementAggregateMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/base/MeasurementBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/base/MeasurementCalculateMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/base/MeasurementThresholdMixin.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/prompts → swarmauri-0.5.3.dev4/swarmauri/measurements}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/CompletenessMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/DistinctivenessMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/FirstImpressionMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/MeanMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/MiscMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/MissingnessMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/PatternMatchingMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/RatioOfSumsMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/StaticMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/UniquenessMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/measurements/concrete/ZeroMeasurement.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/base/MessageBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/schema_converters → swarmauri-0.5.3.dev4/swarmauri/messages}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/concrete/AgentMessage.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/concrete/FunctionMessage.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/concrete/HumanMessage.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/messages/concrete/SystemMessage.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/base/ParserBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/swarms → swarmauri-0.5.3.dev4/swarmauri/parsers}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/BeautifulSoupElementParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/CSVParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/HTMLTagStripParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/KeywordExtractorParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/Md2HtmlParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/OpenAPISpecParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/PhoneNumberExtractorParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/PythonParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/RegExParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/URLExtractorParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/parsers/concrete/XMLParser.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/base/PromptBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/base/PromptGeneratorBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/base/PromptMatrixBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/base/PromptTemplateBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/toolkits → swarmauri-0.5.3.dev4/swarmauri/prompts}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/concrete/Prompt.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/concrete/PromptGenerator.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/concrete/PromptMatrix.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/prompts/concrete/PromptTemplate.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/base/SchemaConverterBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/tools → swarmauri-0.5.3.dev4/swarmauri/schema_converters}/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/AnthropicSchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/CohereSchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/GeminiSchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/GroqSchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/MistralSchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/OpenAISchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/schema_converters/concrete/ShuttleAISchemaConverter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/swarms/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/swarms/base/SwarmComponentBase.py +0 -0
- {swarmauri-0.5.3.dev1/swarmauri/utils → swarmauri-0.5.3.dev4/swarmauri/swarms/base}/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/swarms/concrete/SimpleSwarmFactory.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/toolkits/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/toolkits/base/ToolkitBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/toolkits/concrete/AccessibilityToolkit.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/toolkits/concrete/Toolkit.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/base/ParameterBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/base/ToolBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/AdditionTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/AutomatedReadabilityIndexTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/CalculatorTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/CodeExtractorTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/CodeInterpreterTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/ColemanLiauIndexTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/FleschKincaidTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/FleschReadingEaseTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/GunningFogTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/ImportMemoryModuleTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/JSONRequestsTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/MatplotlibCsvTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/MatplotlibTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/Parameter.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/RequestsTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/SentenceComplexityTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/TemperatureConverterTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/TestTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tools/concrete/WeatherTool.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/CallableTracer.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/ChainTracer.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/SimpleTraceContext.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/SimpleTracer.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/TracedVariable.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/tracing/concrete/VariableTracer.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/_lazy_import.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/apply_metaclass.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/base64_encoder.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/base64_to_file_path.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/base64_to_img_url.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/base64_to_in_memory_img.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/decorate.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/duration_manager.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/file_path_to_base64.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/file_path_to_img_url.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/file_path_to_in_memory_img.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/get_class_hash.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/img_url_to_base64.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/img_url_to_file_path.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/img_url_to_in_memory_img.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/in_memory_img_to_base64.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/in_memory_img_to_file_path.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/in_memory_img_to_img_url.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/json_validator.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/load_documents_from_folder.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/load_documents_from_json.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/memoize.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/print_notebook_metadata.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/retry_decorator.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/sql_log.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/utils/timeout_wrapper.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VectorStoreBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VectorStoreCloudMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VectorStorePersistentMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VectorStoreRetrieveMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VectorStoreSaveLoadMixin.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/VisionVectorStoreBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/concrete/SqliteVectorStore.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vector_stores/concrete/TfidfVectorStore.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vectors/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vectors/base/VectorBase.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vectors/base/__init__.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vectors/concrete/Vector.py +0 -0
- {swarmauri-0.5.3.dev1 → swarmauri-0.5.3.dev4}/swarmauri/vectors/concrete/VectorProductMixin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: swarmauri
|
|
3
|
-
Version: 0.5.3.
|
|
3
|
+
Version: 0.5.3.dev4
|
|
4
4
|
Summary: This repository includes base classes, concrete generics, and concrete standard components within the Swarmauri framework.
|
|
5
5
|
Home-page: http://github.com/swarmauri/swarmauri-sdk
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,7 +21,7 @@ Requires-Dist: Pillow (>=8.0,<11.0)
|
|
|
21
21
|
Requires-Dist: aiofiles (==24.1.0) ; extra == "io" or extra == "full"
|
|
22
22
|
Requires-Dist: aiohttp (>=3.10.10,<4.0.0) ; extra == "io" or extra == "full"
|
|
23
23
|
Requires-Dist: beautifulsoup4 (==04.12.3) ; extra == "nlp-tools" or extra == "full"
|
|
24
|
-
Requires-Dist: httpx (>=0.
|
|
24
|
+
Requires-Dist: httpx (>=0.25.0,<0.26.0)
|
|
25
25
|
Requires-Dist: joblib (>=1.4.0,<2.0.0)
|
|
26
26
|
Requires-Dist: matplotlib (>=3.9.2) ; extra == "visualization" or extra == "full"
|
|
27
27
|
Requires-Dist: numpy
|
|
@@ -29,7 +29,7 @@ Requires-Dist: pandas
|
|
|
29
29
|
Requires-Dist: pydantic (>=2.9.2,<3.0.0)
|
|
30
30
|
Requires-Dist: requests
|
|
31
31
|
Requires-Dist: scipy (>=1.7.0,<1.14.0)
|
|
32
|
-
Requires-Dist: swarmauri_core (==0.5.
|
|
32
|
+
Requires-Dist: swarmauri_core (==0.5.3.dev3)
|
|
33
33
|
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
34
34
|
Requires-Dist: typing_extensions
|
|
35
35
|
Requires-Dist: yake (==0.4.8) ; extra == "nlp" or extra == "full"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "swarmauri"
|
|
3
|
-
version = "0.5.3.
|
|
3
|
+
version = "0.5.3.dev4"
|
|
4
4
|
description = "This repository includes base classes, concrete generics, and concrete standard components within the Swarmauri framework."
|
|
5
5
|
authors = ["Jacob Stewart <jacob@swarmauri.com>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -15,9 +15,9 @@ classifiers = [
|
|
|
15
15
|
|
|
16
16
|
[tool.poetry.dependencies]
|
|
17
17
|
python = ">=3.10,<3.13"
|
|
18
|
-
swarmauri_core = "==0.5.
|
|
18
|
+
swarmauri_core = "==0.5.3.dev3"
|
|
19
19
|
toml = "^0.10.2"
|
|
20
|
-
httpx = "^0.
|
|
20
|
+
httpx = "^0.25.0"
|
|
21
21
|
joblib = "^1.4.0"
|
|
22
22
|
numpy = "*"
|
|
23
23
|
pandas = "*"
|
|
@@ -52,7 +52,11 @@ matplotlib = { version = ">=3.9.2", optional = true }
|
|
|
52
52
|
# Extras without versioning, grouped for specific use cases
|
|
53
53
|
io = ["aiofiles", "aiohttp"]
|
|
54
54
|
#llms = ["cohere", "mistralai", "fal-client", "google-generativeai", "openai"]
|
|
55
|
-
nlp = [
|
|
55
|
+
nlp = [
|
|
56
|
+
#"nltk",
|
|
57
|
+
#"textblob",
|
|
58
|
+
"yake"
|
|
59
|
+
]
|
|
56
60
|
nlp_tools = ["beautifulsoup4"]
|
|
57
61
|
#ml_toolkits = ["gensim", "scipy", "scikit-learn"]
|
|
58
62
|
#spacy = ["spacy"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of agent factory names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
agent_factory_files = [
|
|
5
|
+
("swarmauri.agent_factories.concrete.agent_factory", "AgentFactory"),
|
|
6
|
+
(
|
|
7
|
+
"swarmauri.agent_factories.concrete.conf_driven_agent_factory",
|
|
8
|
+
"ConfDrivenAgentFactory",
|
|
9
|
+
),
|
|
10
|
+
("swarmauri.agent_factories.concrete.JsonAgentFactory", "JsonAgentFactory"),
|
|
11
|
+
(
|
|
12
|
+
"swarmauri.agent_factories.concrete.ReflectionAgentFactory",
|
|
13
|
+
"ReflectionAgentFactory",
|
|
14
|
+
),
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
# Lazy loading of agent factories storing them in variables
|
|
18
|
+
for module_name, class_name in agent_factory_files:
|
|
19
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
20
|
+
|
|
21
|
+
# Adding the lazy-loaded agent factories to __all__
|
|
22
|
+
__all__ = [class_name for _, class_name in agent_factory_files]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of agent names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
agent_files = [
|
|
5
|
+
("swarmauri.agents.concrete.QAAgent", "QAAgent"),
|
|
6
|
+
("swarmauri.agents.concrete.RagAgent", "RagAgent"),
|
|
7
|
+
("swarmauri.agents.concrete.SimpleConversationAgent", "SimpleConversationAgent"),
|
|
8
|
+
("swarmauri.agents.concrete.ToolAgent", "ToolAgent"),
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
# Lazy loading of agent classes, storing them in variables
|
|
12
|
+
for module_name, class_name in agent_files:
|
|
13
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
14
|
+
|
|
15
|
+
# Adding the lazy-loaded agent classes to __all__
|
|
16
|
+
__all__ = [class_name for _, class_name in agent_files]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
chains_files = [
|
|
4
|
+
("swarmauri.chains.concrete.CallableChain import", "CallableChain"),
|
|
5
|
+
("swarmauri.chains.concrete.ChainStep", "ChainStep"),
|
|
6
|
+
("swarmauri.chains.concrete.PromptContextChain", "PromptContextChain"),
|
|
7
|
+
("swarmauri.chains.concrete.ContextChain", "ContextChain"),
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
# Lazy loading of chain classes, storing them in variables
|
|
11
|
+
for module_name, class_name in chains_files:
|
|
12
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
13
|
+
|
|
14
|
+
# Adding the lazy-loaded chain classes to __all__
|
|
15
|
+
__all__ = [class_name for _, class_name in chains_files]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of chunker names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
chunkers_files = [
|
|
5
|
+
("swarmauri.chunkers.concrete.DelimiterBasedChunker", "DelimiterBasedChunker"),
|
|
6
|
+
("swarmauri.chunkers.concrete.FixedLengthChunker", "FixedLengthChunker"),
|
|
7
|
+
("swarmauri.chunkers.concrete.MdSnippetChunker", "MdSnippetChunker"),
|
|
8
|
+
("swarmauri.chunkers.concrete.SentenceChunker", "SentenceChunker"),
|
|
9
|
+
("swarmauri.chunkers.concrete.SlidingWindowChunker", "SlidingWindowChunker"),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
# Lazy loading of chunker classes, storing them in variables
|
|
13
|
+
for module_name, class_name in chunkers_files:
|
|
14
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
15
|
+
|
|
16
|
+
# Adding the lazy-loaded chunker classes to __all__
|
|
17
|
+
__all__ = [class_name for _, class_name in chunkers_files]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of conversations names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
conversations_files = [
|
|
5
|
+
("swarmauri.conversations.concrete.Conversation", "Conversation"),
|
|
6
|
+
(
|
|
7
|
+
"swarmauri.conversations.concrete.MaxSystemContextConversation",
|
|
8
|
+
"MaxSystemContextConversation",
|
|
9
|
+
),
|
|
10
|
+
("swarmauri.conversations.concrete.MaxSizeConversation", "MaxSizeConversation"),
|
|
11
|
+
(
|
|
12
|
+
"swarmauri.conversations.concrete.SessionCacheConversation",
|
|
13
|
+
"SessionCacheConversation",
|
|
14
|
+
),
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
# Lazy loading of conversations classes, storing them in variables
|
|
18
|
+
for module_name, class_name in conversations_files:
|
|
19
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
20
|
+
|
|
21
|
+
# Adding the lazy-loaded conversations classes to __all__
|
|
22
|
+
__all__ = [class_name for _, class_name in conversations_files]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of distances names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
distances_files = [
|
|
5
|
+
("swarmauri.distances.concrete.CanberraDistance", "CanberraDistance"),
|
|
6
|
+
("swarmauri.distances.concrete.ChebyshevDistance", "ChebyshevDistance"),
|
|
7
|
+
("swarmauri.distances.concrete.ChiSquaredDistance", "ChiSquaredDistance"),
|
|
8
|
+
("swarmauri.distances.concrete.CosineDistance", "CosineDistance"),
|
|
9
|
+
("swarmauri.distances.concrete.EuclideanDistance", "EuclideanDistance"),
|
|
10
|
+
("swarmauri.distances.concrete.HaversineDistance", "HaversineDistance"),
|
|
11
|
+
("swarmauri.distances.concrete.JaccardIndexDistance", "JaccardIndexDistance"),
|
|
12
|
+
("swarmauri.distances.concrete.LevenshteinDistance", "LevenshteinDistance"),
|
|
13
|
+
("swarmauri.distances.concrete.ManhattanDistance", "ManhattanDistance"),
|
|
14
|
+
("swarmauri.distances.concrete.MinkowskiDistance", "MinkowskiDistance"),
|
|
15
|
+
("swarmauri.distances.concrete.SorensenDiceDistance", "SorensenDiceDistance"),
|
|
16
|
+
(
|
|
17
|
+
"swarmauri.distances.concrete.SquaredEuclideanDistance",
|
|
18
|
+
"SquaredEuclideanDistance",
|
|
19
|
+
),
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
# Lazy loading of distances classes, storing them in variables
|
|
23
|
+
for module_name, class_name in distances_files:
|
|
24
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
25
|
+
|
|
26
|
+
# Adding the lazy-loaded distances classes to __all__
|
|
27
|
+
__all__ = [class_name for _, class_name in distances_files]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of documents names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
documents_files = [("swarmauri.documents.concrete.Document", "Document")]
|
|
5
|
+
|
|
6
|
+
# Lazy loading of documents classes, storing them in variables
|
|
7
|
+
for module_name, class_name in documents_files:
|
|
8
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
9
|
+
|
|
10
|
+
# Adding the lazy-loaded documents classes to __all__
|
|
11
|
+
__all__ = [class_name for _, class_name in documents_files]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of embeddings names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
embeddings_files = [
|
|
5
|
+
("swarmauri.embeddings.concrete.CohereEmbedding", "CohereEmbedding"),
|
|
6
|
+
("swarmauri.embeddings.concrete.GeminiEmbedding", "GeminiEmbedding"),
|
|
7
|
+
("swarmauri.embeddings.concrete.MistralEmbedding", "MistralEmbedding"),
|
|
8
|
+
("swarmauri.embeddings.concrete.NmfEmbedding", "NmfEmbedding"),
|
|
9
|
+
("swarmauri.embeddings.concrete.OpenAIEmbedding", "OpenAIEmbedding"),
|
|
10
|
+
("swarmauri.embeddings.concrete.TfidfEmbedding", "TfidfEmbedding"),
|
|
11
|
+
("swarmauri.embeddings.concrete.VoyageEmbedding", "VoyageEmbedding"),
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
# Lazy loading of embeddings classes, storing them in variables
|
|
15
|
+
for module_name, class_name in embeddings_files:
|
|
16
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
17
|
+
|
|
18
|
+
# Adding the lazy-loaded embeddings classes to __all__
|
|
19
|
+
__all__ = [class_name for _, class_name in embeddings_files]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of exceptions names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
exceptions_files = [
|
|
5
|
+
("swarmauri.exceptions.concrete.IndexErrorWithContext", "IndexErrorWithContext"),
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
# Lazy loading of exceptions classes, storing them in variables
|
|
9
|
+
for module_name, class_name in exceptions_files:
|
|
10
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
11
|
+
|
|
12
|
+
# Adding the lazy-loaded exceptions classes to __all__
|
|
13
|
+
__all__ = [class_name for _, class_name in exceptions_files]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
from abc import abstractmethod
|
|
2
|
+
from typing import Optional, List, Literal
|
|
3
|
+
from pydantic import ConfigDict, model_validator, Field
|
|
4
|
+
from swarmauri_core.image_gens.IGenImage import IGenImage
|
|
5
|
+
from swarmauri_core.ComponentBase import ComponentBase, ResourceTypes
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ImageGenBase(IGenImage, ComponentBase):
|
|
9
|
+
allowed_models: List[str] = []
|
|
10
|
+
resource: Optional[str] = Field(default=ResourceTypes.IMAGE_GEN.value, frozen=True)
|
|
11
|
+
model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
|
|
12
|
+
type: Literal["ImageGenBase"] = "ImageGenBase"
|
|
13
|
+
|
|
14
|
+
@model_validator(mode="after")
|
|
15
|
+
@classmethod
|
|
16
|
+
def _validate_name_in_allowed_models(cls, values):
|
|
17
|
+
name = values.name
|
|
18
|
+
allowed_models = values.allowed_models
|
|
19
|
+
if name and name not in allowed_models:
|
|
20
|
+
raise ValueError(
|
|
21
|
+
f"Model name {name} is not allowed. Choose from {allowed_models}"
|
|
22
|
+
)
|
|
23
|
+
return values
|
|
24
|
+
|
|
25
|
+
@abstractmethod
|
|
26
|
+
def generate_image(self, *args, **kwargs) -> any:
|
|
27
|
+
"""
|
|
28
|
+
Generate images based on the input data provided to the model.
|
|
29
|
+
"""
|
|
30
|
+
raise NotImplementedError("generate_image() not implemented in subclass yet.")
|
|
31
|
+
|
|
32
|
+
@abstractmethod
|
|
33
|
+
async def agenerate_image(self, *args, **kwargs) -> any:
|
|
34
|
+
"""
|
|
35
|
+
Generate images based on the input data provided to the model.
|
|
36
|
+
"""
|
|
37
|
+
raise NotImplementedError("agenerate_image() not implemented in subclass yet.")
|
|
38
|
+
|
|
39
|
+
@abstractmethod
|
|
40
|
+
def batch_generate(self, *args, **kwargs) -> any:
|
|
41
|
+
"""
|
|
42
|
+
Generate images based on the input data provided to the model.
|
|
43
|
+
"""
|
|
44
|
+
raise NotImplementedError("batch_generate() not implemented in subclass yet.")
|
|
45
|
+
|
|
46
|
+
@abstractmethod
|
|
47
|
+
async def abatch_generate(self, *args, **kwargs) -> any:
|
|
48
|
+
"""
|
|
49
|
+
Generate images based on the input data provided to the model.
|
|
50
|
+
"""
|
|
51
|
+
raise NotImplementedError("abatch_generate() not implemented in subclass yet.")
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import httpx
|
|
2
2
|
import time
|
|
3
|
-
from typing import List, Literal, Optional, Dict
|
|
3
|
+
from typing import List, Literal, Optional, Dict
|
|
4
4
|
from pydantic import PrivateAttr
|
|
5
5
|
from swarmauri.utils.retry_decorator import retry_on_status_codes
|
|
6
|
-
from swarmauri.
|
|
6
|
+
from swarmauri.image_gens.base.ImageGenBase import ImageGenBase
|
|
7
7
|
import asyncio
|
|
8
8
|
import contextlib
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class BlackForestImgGenModel(
|
|
11
|
+
class BlackForestImgGenModel(ImageGenBase):
|
|
12
12
|
"""
|
|
13
13
|
A model for generating images using FluxPro's image generation models through the Black Forest API.
|
|
14
14
|
Link to API key: https://api.bfl.ml/auth/profile
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
_BASE_URL: str = PrivateAttr("https://api.bfl.ml")
|
|
18
|
-
_client: httpx.Client = PrivateAttr()
|
|
18
|
+
_client: httpx.Client = PrivateAttr(default=None)
|
|
19
19
|
_async_client: httpx.AsyncClient = PrivateAttr(default=None)
|
|
20
|
+
_headers: Dict[str, str] = PrivateAttr(default=None)
|
|
20
21
|
|
|
21
22
|
api_key: str
|
|
22
23
|
allowed_models: List[str] = ["flux-pro-1.1", "flux-pro", "flux-dev"]
|
|
23
24
|
|
|
24
|
-
asyncio: ClassVar = asyncio
|
|
25
25
|
name: str = "flux-pro" # Default model
|
|
26
26
|
type: Literal["BlackForestImgGenModel"] = "BlackForestImgGenModel"
|
|
27
27
|
|
|
28
|
-
def __init__(self, **
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
29
|
"""
|
|
30
30
|
Initializes the BlackForestImgGenModel instance with HTTP clients.
|
|
31
31
|
"""
|
|
32
|
-
super().__init__(**
|
|
32
|
+
super().__init__(**kwargs)
|
|
33
33
|
self._headers = {
|
|
34
34
|
"Content-Type": "application/json",
|
|
35
35
|
"X-Key": self.api_key,
|
|
@@ -2,12 +2,12 @@ import httpx
|
|
|
2
2
|
from typing import List, Literal
|
|
3
3
|
from pydantic import PrivateAttr
|
|
4
4
|
from swarmauri.utils.retry_decorator import retry_on_status_codes
|
|
5
|
-
from swarmauri.
|
|
5
|
+
from swarmauri.image_gens.base.ImageGenBase import ImageGenBase
|
|
6
6
|
import asyncio
|
|
7
7
|
import contextlib
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class DeepInfraImgGenModel(
|
|
10
|
+
class DeepInfraImgGenModel(ImageGenBase):
|
|
11
11
|
"""
|
|
12
12
|
A model class for generating images from text prompts using DeepInfra's image generation API.
|
|
13
13
|
|
|
@@ -37,7 +37,7 @@ class DeepInfraImgGenModel(LLMBase):
|
|
|
37
37
|
name: str = "stabilityai/stable-diffusion-2-1" # Default model
|
|
38
38
|
type: Literal["DeepInfraImgGenModel"] = "DeepInfraImgGenModel"
|
|
39
39
|
|
|
40
|
-
def __init__(self, **
|
|
40
|
+
def __init__(self, **kwargs):
|
|
41
41
|
"""
|
|
42
42
|
Initializes the DeepInfraImgGenModel instance.
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ class DeepInfraImgGenModel(LLMBase):
|
|
|
47
47
|
Args:
|
|
48
48
|
**data: Keyword arguments for model initialization.
|
|
49
49
|
"""
|
|
50
|
-
super().__init__(**
|
|
50
|
+
super().__init__(**kwargs)
|
|
51
51
|
self._headers = {
|
|
52
52
|
"Content-Type": "application/json",
|
|
53
53
|
"Authorization": f"Bearer {self.api_key}",
|
|
@@ -3,11 +3,11 @@ import asyncio
|
|
|
3
3
|
from typing import List, Literal, Optional, Dict
|
|
4
4
|
from pydantic import Field, PrivateAttr
|
|
5
5
|
from swarmauri.utils.retry_decorator import retry_on_status_codes
|
|
6
|
-
from swarmauri.
|
|
6
|
+
from swarmauri.image_gens.base.ImageGenBase import ImageGenBase
|
|
7
7
|
import time
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class FalAIImgGenModel(
|
|
10
|
+
class FalAIImgGenModel(ImageGenBase):
|
|
11
11
|
"""
|
|
12
12
|
A model class for generating images from text using FluxPro's image generation model,
|
|
13
13
|
provided by FalAI. This class uses a queue-based API to handle image generation requests.
|
|
@@ -34,7 +34,7 @@ class FalAIImgGenModel(LLMBase):
|
|
|
34
34
|
max_retries: int = Field(default=60) # Maximum number of status check retries
|
|
35
35
|
retry_delay: float = Field(default=1.0) # Delay between status checks in seconds
|
|
36
36
|
|
|
37
|
-
def __init__(self, **
|
|
37
|
+
def __init__(self, **kwargs):
|
|
38
38
|
"""
|
|
39
39
|
Initializes the model with the specified API key and model name.
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ class FalAIImgGenModel(LLMBase):
|
|
|
44
44
|
Raises:
|
|
45
45
|
ValueError: If an invalid model name is provided.
|
|
46
46
|
"""
|
|
47
|
-
super().__init__(**
|
|
47
|
+
super().__init__(**kwargs)
|
|
48
48
|
self._headers = {
|
|
49
49
|
"Content-Type": "application/json",
|
|
50
50
|
"Authorization": f"Key {self.api_key}",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import httpx
|
|
2
|
-
from typing import List, Literal
|
|
2
|
+
from typing import List, Literal
|
|
3
3
|
from pydantic import PrivateAttr
|
|
4
4
|
from swarmauri.utils.retry_decorator import retry_on_status_codes
|
|
5
|
-
from swarmauri.
|
|
5
|
+
from swarmauri.image_gens.base.ImageGenBase import ImageGenBase
|
|
6
6
|
import asyncio
|
|
7
7
|
import contextlib
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class HyperbolicImgGenModel(
|
|
10
|
+
class HyperbolicImgGenModel(ImageGenBase):
|
|
11
11
|
"""
|
|
12
12
|
A model class for generating images from text prompts using Hyperbolic's image generation API.
|
|
13
13
|
|
|
@@ -29,7 +29,7 @@ class HyperbolicImgGenModel(LLMBase):
|
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
_BASE_URL: str = PrivateAttr("https://api.hyperbolic.xyz/v1/image/generation")
|
|
32
|
-
_client: httpx.Client = PrivateAttr()
|
|
32
|
+
_client: httpx.Client = PrivateAttr(default=None)
|
|
33
33
|
_async_client: httpx.AsyncClient = PrivateAttr(default=None)
|
|
34
34
|
|
|
35
35
|
api_key: str
|
|
@@ -52,7 +52,7 @@ class HyperbolicImgGenModel(LLMBase):
|
|
|
52
52
|
enable_refiner: bool = False
|
|
53
53
|
backend: str = "auto"
|
|
54
54
|
|
|
55
|
-
def __init__(self, **
|
|
55
|
+
def __init__(self, **kwargs):
|
|
56
56
|
"""
|
|
57
57
|
Initializes the HyperbolicImgGenModel instance.
|
|
58
58
|
|
|
@@ -62,7 +62,7 @@ class HyperbolicImgGenModel(LLMBase):
|
|
|
62
62
|
Args:
|
|
63
63
|
**data: Keyword arguments for model initialization.
|
|
64
64
|
"""
|
|
65
|
-
super().__init__(**
|
|
65
|
+
super().__init__(**kwargs)
|
|
66
66
|
self._headers = {
|
|
67
67
|
"Content-Type": "application/json",
|
|
68
68
|
"Authorization": f"Bearer {self.api_key}",
|
|
@@ -2,11 +2,11 @@ from pydantic import PrivateAttr
|
|
|
2
2
|
import asyncio
|
|
3
3
|
import httpx
|
|
4
4
|
from typing import Dict, List, Literal, Optional
|
|
5
|
+
from swarmauri.image_gens.base.ImageGenBase import ImageGenBase
|
|
5
6
|
from swarmauri.utils.retry_decorator import retry_on_status_codes
|
|
6
|
-
from swarmauri.llms.base.LLMBase import LLMBase
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class OpenAIImgGenModel(
|
|
9
|
+
class OpenAIImgGenModel(ImageGenBase):
|
|
10
10
|
"""
|
|
11
11
|
OpenAIImgGenModel is a class for generating images using OpenAI's DALL-E models.
|
|
12
12
|
|
|
@@ -26,14 +26,14 @@ class OpenAIImgGenModel(LLMBase):
|
|
|
26
26
|
_BASE_URL: str = PrivateAttr(default="https://api.openai.com/v1/images/generations")
|
|
27
27
|
_headers: Dict[str, str] = PrivateAttr(default=None)
|
|
28
28
|
|
|
29
|
-
def __init__(self, **
|
|
29
|
+
def __init__(self, **kwargs) -> None:
|
|
30
30
|
"""
|
|
31
31
|
Initialize the GroqAIAudio class with the provided data.
|
|
32
32
|
|
|
33
33
|
Args:
|
|
34
34
|
**data: Arbitrary keyword arguments containing initialization data.
|
|
35
35
|
"""
|
|
36
|
-
super().__init__(**
|
|
36
|
+
super().__init__(**kwargs)
|
|
37
37
|
self._headers = {
|
|
38
38
|
"Authorization": f"Bearer {self.api_key}",
|
|
39
39
|
"Content-Type": "application/json",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of llms names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
llms_files = [
|
|
5
|
+
("swarmauri.llms.concrete.AI21StudioModel", "AI21StudioModel"),
|
|
6
|
+
("swarmauri.llms.concrete.AnthropicModel", "AnthropicModel"),
|
|
7
|
+
("swarmauri.llms.concrete.AnthropicToolModel", "AnthropicToolModel"),
|
|
8
|
+
("swarmauri.llms.concrete.BlackForestImgGenModel", "BlackForestImgGenModel"),
|
|
9
|
+
("swarmauri.llms.concrete.CohereModel", "CohereModel"),
|
|
10
|
+
("swarmauri.llms.concrete.CohereToolModel", "CohereToolModel"),
|
|
11
|
+
("swarmauri.llms.concrete.DeepInfraImgGenModel", "DeepInfraImgGenModel"),
|
|
12
|
+
("swarmauri.llms.concrete.DeepInfraModel", "DeepInfraModel"),
|
|
13
|
+
("swarmauri.llms.concrete.DeepSeekModel", "DeepSeekModel"),
|
|
14
|
+
("swarmauri.llms.concrete.FalAIImgGenModel", "FalaiImgGenModel"),
|
|
15
|
+
("swarmauri.llms.concrete.FalAIVisionModel", "FalAIVisionModel"),
|
|
16
|
+
("swarmauri.llms.concrete.GeminiProModel", "GeminiProModel"),
|
|
17
|
+
("swarmauri.llms.concrete.GeminiToolModel", "GeminiToolModel"),
|
|
18
|
+
("swarmauri.llms.concrete.GroqAIAudio", "GroqAIAudio"),
|
|
19
|
+
("swarmauri.llms.concrete.GroqModel", "GroqModel"),
|
|
20
|
+
("swarmauri.llms.concrete.GroqToolModel", "GroqToolModel"),
|
|
21
|
+
("swarmauri.llms.concrete.GroqVisionModel", "GroqVisionModel"),
|
|
22
|
+
("swarmauri.llms.concrete.HyperbolicAudioTTS", "HyperbolicAudioTTS"),
|
|
23
|
+
("swarmauri.llms.concrete.HyperbolicImgGenModel", "HyperbolicImgGenModel"),
|
|
24
|
+
("swarmauri.llms.concrete.HyperbolicModel", "HyperbolicModel"),
|
|
25
|
+
("swarmauri.llms.concrete.HyperbolicVisionModel", "HyperbolicVisionModel"),
|
|
26
|
+
("swarmauri.llms.concrete.MistralModel", "MistralModel"),
|
|
27
|
+
("swarmauri.llms.concrete.MistralToolModel", "MistralToolModel"),
|
|
28
|
+
("swarmauri.llms.concrete.OpenAIAudio", "OpenAIAudio"),
|
|
29
|
+
("swarmauri.llms.concrete.OpenAIAudioTTS", "OpenAIAudioTTS"),
|
|
30
|
+
("swarmauri.llms.concrete.OpenAIImgGenModel", "OpenAIImgGenModel"),
|
|
31
|
+
("swarmauri.llms.concrete.OpenAIModel", "OpenAIModel"),
|
|
32
|
+
("swarmauri.llms.concrete.OpenAIToolModel", "OpenAIToolModel"),
|
|
33
|
+
("swarmauri.llms.concrete.PerplexityModel", "PerplexityModel"),
|
|
34
|
+
("swarmauri.llms.concrete.PlayHTModel", "PlayHTModel"),
|
|
35
|
+
("swarmauri.llms.concrete.WhisperLargeModel", "WhisperLargeModel"),
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
# Lazy loading of llms classes, storing them in variables
|
|
39
|
+
for module_name, class_name in llms_files:
|
|
40
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
41
|
+
|
|
42
|
+
# Adding the lazy-loaded llms classes to __all__
|
|
43
|
+
__all__ = [class_name for _, class_name in llms_files]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of measurements names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
measurements_files = [
|
|
5
|
+
(
|
|
6
|
+
"swarmauri.measurements.concrete.CompletenessMeasurement",
|
|
7
|
+
"CompletenessMeasurement",
|
|
8
|
+
),
|
|
9
|
+
(
|
|
10
|
+
"swarmauri.measurements.concrete.DistinctivenessMeasurement",
|
|
11
|
+
"DistinctivenessMeasurement",
|
|
12
|
+
),
|
|
13
|
+
(
|
|
14
|
+
"swarmauri.measurements.concrete.FirstImpressionMeasurement",
|
|
15
|
+
"FirstImpressionMeasurement",
|
|
16
|
+
),
|
|
17
|
+
("swarmauri.measurements.concrete.MeanMeasurement", "MeanMeasurement"),
|
|
18
|
+
("swarmauri.measurements.concrete.MiscMeasurement", "MiscMeasurement"),
|
|
19
|
+
(
|
|
20
|
+
"swarmauri.measurements.concrete.MissingnessMeasurement",
|
|
21
|
+
"MissingnessMeasurement",
|
|
22
|
+
),
|
|
23
|
+
(
|
|
24
|
+
"swarmauri.measurements.concrete.PatternMatchingMeasurement",
|
|
25
|
+
"PatternMatchingMeasurement",
|
|
26
|
+
),
|
|
27
|
+
(
|
|
28
|
+
"swarmauri.measurements.concrete.RatioOfSumsMeasurement",
|
|
29
|
+
"RatioOfSumsMeasurement",
|
|
30
|
+
),
|
|
31
|
+
("swarmauri.measurements.concrete.StaticMeasurement", "StaticMeasurement"),
|
|
32
|
+
("swarmauri.measurements.concrete.UniquenessMeasurement", "UniquenessMeasurement"),
|
|
33
|
+
("swarmauri.measurements.concrete.ZeroMeasurement", "ZeroMeasurement"),
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
# Lazy loading of measurements classes, storing them in variables
|
|
37
|
+
for module_name, class_name in measurements_files:
|
|
38
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
39
|
+
|
|
40
|
+
# Adding the lazy-loaded measurements classes to __all__
|
|
41
|
+
__all__ = [class_name for _, class_name in measurements_files]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of messages names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
messages_files = [
|
|
5
|
+
("swarmauri.messages.concrete.HumanMessage", "HumanMessage"),
|
|
6
|
+
("swarmauri.messages.concrete.AgentMessage", "AgentMessage"),
|
|
7
|
+
("from swarmauri.messages.concrete.FunctionMessage", "FunctionMessage"),
|
|
8
|
+
("swarmauri.messages.concrete.SystemMessage", "SystemMessage"),
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
# Lazy loading of messages classes, storing them in variables
|
|
12
|
+
for module_name, class_name in messages_files:
|
|
13
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
14
|
+
|
|
15
|
+
# Adding the lazy-loaded messages classes to __all__
|
|
16
|
+
__all__ = [class_name for _, class_name in messages_files]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of parsers names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
parsers_files = [
|
|
5
|
+
(
|
|
6
|
+
"swarmauri.parsers.concrete.BeautifulSoupElementParser",
|
|
7
|
+
"BeautifulSoupElementParser",
|
|
8
|
+
),
|
|
9
|
+
("swarmauri.parsers.concrete.CSVParser", "CSVParser"),
|
|
10
|
+
("swarmauri.parsers.concrete.HTMLTagStripParser", "HTMLTagStripParser"),
|
|
11
|
+
("swarmauri.parsers.concrete.KeywordExtractorParser", "KeywordExtractorParser"),
|
|
12
|
+
("swarmauri.parsers.concrete.Md2HtmlParser", "Md2HtmlParser"),
|
|
13
|
+
("swarmauri.parsers.concrete.OpenAPISpecParser", "OpenAPISpecParser"),
|
|
14
|
+
(
|
|
15
|
+
"swarmauri.parsers.concrete.PhoneNumberExtractorParser",
|
|
16
|
+
"PhoneNumberExtractorParser",
|
|
17
|
+
),
|
|
18
|
+
("swarmauri.parsers.concrete.PythonParser", "PythonParser"),
|
|
19
|
+
("swarmauri.parsers.concrete.RegExParser", "RegExParser"),
|
|
20
|
+
("swarmauri.parsers.concrete.URLExtractorParser", "URLExtractorParser"),
|
|
21
|
+
("swarmauri.parsers.concrete.XMLParser", "XMLParser"),
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
# Lazy loading of parsers classes, storing them in variables
|
|
25
|
+
for module_name, class_name in parsers_files:
|
|
26
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
27
|
+
|
|
28
|
+
# Adding the lazy-loaded parsers classes to __all__
|
|
29
|
+
__all__ = [class_name for _, class_name in parsers_files]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from swarmauri.utils._lazy_import import _lazy_import
|
|
2
|
+
|
|
3
|
+
# List of prompts names (file names without the ".py" extension) and corresponding class names
|
|
4
|
+
prompts_files = [
|
|
5
|
+
("swarmauri.prompts.concrete.Prompt", "Prompt"),
|
|
6
|
+
("swarmauri.prompts.concrete.PromptGenerator", "PromptGenerator"),
|
|
7
|
+
("swarmauri.prompts.concrete.PromptMatrix", "PromptMatrix"),
|
|
8
|
+
("from swarmauri.prompts.concrete.PromptTemplate", "PromptTemplate"),
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
# Lazy loading of prompts classes, storing them in variables
|
|
12
|
+
for module_name, class_name in prompts_files:
|
|
13
|
+
globals()[class_name] = _lazy_import(module_name, class_name)
|
|
14
|
+
|
|
15
|
+
# Adding the lazy-loaded prompts classes to __all__
|
|
16
|
+
__all__ = [class_name for _, class_name in prompts_files]
|