swarmauri 0.1.122.dev5__tar.gz → 0.1.124.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.1.122.dev5 → swarmauri-0.1.124.dev4}/PKG-INFO +1 -1
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/__init__.py +1 -1
- swarmauri-0.1.124.dev4/swarmauri/core/chains/IChainContext.py +13 -0
- swarmauri-0.1.124.dev4/swarmauri/core/chains/IChainContextLoader.py +8 -0
- swarmauri-0.1.124.dev4/swarmauri/core/chains/IChainDependencyResolver.py +32 -0
- swarmauri-0.1.124.dev4/swarmauri/core/prompts/IPromptMatrix.py +42 -0
- swarmauri-0.1.124.dev4/swarmauri/experimental/chains/IChainFormatter.py +9 -0
- swarmauri-0.1.124.dev4/swarmauri/experimental/chains/IChainNotification.py +7 -0
- swarmauri-0.1.124.dev4/swarmauri/experimental/chains/IChainPersistence.py +14 -0
- swarmauri-0.1.124.dev4/swarmauri/experimental/chains/IChainScheduler.py +8 -0
- swarmauri-0.1.124.dev4/swarmauri/standard/chains/base/ChainContextBase.py +50 -0
- swarmauri-0.1.124.dev4/swarmauri/standard/chains/base/PromptContextChainBase.py +124 -0
- swarmauri-0.1.122.dev5/swarmauri/standard/chains/concrete/StateChain.py → swarmauri-0.1.124.dev4/swarmauri/standard/chains/concrete/ContextChain.py +15 -29
- swarmauri-0.1.124.dev4/swarmauri/standard/chains/concrete/PromptContextChain.py +13 -0
- swarmauri-0.1.124.dev4/swarmauri/standard/prompts/base/BasePromptMatrix.py +41 -0
- swarmauri-0.1.124.dev4/swarmauri/standard/prompts/concrete/PromptMatrix.py +7 -0
- swarmauri-0.1.124.dev4/swarmauri/standard/utils/json_validator.py +17 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri.egg-info/PKG-INFO +1 -1
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri.egg-info/SOURCES.txt +15 -9
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/ChainOrderStrategy.py +0 -18
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/ChainOrderStrategyBase.py +0 -14
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/ChainProcessingStrategy.py +0 -21
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/ChainProcessingStrategyBase.py +0 -16
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/IChainOrderStrategy.py +0 -9
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/IChainProcessingStrategy.py +0 -18
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/MatrixOrderStrategy.py +0 -14
- swarmauri-0.1.122.dev5/swarmauri/experimental/chains/MatrixProcessingStrategy.py +0 -23
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/README.md +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/setup.cfg +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/setup.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/document_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/document_stores/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/document_stores/concrete/RedisDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/document_stores/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/retrievers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/retrievers/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/retrievers/concrete/RedisDocumentRetriever.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/retrievers/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/DownloadPdfTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/EntityRecognitionTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/GmailReadTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/GmailSendTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/PaCMAP.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/SentimentAnalysisTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/WebScrapingTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/ZapierHookTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/community/tools/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_apis/IAgentCommands.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_apis/IAgentRouterCRUD.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_apis/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_factories/IAgentFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_factories/IExportConf.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agent_factories/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentName.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentRetrieve.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentSystemContext.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentToolkit.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/IAgentVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/agents/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chains/ICallableChain.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chains/IChain.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chains/IChainFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chains/IChainStep.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chains/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chunkers/IChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/chunkers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/conversations/IConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/conversations/IMaxSize.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/conversations/ISystemContext.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/conversations/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/distances/IDistanceSimilarity.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/distances/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/document_stores/IDocumentRetrieve.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/document_stores/IDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/document_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/documents/IDocument.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/documents/IEmbed.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/documents/IExperimentDocument.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/documents/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/experiment_stores/IExperimentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/experiment_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/messages/IMessage.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/messages/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/metrics/IAggMeasurements.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/metrics/ICalculateMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/metrics/IMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/metrics/IThreshold.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/metrics/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/models/IFit.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/models/IModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/models/IPredict.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/models/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/parsers/IParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/parsers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/prompts/IPrompt.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/prompts/ITemplate.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/prompts/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarm_apis/IAgentRegistrationAPI.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarm_apis/ISwarmAPI.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarm_apis/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarm.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarmAgentRegistration.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarmChainCRUD.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarmComponent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarmConfigurationExporter.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/ISwarmFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/swarms/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/toolkits/IToolkit.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/toolkits/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tools/IParameter.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tools/ITool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tools/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tracing/IChainTracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tracing/ITraceContext.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tracing/ITracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/tracing/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/utils/ITransactional.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/utils/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IAngleBetweenVectors.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IDecompose.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IDivergence.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IGradient.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IOrthogonalProject.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IProject.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IReflect.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/ISaveLoadStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/ISimilarity.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/ISimiliarityQuery.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorArithmetic.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorBasisCheck.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorLinearCombination.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorNorm.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorRetrieve.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorRotate.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorSpan.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/IVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vector_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectorizers/IFeature.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectorizers/ISaveModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectorizers/IVectorize.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectorizers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectors/IVector.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectors/IVectorMeta.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectors/IVectorProduct.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectors/IVectorTransform.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/core/vectors/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/chains/TypeAgnosticCallableChain.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/chains/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/conversations/ConsensusBuildingConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/conversations/SemanticConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/conversations/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/CanberraDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/ChebyshevDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/HaversineDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/ManhattanDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/MinkowskiDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/SSASimilarity.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/SSIVSimilarity.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/ScannVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/SorensenDiceDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/SquaredEuclideanDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/distances/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/document_stores/TriplesDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/document_stores/Word2VecDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/document_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/models/HierarchicalAttentionModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/models/SageMaker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/models/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/parsers/PDFToTextParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/parsers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/CypherQueryTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/FileDownloaderTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/LinkedInArticleTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/OutlookSendMailTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/SQLite3QueryTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/TwitterPostTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tools/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tracing/RemoteTrace.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/tracing/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/utils/ISerializable.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/utils/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/utils/get_last_frame.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/utils/log_prompt_response.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/utils/save_schema.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/vector_stores/TriplesDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/vector_stores/Word2VecDocumentStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/vector_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/vectorizers/DGLVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/experimental/vectorizers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/concrete/AgentFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/concrete/ConfDrivenAgentFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/concrete/ReflectiveAgentFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agent_factories/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/AgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/AgentRetrieveBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/ConversationAgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/NamedAgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/SystemContextAgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/ToolAgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/VectorStoreAgentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/ChatSwarmAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/MultiPartyChatSwarmAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/MultiPartyToolAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/QAAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/RagAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/SimpleConversationAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/ToolAgent.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/agents/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/apis/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/apis/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/apis/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/base/ChainBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/base/ChainStepBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/concrete/CallableChain.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/concrete/ChainStep.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chains/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/DelimiterBasedChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/FixedLengthChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/MdSnippetChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/SimpleSentenceChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/SlidingWindowChunker.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/chunkers/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/base/ConversationBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/base/SystemContextBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/LimitedSizeConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/LimitedSystemContextConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/MaxSizeConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/MaxSystemContextConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/SessionCacheConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/SharedConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/SimpleConversation.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/conversations/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/ChiSquaredDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/CosineDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/EuclideanDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/JaccardIndexDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/LevenshteinDistance.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/distances/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/document_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/document_stores/base/DocumentStoreBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/document_stores/base/DocumentStoreRetrieveBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/document_stores/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/document_stores/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/base/DocumentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/base/EmbeddedBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/concrete/Document.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/concrete/EmbeddedDocument.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/documents/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/exceptions/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/exceptions/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/exceptions/concrete/IndexErrorWithContext.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/exceptions/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/base/MessageBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/concrete/AgentMessage.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/concrete/FunctionMessage.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/concrete/HumanMessage.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/concrete/SystemMessage.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/messages/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/base/AggregateMetricBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/base/CalculateMetricBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/base/MetricBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/base/ThresholdMetricBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/FirstImpressionMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/HitRateAtK.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/ImpressionAtK.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/MeanMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/StaticValueMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/SystemUsabilityScaleMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/TaskSuccessRateMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/ThresholdMeanMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/TimeOnTaskMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/ZeroMetric.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/metrics/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/base/ModelBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/AnthropicModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/AzureGPT.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/CohereModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/GeminiProModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/GroqModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/GroqToolModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/MistralModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/MistralToolModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/OpenAIImageGenerator.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/OpenAIModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/OpenAIToolModel.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/models/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/BERTEmbeddingParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/CSVParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/EntityRecognitionParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/HtmlTagStripParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/KeywordExtractorParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/MarkdownParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/OpenAPISpecParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/PhoneNumberExtractorParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/PythonParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/RegExParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/TFIDFParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/TextBlobNounParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/TextBlobSentenceParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/URLExtractorParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/XMLParser.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/parsers/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/concrete/Prompt.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/concrete/PromptGenerator.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/concrete/PromptTemplate.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/prompts/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/states/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/states/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/states/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/swarms/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/swarms/base/SwarmComponentBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/swarms/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/swarms/concrete/SimpleSwarmFactory.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/swarms/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/toolkits/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/toolkits/base/ToolkitBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/toolkits/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/toolkits/concrete/Toolkit.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/toolkits/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/base/ToolBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/AdditionTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/CalculatorTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/CodeInterpreterTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/ImportMemoryModuleTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/Parameter.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/TestTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/WeatherTool.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tools/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/CallableTracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/ChainTracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/SimpleTraceContext.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/SimpleTracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/TracedVariable.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/VariableTracer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/tracing/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/apply_metaclass.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/decorate.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/get_class_hash.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/load_documents_from_json.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/memoize.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/utils/sql_log.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/base/SaveLoadStoreBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/base/VectorDocumentStoreBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/base/VectorDocumentStoreRetrieveBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/concrete/Doc2VecVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/concrete/MLMVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/concrete/SpatialDocVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/concrete/TFIDFVectorStore.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vector_stores/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/Doc2VecVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/MLMVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/NMFVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/SpatialDocVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/TFIDFVectorizer.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectorizers/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/base/VectorBase.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/base/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/concrete/SimpleVector.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/concrete/VectorProduct.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri/standard/vectors/concrete/__init__.py +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri.egg-info/dependency_links.txt +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri.egg-info/requires.txt +0 -0
- {swarmauri-0.1.122.dev5 → swarmauri-0.1.124.dev4}/swarmauri.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: swarmauri
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.124.dev4
|
|
4
4
|
Summary: This repository includes core interfaces, standard ABCs and concrete references, third party plugins, and experimental modules for the swarmaURI framework.
|
|
5
5
|
Home-page: http://github.com/swarmauri/swarmauri-sdk
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Dict, Any
|
|
3
|
+
|
|
4
|
+
class IChainContext(ABC):
|
|
5
|
+
@property
|
|
6
|
+
@abstractmethod
|
|
7
|
+
def context(self) -> Dict[str, Any]:
|
|
8
|
+
pass
|
|
9
|
+
|
|
10
|
+
@context.setter
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def context(self, value: Dict[str, Any]) -> None:
|
|
13
|
+
pass
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Tuple, Dict, List, Optional
|
|
3
|
+
from swarmauri.standard.chains.concrete.ChainStep import ChainStep
|
|
4
|
+
|
|
5
|
+
class IChainDependencyResolver(ABC):
|
|
6
|
+
@abstractmethod
|
|
7
|
+
def build_dependencies(self) -> List[ChainStep]:
|
|
8
|
+
"""
|
|
9
|
+
Builds the dependencies for a particular sequence in the matrix.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
matrix (List[List[str]]): The prompt matrix.
|
|
13
|
+
sequence_index (int): The index of the sequence to build dependencies for.
|
|
14
|
+
|
|
15
|
+
Returns:
|
|
16
|
+
Tuple containing indegrees and graph dicts.
|
|
17
|
+
"""
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
@abstractmethod
|
|
21
|
+
def resolve_dependencies(self, matrix: List[List[Optional[str]]], sequence_index: int) -> List[int]:
|
|
22
|
+
"""
|
|
23
|
+
Resolves the execution order based on the provided dependencies.
|
|
24
|
+
|
|
25
|
+
Args:
|
|
26
|
+
indegrees (Dict[int, int]): The indegrees of each node.
|
|
27
|
+
graph (Dict[int, List[int]]): The graph representing dependencies.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
List[int]: The resolved execution order.
|
|
31
|
+
"""
|
|
32
|
+
pass
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# swarmauri/core/prompts/IPromptMatrix.py
|
|
2
|
+
from abc import ABC, abstractmethod
|
|
3
|
+
from typing import List, Tuple, Optional, Any
|
|
4
|
+
|
|
5
|
+
class IPromptMatrix(ABC):
|
|
6
|
+
@property
|
|
7
|
+
@abstractmethod
|
|
8
|
+
def matrix(self) -> List[List[Optional[str]]]:
|
|
9
|
+
"""Get the entire prompt matrix."""
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
@matrix.setter
|
|
13
|
+
@abstractmethod
|
|
14
|
+
def matrix(self, value: List[List[Optional[str]]]) -> None:
|
|
15
|
+
"""Set the entire prompt matrix."""
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
@abstractmethod
|
|
20
|
+
def shape(self) -> Tuple[int, int]:
|
|
21
|
+
"""Get the shape (number of agents, sequence length) of the prompt matrix."""
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
@abstractmethod
|
|
25
|
+
def add_prompt_sequence(self, sequence: List[Optional[str]]) -> None:
|
|
26
|
+
"""Add a new prompt sequence to the matrix."""
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
@abstractmethod
|
|
30
|
+
def remove_prompt_sequence(self, index: int) -> None:
|
|
31
|
+
"""Remove a prompt sequence from the matrix by index."""
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
@abstractmethod
|
|
35
|
+
def get_prompt_sequence(self, index: int) -> List[Optional[str]]:
|
|
36
|
+
"""Get a prompt sequence from the matrix by index."""
|
|
37
|
+
pass
|
|
38
|
+
|
|
39
|
+
@abstractmethod
|
|
40
|
+
def show_matrix(self) -> List[List[Optional[str]]]:
|
|
41
|
+
"""Show the entire prompt matrix."""
|
|
42
|
+
pass
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Any
|
|
3
|
+
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
+
|
|
5
|
+
class IChainFormatter(ABC):
|
|
6
|
+
@abstractmethod
|
|
7
|
+
def format_output(self, step: IChainStep, output: Any) -> str:
|
|
8
|
+
"""Format the output of a specific chain step."""
|
|
9
|
+
pass
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Dict, Any
|
|
3
|
+
from swarmauri.core.chains.IChain import IChain
|
|
4
|
+
|
|
5
|
+
class IChainPersistence(ABC):
|
|
6
|
+
@abstractmethod
|
|
7
|
+
def save_state(self, chain: IChain, state: Dict[str, Any]) -> None:
|
|
8
|
+
"""Save the state of the given chain."""
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def load_state(self, chain_id: str) -> Dict[str, Any]:
|
|
13
|
+
"""Load the state of a chain by its identifier."""
|
|
14
|
+
pass
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from typing import Any, Callable, Dict, List
|
|
2
|
+
import re
|
|
3
|
+
|
|
4
|
+
from swarmauri.core.chains.IChainContext import IChainContext
|
|
5
|
+
|
|
6
|
+
class ChainContextBase(IChainContext):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
self._steps = []
|
|
9
|
+
self._context = {}
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def context(self) -> Dict[str, Any]:
|
|
13
|
+
return self._context
|
|
14
|
+
|
|
15
|
+
@context.setter
|
|
16
|
+
def context(self, value: Dict[str, Any]) -> None:
|
|
17
|
+
self._context = value
|
|
18
|
+
|
|
19
|
+
def update(self, **kwargs):
|
|
20
|
+
self.state.update(kwargs)
|
|
21
|
+
|
|
22
|
+
def get_value(self, key: str) -> Any:
|
|
23
|
+
return self._context.get(key)
|
|
24
|
+
|
|
25
|
+
def _resolve_fstring(self, template: str) -> str:
|
|
26
|
+
pattern = re.compile(r'{([^}]+)}')
|
|
27
|
+
def replacer(match):
|
|
28
|
+
expression = match.group(1)
|
|
29
|
+
try:
|
|
30
|
+
return str(eval(expression, {}, self._context))
|
|
31
|
+
except Exception as e:
|
|
32
|
+
print(f"Failed to resolve expression: {expression}. Error: {e}")
|
|
33
|
+
return f"{{{expression}}}"
|
|
34
|
+
return pattern.sub(replacer, template)
|
|
35
|
+
|
|
36
|
+
def _resolve_placeholders(self, value: Any) -> Any:
|
|
37
|
+
if isinstance(value, str):
|
|
38
|
+
return self._resolve_fstring(value)
|
|
39
|
+
elif isinstance(value, dict):
|
|
40
|
+
return {k: self._resolve_placeholders(v) for k, v in value.items()}
|
|
41
|
+
elif isinstance(value, list):
|
|
42
|
+
return [self._resolve_placeholders(v) for v in value]
|
|
43
|
+
else:
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
def _resolve_ref(self, value: Any) -> Any:
|
|
47
|
+
if isinstance(value, str) and value.startswith('$'):
|
|
48
|
+
placeholder = value[1:]
|
|
49
|
+
return placeholder
|
|
50
|
+
return value
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# swarmaurui/standard/chains/base/PromptStateChainBase.py
|
|
2
|
+
from abc import ABC, abstractmethod
|
|
3
|
+
from typing import List, Dict, Any, Optional
|
|
4
|
+
from collections import defaultdict, deque
|
|
5
|
+
import re
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
from swarmaurui.standard.chains.concrete.ChainStep import ChainStep
|
|
9
|
+
from swarmaurui.standard.chains.base.ChainContextBase import ChainContextBase
|
|
10
|
+
from swarmaurui.standard.chains.base.ChainStateBase import ChainStateBase
|
|
11
|
+
from swarmaurui.core.agents.IAgent import IAgent
|
|
12
|
+
from swarmaurui.core.prompts.IPromptMatrix import IPromptMatrix
|
|
13
|
+
from swarmaurui.core.chains.IChainDependencyResolver import IChainDependencyResolver
|
|
14
|
+
|
|
15
|
+
class PromptStateChainBase(ABC, ChainContextBase, ChainStateBase, IChainDependencyResolver):
|
|
16
|
+
def __init__(self,
|
|
17
|
+
prompt_matrix: IPromptMatrix,
|
|
18
|
+
agents: List[IAgent] = [],
|
|
19
|
+
context: Dict = {},
|
|
20
|
+
model_kwargs: Dict[str, Any] = {}):
|
|
21
|
+
ChainContextBase.__init__(self)
|
|
22
|
+
ChainStateBase.__init__(self)
|
|
23
|
+
self.prompt_matrix = prompt_matrix
|
|
24
|
+
self.response_matrix = [[None for _ in range(prompt_matrix.shape[1])] for _ in range(prompt_matrix.shape[0])]
|
|
25
|
+
self.agents = agents
|
|
26
|
+
self.context = context
|
|
27
|
+
self.model_kwargs = model_kwargs
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def context(self) -> Dict[str, Any]:
|
|
31
|
+
return self._context
|
|
32
|
+
|
|
33
|
+
@context.setter
|
|
34
|
+
def context(self, value: Dict[str, Any]) -> None:
|
|
35
|
+
self._context = value
|
|
36
|
+
|
|
37
|
+
def execute(self) -> None:
|
|
38
|
+
"""
|
|
39
|
+
Execute the chain of prompts based on the state of the prompt matrix.
|
|
40
|
+
Iterates through each sequence in the prompt matrix, resolves dependencies,
|
|
41
|
+
and executes prompts in the resolved order.
|
|
42
|
+
"""
|
|
43
|
+
steps = self.build_dependencies()
|
|
44
|
+
for step in steps:
|
|
45
|
+
method = step.method
|
|
46
|
+
args = step.args
|
|
47
|
+
ref = step.ref
|
|
48
|
+
result = method(*args)
|
|
49
|
+
self.context[ref] = result
|
|
50
|
+
self._update_response_matrix(args[0], result)
|
|
51
|
+
|
|
52
|
+
def _execute_prompt(self, agent_index: int, prompt: str, ref: str):
|
|
53
|
+
"""
|
|
54
|
+
Executes a given prompt using the specified agent and updates the response.
|
|
55
|
+
"""
|
|
56
|
+
formatted_prompt = prompt.format(**self.context) # Using context for f-string formatting
|
|
57
|
+
agent = self.agents[agent_index]
|
|
58
|
+
response = agent.exec(formatted_prompt, model_kwargs=self.model_kwargs)
|
|
59
|
+
self.context[ref] = response
|
|
60
|
+
self._update_response_matrix(agent_index, response)
|
|
61
|
+
return response
|
|
62
|
+
|
|
63
|
+
def _update_response_matrix(self, agent_index: int, response: Any):
|
|
64
|
+
self.response_matrix[agent_index].append(response)
|
|
65
|
+
|
|
66
|
+
def build_dependencies(self) -> List[ChainStep]:
|
|
67
|
+
"""
|
|
68
|
+
Build the chain steps in the correct order by resolving dependencies first.
|
|
69
|
+
"""
|
|
70
|
+
steps = []
|
|
71
|
+
for i, sequence in enumerate(self.prompt_matrix.matrix):
|
|
72
|
+
execution_order = self.resolve_dependencies(matrix=self.prompt_matrix.matrix, sequence_index=i)
|
|
73
|
+
for j in execution_order:
|
|
74
|
+
prompt = sequence[j]
|
|
75
|
+
if prompt:
|
|
76
|
+
ref = f"Agent_{i}_Step_{j}_response" # Using a unique reference string
|
|
77
|
+
step = ChainStep(
|
|
78
|
+
key=f"Agent_{i}_Step_{j}",
|
|
79
|
+
method=self._execute_prompt,
|
|
80
|
+
args=[i, prompt, ref],
|
|
81
|
+
ref=ref
|
|
82
|
+
)
|
|
83
|
+
steps.append(step)
|
|
84
|
+
return steps
|
|
85
|
+
|
|
86
|
+
def resolve_dependencies(self, matrix: List[List[Optional[str]]], sequence_index: int) -> List[int]:
|
|
87
|
+
"""
|
|
88
|
+
Resolve dependencies within a specific sequence of the prompt matrix.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
matrix (List[List[Optional[str]]]): The prompt matrix.
|
|
92
|
+
sequence_index (int): The index of the sequence to resolve dependencies for.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
List[int]: The execution order of the agents for the given sequence.
|
|
96
|
+
"""
|
|
97
|
+
indegrees = defaultdict(int)
|
|
98
|
+
graph = defaultdict(list)
|
|
99
|
+
for agent_idx, prompt in enumerate(matrix[sequence_index]):
|
|
100
|
+
if prompt:
|
|
101
|
+
dependencies = re.findall(r'\$\d+_\d+', prompt)
|
|
102
|
+
for dep in dependencies:
|
|
103
|
+
# Extract index from the matched dependency pattern "$x_y"
|
|
104
|
+
x = int(dep[1:]) # Remove leading "$" and convert to int
|
|
105
|
+
graph[x].append(agent_idx)
|
|
106
|
+
indegrees[agent_idx] += 1
|
|
107
|
+
if not dependencies:
|
|
108
|
+
indegrees[agent_idx] = 0
|
|
109
|
+
else:
|
|
110
|
+
indegrees[agent_idx] = 0 # Ensure nodes without dependencies are in the graph
|
|
111
|
+
|
|
112
|
+
queue = deque([idx for idx in indegrees if indegrees[idx] == 0])
|
|
113
|
+
execution_order = []
|
|
114
|
+
while queue:
|
|
115
|
+
current = queue.popleft()
|
|
116
|
+
execution_order.append(current)
|
|
117
|
+
for dependent in graph[current]:
|
|
118
|
+
indegrees[dependent] -= 1
|
|
119
|
+
if indegrees[dependent] == 0:
|
|
120
|
+
queue.append(dependent)
|
|
121
|
+
if len(execution_order) != len(indegrees):
|
|
122
|
+
raise RuntimeError("There's a cyclic dependency or unresolved dependency in your prompt matrix.")
|
|
123
|
+
return execution_order
|
|
124
|
+
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
# standard/chains/concrete/ContextChain.py
|
|
1
2
|
from typing import Any, Dict, List, Callable
|
|
2
|
-
from swarmauri.standard.chains.base.
|
|
3
|
+
from swarmauri.standard.chains.base.ChainContextBase import ChainContextBase
|
|
4
|
+
from swarmauri.standard.chains.base.ChainStep import ChainStep
|
|
3
5
|
from swarmauri.core.chains.IChain import IChain
|
|
4
6
|
|
|
5
|
-
class
|
|
7
|
+
class ContextChain(IChain, ChainContextBase):
|
|
6
8
|
"""
|
|
7
9
|
Enhanced to support ChainSteps with return parameters, storing return values as instance state variables.
|
|
8
10
|
Implements the IChain interface including get_schema_info and remove_step methods.
|
|
9
11
|
"""
|
|
10
12
|
def __init__(self):
|
|
11
|
-
self
|
|
12
|
-
self.
|
|
13
|
-
|
|
13
|
+
ChainContextBase.__init__(self)
|
|
14
|
+
self._steps: List[ChainStep] = []
|
|
15
|
+
|
|
14
16
|
def add_step(self, key: str, method: Callable[..., Any], *args, ref: str = None, **kwargs):
|
|
15
17
|
# Directly store args, kwargs, and optionally a return_key without resolving them
|
|
16
|
-
step =
|
|
18
|
+
step = ChainStep(key, method, args=args, kwargs=kwargs, ref=ref) # Note the use of 'ref' as 'return_key'
|
|
17
19
|
self._steps.append(step)
|
|
18
|
-
|
|
19
|
-
def remove_step(self, step:
|
|
20
|
+
|
|
21
|
+
def remove_step(self, step: ChainStep) -> None:
|
|
20
22
|
self._steps = [s for s in self._steps if s.key != step.key]
|
|
21
|
-
|
|
23
|
+
|
|
22
24
|
def execute(self, *args, **kwargs) -> Any:
|
|
23
25
|
# Execute the chain and manage result storage based on return_key
|
|
24
26
|
for step in self._steps:
|
|
@@ -26,31 +28,15 @@ class StateChain(IChain):
|
|
|
26
28
|
resolved_kwargs = {k: self._resolve_placeholders(v) for k, v in step.kwargs.items() if k != 'ref'}
|
|
27
29
|
result = step.method(*resolved_args, **resolved_kwargs)
|
|
28
30
|
if step.ref: # step.ref is used here as the return_key analogy
|
|
29
|
-
print('step.ref', step.ref)
|
|
30
31
|
resolved_ref = self._resolve_ref(step.ref)
|
|
31
|
-
|
|
32
|
-
self.
|
|
33
|
-
return self.
|
|
34
|
-
|
|
35
|
-
def _resolve_ref(self, value: Any) -> Any:
|
|
36
|
-
if isinstance(value, str) and value.startswith('$'):
|
|
37
|
-
placeholder = value[1:]
|
|
38
|
-
return placeholder
|
|
39
|
-
return value
|
|
40
|
-
|
|
41
|
-
def _resolve_placeholders(self, value: Any) -> Any:
|
|
42
|
-
if isinstance(value, str) and value.startswith('$'):
|
|
43
|
-
placeholder = value[1:]
|
|
44
|
-
return self._context.get(placeholder)
|
|
45
|
-
return value
|
|
32
|
+
self.context[resolved_ref] = result
|
|
33
|
+
self.update(**{resolved_ref: result}) # Update context with new state value
|
|
34
|
+
return self.context # or any specific result you intend to return
|
|
46
35
|
|
|
47
|
-
def set_context(self, **kwargs):
|
|
48
|
-
self._context.update(kwargs)
|
|
49
|
-
|
|
50
36
|
def get_schema_info(self) -> Dict[str, Any]:
|
|
51
37
|
# Implementing required method from IChain;
|
|
52
38
|
# Adapt the return structure to your needs
|
|
53
39
|
return {
|
|
54
40
|
"steps": [step.key for step in self._steps],
|
|
55
|
-
"
|
|
41
|
+
"state_keys": list(self.context.keys())
|
|
56
42
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from typing import List, Dict, Any
|
|
2
|
+
from swarmauri.core.agents.IAgent import IAgent
|
|
3
|
+
from swarmauri.core.prompts.IPromptMatrix import IPromptMatrix
|
|
4
|
+
from swarmauri.standard.chains.base.PromptStateChainBase import PromptStateChainBase
|
|
5
|
+
|
|
6
|
+
class PromptContextChain(PromptStateChainBase):
|
|
7
|
+
def __init__(self, prompt_matrix: IPromptMatrix,
|
|
8
|
+
agents: List[IAgent] = [], context: Dict = {},
|
|
9
|
+
model_kwargs: Dict[str, Any] = {}
|
|
10
|
+
):
|
|
11
|
+
|
|
12
|
+
PromptStateChainBase.__init__(self, prompt_matrix=prompt_matrix, agents=agents,
|
|
13
|
+
context=context, model_kwargs=model_kwargs)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# swarmauri/standard/prompts/base/BasePromptMatrix.py
|
|
2
|
+
from typing import List, Tuple, Optional, Any
|
|
3
|
+
from swarmauri.core.prompts.IPromptMatrix import IPromptMatrix
|
|
4
|
+
|
|
5
|
+
class BasePromptMatrix(IPromptMatrix):
|
|
6
|
+
def __init__(self):
|
|
7
|
+
self._matrix = []
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def matrix(self) -> List[List[Optional[str]]]:
|
|
11
|
+
return self._matrix
|
|
12
|
+
|
|
13
|
+
@matrix.setter
|
|
14
|
+
def matrix(self, value: List[List[Optional[str]]]) -> None:
|
|
15
|
+
self._matrix = value
|
|
16
|
+
|
|
17
|
+
def get_shape(self) -> Tuple[int, int]:
|
|
18
|
+
if self._matrix:
|
|
19
|
+
return len(self._matrix), len(self._matrix[0])
|
|
20
|
+
return 0, 0
|
|
21
|
+
|
|
22
|
+
def add_prompt_sequence(self, sequence: List[Optional[str]]) -> None:
|
|
23
|
+
if not self._matrix or (self._matrix and len(sequence) == len(self._matrix[0])):
|
|
24
|
+
self._matrix.append(sequence)
|
|
25
|
+
else:
|
|
26
|
+
raise ValueError("Sequence length does not match the prompt matrix dimensions.")
|
|
27
|
+
|
|
28
|
+
def remove_prompt_sequence(self, index: int) -> None:
|
|
29
|
+
if 0 <= index < len(self._matrix):
|
|
30
|
+
self._matrix.pop(index)
|
|
31
|
+
else:
|
|
32
|
+
raise IndexError("Index out of range.")
|
|
33
|
+
|
|
34
|
+
def get_prompt_sequence(self, index: int) -> List[Optional[str]]:
|
|
35
|
+
if 0 <= index < len(self._matrix):
|
|
36
|
+
return self._matrix[index]
|
|
37
|
+
else:
|
|
38
|
+
raise IndexError("Index out of range.")
|
|
39
|
+
|
|
40
|
+
def show_matrix(self) -> List[List[Optional[str]]]:
|
|
41
|
+
return self._matrix
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# swarmauri/standard/utils/json_validator.py
|
|
2
|
+
import json
|
|
3
|
+
import jsonschema
|
|
4
|
+
from jsonschema import validate
|
|
5
|
+
|
|
6
|
+
def load_json_file(file_path: str) -> dict:
|
|
7
|
+
with open(file_path, 'r') as file:
|
|
8
|
+
return json.load(file)
|
|
9
|
+
|
|
10
|
+
def validate_json(data: dict, schema_file: str) -> bool:
|
|
11
|
+
schema = load_json_file(schema_file)
|
|
12
|
+
try:
|
|
13
|
+
validate(instance=data, schema=schema)
|
|
14
|
+
except jsonschema.exceptions.ValidationError as err:
|
|
15
|
+
print(f"JSON validation error: {err.message}")
|
|
16
|
+
return False
|
|
17
|
+
return True
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: swarmauri
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.124.dev4
|
|
4
4
|
Summary: This repository includes core interfaces, standard ABCs and concrete references, third party plugins, and experimental modules for the swarmaURI framework.
|
|
5
5
|
Home-page: http://github.com/swarmauri/swarmauri-sdk
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -44,6 +44,9 @@ swarmauri/core/agents/IAgentVectorStore.py
|
|
|
44
44
|
swarmauri/core/agents/__init__.py
|
|
45
45
|
swarmauri/core/chains/ICallableChain.py
|
|
46
46
|
swarmauri/core/chains/IChain.py
|
|
47
|
+
swarmauri/core/chains/IChainContext.py
|
|
48
|
+
swarmauri/core/chains/IChainContextLoader.py
|
|
49
|
+
swarmauri/core/chains/IChainDependencyResolver.py
|
|
47
50
|
swarmauri/core/chains/IChainFactory.py
|
|
48
51
|
swarmauri/core/chains/IChainStep.py
|
|
49
52
|
swarmauri/core/chains/__init__.py
|
|
@@ -78,6 +81,7 @@ swarmauri/core/models/__init__.py
|
|
|
78
81
|
swarmauri/core/parsers/IParser.py
|
|
79
82
|
swarmauri/core/parsers/__init__.py
|
|
80
83
|
swarmauri/core/prompts/IPrompt.py
|
|
84
|
+
swarmauri/core/prompts/IPromptMatrix.py
|
|
81
85
|
swarmauri/core/prompts/ITemplate.py
|
|
82
86
|
swarmauri/core/prompts/__init__.py
|
|
83
87
|
swarmauri/core/swarm_apis/IAgentRegistrationAPI.py
|
|
@@ -130,14 +134,10 @@ swarmauri/core/vectors/IVectorProduct.py
|
|
|
130
134
|
swarmauri/core/vectors/IVectorTransform.py
|
|
131
135
|
swarmauri/core/vectors/__init__.py
|
|
132
136
|
swarmauri/experimental/__init__.py
|
|
133
|
-
swarmauri/experimental/chains/
|
|
134
|
-
swarmauri/experimental/chains/
|
|
135
|
-
swarmauri/experimental/chains/
|
|
136
|
-
swarmauri/experimental/chains/
|
|
137
|
-
swarmauri/experimental/chains/IChainOrderStrategy.py
|
|
138
|
-
swarmauri/experimental/chains/IChainProcessingStrategy.py
|
|
139
|
-
swarmauri/experimental/chains/MatrixOrderStrategy.py
|
|
140
|
-
swarmauri/experimental/chains/MatrixProcessingStrategy.py
|
|
137
|
+
swarmauri/experimental/chains/IChainFormatter.py
|
|
138
|
+
swarmauri/experimental/chains/IChainNotification.py
|
|
139
|
+
swarmauri/experimental/chains/IChainPersistence.py
|
|
140
|
+
swarmauri/experimental/chains/IChainScheduler.py
|
|
141
141
|
swarmauri/experimental/chains/TypeAgnosticCallableChain.py
|
|
142
142
|
swarmauri/experimental/chains/__init__.py
|
|
143
143
|
swarmauri/experimental/conversations/ConsensusBuildingConversation.py
|
|
@@ -210,11 +210,14 @@ swarmauri/standard/apis/base/__init__.py
|
|
|
210
210
|
swarmauri/standard/apis/concrete/__init__.py
|
|
211
211
|
swarmauri/standard/chains/__init__.py
|
|
212
212
|
swarmauri/standard/chains/base/ChainBase.py
|
|
213
|
+
swarmauri/standard/chains/base/ChainContextBase.py
|
|
213
214
|
swarmauri/standard/chains/base/ChainStepBase.py
|
|
215
|
+
swarmauri/standard/chains/base/PromptContextChainBase.py
|
|
214
216
|
swarmauri/standard/chains/base/__init__.py
|
|
215
217
|
swarmauri/standard/chains/concrete/CallableChain.py
|
|
216
218
|
swarmauri/standard/chains/concrete/ChainStep.py
|
|
217
|
-
swarmauri/standard/chains/concrete/
|
|
219
|
+
swarmauri/standard/chains/concrete/ContextChain.py
|
|
220
|
+
swarmauri/standard/chains/concrete/PromptContextChain.py
|
|
218
221
|
swarmauri/standard/chains/concrete/__init__.py
|
|
219
222
|
swarmauri/standard/chunkers/__init__.py
|
|
220
223
|
swarmauri/standard/chunkers/base/__init__.py
|
|
@@ -319,9 +322,11 @@ swarmauri/standard/parsers/concrete/URLExtractorParser.py
|
|
|
319
322
|
swarmauri/standard/parsers/concrete/XMLParser.py
|
|
320
323
|
swarmauri/standard/parsers/concrete/__init__.py
|
|
321
324
|
swarmauri/standard/prompts/__init__.py
|
|
325
|
+
swarmauri/standard/prompts/base/BasePromptMatrix.py
|
|
322
326
|
swarmauri/standard/prompts/base/__init__.py
|
|
323
327
|
swarmauri/standard/prompts/concrete/Prompt.py
|
|
324
328
|
swarmauri/standard/prompts/concrete/PromptGenerator.py
|
|
329
|
+
swarmauri/standard/prompts/concrete/PromptMatrix.py
|
|
325
330
|
swarmauri/standard/prompts/concrete/PromptTemplate.py
|
|
326
331
|
swarmauri/standard/prompts/concrete/__init__.py
|
|
327
332
|
swarmauri/standard/states/__init__.py
|
|
@@ -361,6 +366,7 @@ swarmauri/standard/utils/__init__.py
|
|
|
361
366
|
swarmauri/standard/utils/apply_metaclass.py
|
|
362
367
|
swarmauri/standard/utils/decorate.py
|
|
363
368
|
swarmauri/standard/utils/get_class_hash.py
|
|
369
|
+
swarmauri/standard/utils/json_validator.py
|
|
364
370
|
swarmauri/standard/utils/load_documents_from_json.py
|
|
365
371
|
swarmauri/standard/utils/memoize.py
|
|
366
372
|
swarmauri/standard/utils/sql_log.py
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from typing import List
|
|
2
|
-
from swarmauri.core.chains.IChainOrderStrategy import IChainOrderStrategy
|
|
3
|
-
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
-
|
|
5
|
-
class ChainOrderStrategy(IChainOrderStrategy):
|
|
6
|
-
def order_steps(self, steps: List[IChainStep]) -> List[IChainStep]:
|
|
7
|
-
"""
|
|
8
|
-
Orders the chain steps in reverse order.
|
|
9
|
-
|
|
10
|
-
Args:
|
|
11
|
-
steps (List[IChainStep]): The original list of chain steps to be ordered.
|
|
12
|
-
|
|
13
|
-
Returns:
|
|
14
|
-
List[IChainStep]: List of chain steps in order.
|
|
15
|
-
"""
|
|
16
|
-
# Reverse the list of steps.
|
|
17
|
-
steps = list(steps)
|
|
18
|
-
return steps
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from typing import List
|
|
2
|
-
from swarmauri.core.chains.IChainOrderStrategy import IChainOrderStrategy
|
|
3
|
-
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
-
|
|
5
|
-
class ChainOrderStrategyBase(IChainOrderStrategy):
|
|
6
|
-
"""
|
|
7
|
-
A base implementation of the IChainOrderStrategy interface.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
def order_steps(self, steps: List[IChainStep]) -> List[IChainStep]:
|
|
11
|
-
"""
|
|
12
|
-
Default implementation doesn't reorder steps but must be overridden by specific strategies.
|
|
13
|
-
"""
|
|
14
|
-
return steps
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from typing import List, Any
|
|
2
|
-
from swarmauri.core.chains.IChainProcessingStrategy import IChainProcessingStrategy
|
|
3
|
-
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
-
|
|
5
|
-
class ChainProcessingStrategy(IChainProcessingStrategy):
|
|
6
|
-
def execute_steps(self, steps: List[IChainStep]) -> Any:
|
|
7
|
-
"""
|
|
8
|
-
Executes the given list of ordered chain steps based on the specific strategy
|
|
9
|
-
and collects their results.
|
|
10
|
-
|
|
11
|
-
Args:
|
|
12
|
-
steps (List[IChainStep]): The ordered list of chain steps to be executed.
|
|
13
|
-
|
|
14
|
-
Returns:
|
|
15
|
-
Any: The result of executing the steps. This could be tailored as per requirement.
|
|
16
|
-
"""
|
|
17
|
-
results = []
|
|
18
|
-
for step in steps:
|
|
19
|
-
result = step.method(*step.args, **step.kwargs)
|
|
20
|
-
results.append(result)
|
|
21
|
-
return results
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from typing import List
|
|
2
|
-
from swarmauri.core.chains.IChainProcessingStrategy import IChainProcessingStrategy
|
|
3
|
-
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
-
|
|
5
|
-
class ChainProcessingStrategyBase(IChainProcessingStrategy):
|
|
6
|
-
"""
|
|
7
|
-
A base implementation of the IChainProcessingStrategy interface.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
def execute_steps(self, steps: List[IChainStep]):
|
|
11
|
-
"""
|
|
12
|
-
Default implementation which should be overridden by specific processing strategies.
|
|
13
|
-
"""
|
|
14
|
-
for step in steps:
|
|
15
|
-
print(step)
|
|
16
|
-
step.method(*step.args, **step.kwargs)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from abc import ABC, abstractmethod
|
|
2
|
-
from typing import List
|
|
3
|
-
from swarmauri.core.chains.IChainStep import IChainStep
|
|
4
|
-
|
|
5
|
-
# Defines how chain steps are ordered
|
|
6
|
-
class IChainOrderStrategy(ABC):
|
|
7
|
-
@abstractmethod
|
|
8
|
-
def order_steps(self, steps: List[IChainStep]) -> List[IChainStep]:
|
|
9
|
-
pass
|