swarmauri-core 0.11.0.dev7__tar.gz → 0.11.0.dev8__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_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/PKG-INFO +9 -1
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/README.md +8 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/pyproject.toml +1 -1
- swarmauri_core-0.11.0.dev8/swarmauri_core/delegation/IDelegationService.py +46 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/delegation/IGrantStore.py +18 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/delegation/__init__.py +13 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/delegation/models.py +42 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/executions/IExecutionController.py +33 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/executions/IExecutionDriver.py +15 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/executions/__init__.py +13 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/executions/models.py +52 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/invocations/IAuthorityStrategy.py +17 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/invocations/IInvoker.py +14 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/invocations/__init__.py +19 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/invocations/models.py +49 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/permissions/IPermissionPolicy.py +21 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/permissions/__init__.py +6 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/permissions/models.py +27 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/task_mgmt_strategies/ITaskMgmtStrategy.py +5 -3
- swarmauri_core-0.11.0.dev8/swarmauri_core/tasks/ITaskManager.py +28 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/tasks/ITaskStore.py +18 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/tasks/__init__.py +7 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/tasks/models.py +31 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/workflows/IWorkflowDefinition.py +12 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/workflows/__init__.py +17 -0
- swarmauri_core-0.11.0.dev8/swarmauri_core/workflows/models.py +61 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/LICENSE +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_apis/IAgentCommands.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_apis/IAgentRouterCRUD.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_apis/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_factories/IExportConf.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_factories/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgent.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentCompaction.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentConversation.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentParser.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentSystemContext.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentToolkit.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IAgentVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/IRealtimeAgent.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agents/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOAuth20AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOAuth20Login.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOAuth21AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOAuth21Login.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOIDC10AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/IOIDC10Login.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/auth_idp/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IBalanceTransfers.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IBillingProvider.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/ICustomers.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IHostedCheckout.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IInvoicing.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IMarketplace.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IOnlinePayments.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IPaymentMethods.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IPayouts.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IProductsPrices.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IPromotions.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IRefunds.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IReports.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IRisk.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/ISubscriptions.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/IWebhooks.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/enums.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/billing/protos.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/certs/ICertService.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/certs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/ICallableChain.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChain.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChainContext.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChainContextLoader.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChainDependencyResolver.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChainFactory.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/IChainStep.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chains/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chunkers/IChunker.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/chunkers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/cipher_suites/ICipherSuite.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/cipher_suites/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/cipher_suites/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/conversations/ICompactingConversation.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/conversations/IConversation.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/conversations/IMaxSize.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/conversations/ISystemContext.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/conversations/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/crypto/ICrypto.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/crypto/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/crypto/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/dataconnectors/IDataConnector.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/dataconnectors/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/distances/IDistanceSimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/distances/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/document_stores/IDocumentRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/document_stores/IDocumentStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/document_stores/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/documents/IDocument.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/documents/IExperimentDocument.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/documents/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/embeddings/IFeature.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/embeddings/ISaveModel.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/embeddings/IVectorize.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/embeddings/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/ensembles/IEnsemble.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/ensembles/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluator_pools/IEvaluatorPool.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluator_pools/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluator_results/IEvalResult.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluator_results/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluators/IEvaluate.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/evaluators/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/factories/IFactory.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/factories/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/git_filters/IGitFilter.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/git_filters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/image_gens/IGenImage.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/image_gens/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/inner_products/IInnerProduct.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/inner_products/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/key_providers/IKeyProvider.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/key_providers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/key_providers/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/keys.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveCapabilities.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveConfig.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveEvent.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveInput.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveModel.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveSession.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/ILiveToolCall.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/live_models/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/llms/IFit.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/llms/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/llms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/logger_formatters/IFormatter.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/logger_formatters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/logger_handlers/IHandler.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/logger_handlers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/loggers/ILogger.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/loggers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/matrices/IMatrix.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/matrices/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/measurements/IMeasurement.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/measurements/IMeasurementAggregate.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/measurements/IMeasurementCalculate.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/measurements/IThreshold.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/measurements/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/messages/IMessage.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/messages/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/metrics/IMetric.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/metrics/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/middlewares/IMiddleware.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/middlewares/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/IModelCatalog.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/IModelProvider.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/IProviderAuth.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/IProviderEndpoint.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/IProviderErrorMapper.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/model_providers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/models/IModel.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/models/IModelCapabilities.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/models/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/mre_crypto/IMreCrypto.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/mre_crypto/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/mre_crypto/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/norms/INorm.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/norms/IUseInnerProduct.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/norms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/ocrs/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/ocrs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/parsers/IParser.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/parsers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pipelines/IPipeline.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pipelines/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pop/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pop/ipop.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pop/isigner.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pop/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/processes/IProcessBackend.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/processes/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/programs/IProgram.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/programs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompt_templates/IPromptTemplate.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompt_templates/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompts/IPrompt.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompts/IPromptMatrix.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompts/ITemplate.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/prompts/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pseudometrics/IPseudometric.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/pseudometrics/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/publishers/IPublish.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/publishers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/rate_limits/IRateLimit.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/rate_limits/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/retrievers/IRetriever.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/retrievers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/run_stores/IRunStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/run_stores/RunCheckpoint.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/run_stores/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/run_stores/errors.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/schema_converters/ISchemaConvert.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/schema_converters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/seminorms/ISeminorm.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/seminorms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/service_registries/IServiceRegistry.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/service_registries/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/signing/ISigning.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/signing/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/signing/intent.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/signing/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/similarities/ISimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/similarities/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/skills/ISkill.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/skills/ISkillLoader.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/skills/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/sst/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/sst/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/state/IState.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/state/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/storage/IStorageAdapter.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/storage/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/swarm_apis/IAgentRegistrationAPI.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/swarm_apis/ISwarmAPI.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/swarm_apis/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/swarms/ISwarm.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/swarms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/task_mgmt_strategies/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tensors/ITensor.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tensors/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tokens/ITokenService.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tokens/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tool_llms/IToolPredict.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tool_llms/IToolStepModel.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tool_llms/ToolStep.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tool_llms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/toolkits/IToolkit.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/toolkits/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tools/IParameter.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tools/ITool.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tools/IToolExecutor.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tools/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tracing/IChainTracer.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tracing/ITraceContext.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tracing/ITracer.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tracing/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/ITransport.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/capabilities.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/enums.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/http_errors.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_anycast.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_appserver.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_bidirectional_stream.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_broadcast.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_http_client.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_http_response.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_http_retry_policy.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_http_stream_response.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_managed_http_client.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_multicast.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_multiplex.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_peer.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_runnable.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_unicast.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_websocket_client.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_websocket_connection.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/transports/i_websocket_multiplex.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tts/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tts/ITextToSpeech.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/tts/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/utils/ITransactional.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/utils/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/ICloudVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IPersistentVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/ISimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IVectorNorm.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IVectorStoreComparator.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IVectorStoreRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/IVectorStoreSaveLoad.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vector_stores/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vectors/IVector.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vectors/IVectorMeta.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vectors/IVectorProduct.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vectors/IVectorTransform.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vectors/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/video_lipsync/ILipSync.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/video_lipsync/IQueuedLipSync.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/video_lipsync/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/video_lipsync/types.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vlms/IPredictVision.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/vlms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/xmp/IEmbedXMP.py +0 -0
- {swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/xmp/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_core
|
|
3
|
-
Version: 0.11.0.
|
|
3
|
+
Version: 0.11.0.dev8
|
|
4
4
|
Summary: Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -44,6 +44,14 @@ Description-Content-Type: text/markdown
|
|
|
44
44
|
|
|
45
45
|
# Swarmauri Core
|
|
46
46
|
|
|
47
|
+
## Composable execution contracts
|
|
48
|
+
|
|
49
|
+
The `executions`, `tasks`, `workflows`, `permissions`, `delegation` and
|
|
50
|
+
`invocations` namespaces define driver-neutral lifecycle, admitted task
|
|
51
|
+
authority and invocation contracts. Existing service registries, task
|
|
52
|
+
assignment, transports and token interfaces remain in use.
|
|
53
|
+
See the [composition guide](../../docs/examples/composable-execution/README.md).
|
|
54
|
+
|
|
47
55
|
`swarmauri_core` provides the interface contracts for the Swarmauri SDK. It is the package component authors use when they need stable abstract interfaces for agents, tools, LLMs, parsers, vector stores, cryptography, signing, key providers, transports, middleware, billing, storage, XMP, and other composable intelligence infrastructure components.
|
|
48
56
|
|
|
49
57
|
## Why Swarmauri Core?
|
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
# Swarmauri Core
|
|
18
18
|
|
|
19
|
+
## Composable execution contracts
|
|
20
|
+
|
|
21
|
+
The `executions`, `tasks`, `workflows`, `permissions`, `delegation` and
|
|
22
|
+
`invocations` namespaces define driver-neutral lifecycle, admitted task
|
|
23
|
+
authority and invocation contracts. Existing service registries, task
|
|
24
|
+
assignment, transports and token interfaces remain in use.
|
|
25
|
+
See the [composition guide](../../docs/examples/composable-execution/README.md).
|
|
26
|
+
|
|
19
27
|
`swarmauri_core` provides the interface contracts for the Swarmauri SDK. It is the package component authors use when they need stable abstract interfaces for agents, tools, LLMs, parsers, vector stores, cryptography, signing, key providers, transports, middleware, billing, storage, XMP, and other composable intelligence infrastructure components.
|
|
20
28
|
|
|
21
29
|
## Why Swarmauri Core?
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_core"
|
|
3
|
-
version = "0.11.0.
|
|
3
|
+
version = "0.11.0.dev8"
|
|
4
4
|
description = "Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components."
|
|
5
5
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""IDelegationService contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import Grant, DelegatedCredential
|
|
6
|
+
from swarmauri_core.permissions import Permission
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class IDelegationService(ABC):
|
|
10
|
+
"""Define the interchangeable DelegationService contract."""
|
|
11
|
+
|
|
12
|
+
@abstractmethod
|
|
13
|
+
def root(
|
|
14
|
+
self,
|
|
15
|
+
task_id: str,
|
|
16
|
+
holder: str,
|
|
17
|
+
permissions: tuple[Permission, ...],
|
|
18
|
+
remaining_depth: int = 3,
|
|
19
|
+
) -> Grant: ...
|
|
20
|
+
|
|
21
|
+
@abstractmethod
|
|
22
|
+
def delegate(
|
|
23
|
+
self,
|
|
24
|
+
parent_id: str,
|
|
25
|
+
actor: str,
|
|
26
|
+
recipient: str,
|
|
27
|
+
permissions: tuple[Permission, ...],
|
|
28
|
+
) -> Grant: ...
|
|
29
|
+
|
|
30
|
+
@abstractmethod
|
|
31
|
+
def validate(
|
|
32
|
+
self, grant_id: str, holder: str, permission: Permission
|
|
33
|
+
) -> Grant: ...
|
|
34
|
+
|
|
35
|
+
@abstractmethod
|
|
36
|
+
def revoke(self, grant_id: str) -> Grant: ...
|
|
37
|
+
|
|
38
|
+
@abstractmethod
|
|
39
|
+
async def credential(
|
|
40
|
+
self, grant_id: str, actor: str, audience: str, permission: Permission
|
|
41
|
+
) -> DelegatedCredential: ...
|
|
42
|
+
|
|
43
|
+
@abstractmethod
|
|
44
|
+
async def verify(
|
|
45
|
+
self, token: str, audience: str, permission: Permission
|
|
46
|
+
) -> Grant: ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""IGrantStore contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import Grant
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IGrantStore(ABC):
|
|
9
|
+
"""Define the interchangeable GrantStore contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def create(self, grant: Grant) -> None: ...
|
|
13
|
+
|
|
14
|
+
@abstractmethod
|
|
15
|
+
def load(self, grant_id: str) -> Grant: ...
|
|
16
|
+
|
|
17
|
+
@abstractmethod
|
|
18
|
+
def save(self, grant: Grant) -> Grant: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Shared delegation contracts and immutable records."""
|
|
2
|
+
|
|
3
|
+
from .models import Grant, DelegatedCredential, GrantConflictError
|
|
4
|
+
from .IGrantStore import IGrantStore
|
|
5
|
+
from .IDelegationService import IDelegationService
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"IGrantStore",
|
|
9
|
+
"IDelegationService",
|
|
10
|
+
"Grant",
|
|
11
|
+
"DelegatedCredential",
|
|
12
|
+
"GrantConflictError",
|
|
13
|
+
]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Authority records independent of credential format."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
from swarmauri_core.permissions import Permission
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(frozen=True)
|
|
9
|
+
class Grant:
|
|
10
|
+
"""Authorize a holder within a task and optional parent grant."""
|
|
11
|
+
|
|
12
|
+
grant_id: str
|
|
13
|
+
task_id: str
|
|
14
|
+
subject: str
|
|
15
|
+
holder: str
|
|
16
|
+
tenant: str
|
|
17
|
+
permissions: tuple[Permission, ...]
|
|
18
|
+
expires_at: int
|
|
19
|
+
remaining_depth: int
|
|
20
|
+
parent_id: str | None = None
|
|
21
|
+
revoked: bool = False
|
|
22
|
+
revision: int = 0
|
|
23
|
+
|
|
24
|
+
def __post_init__(self):
|
|
25
|
+
if self.remaining_depth < 0:
|
|
26
|
+
raise ValueError("Delegation depth must be non-negative")
|
|
27
|
+
if not all((self.grant_id, self.task_id, self.subject, self.holder)):
|
|
28
|
+
raise ValueError("Grant identity fields must be non-empty")
|
|
29
|
+
if any(p.tenant != self.tenant for p in self.permissions):
|
|
30
|
+
raise ValueError("Grant permissions must belong to its tenant")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@dataclass(frozen=True)
|
|
34
|
+
class DelegatedCredential:
|
|
35
|
+
"""Return a credential alongside its server-side authority record."""
|
|
36
|
+
|
|
37
|
+
grant: Grant
|
|
38
|
+
token: str
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class GrantConflictError(RuntimeError):
|
|
42
|
+
"""Reject a duplicate grant or stale revision."""
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""IExecutionController contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import ExecutionSnapshot
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IExecutionController(ABC):
|
|
9
|
+
"""Define the interchangeable ExecutionController contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def start(
|
|
13
|
+
self,
|
|
14
|
+
task_id: str,
|
|
15
|
+
driver: str,
|
|
16
|
+
state: dict | None = None,
|
|
17
|
+
parent_id: str | None = None,
|
|
18
|
+
) -> ExecutionSnapshot: ...
|
|
19
|
+
|
|
20
|
+
@abstractmethod
|
|
21
|
+
def get(self, execution_id: str) -> ExecutionSnapshot: ...
|
|
22
|
+
|
|
23
|
+
@abstractmethod
|
|
24
|
+
async def advance(self, execution_id: str) -> ExecutionSnapshot: ...
|
|
25
|
+
|
|
26
|
+
@abstractmethod
|
|
27
|
+
def pause(self, execution_id: str) -> ExecutionSnapshot: ...
|
|
28
|
+
|
|
29
|
+
@abstractmethod
|
|
30
|
+
def resume(self, execution_id: str) -> ExecutionSnapshot: ...
|
|
31
|
+
|
|
32
|
+
@abstractmethod
|
|
33
|
+
def stop(self, execution_id: str) -> ExecutionSnapshot: ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""IExecutionDriver contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import DriverStep, ExecutionCapabilities, ExecutionSnapshot
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IExecutionDriver(ABC):
|
|
9
|
+
"""Define the interchangeable ExecutionDriver contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def supports(self) -> ExecutionCapabilities: ...
|
|
13
|
+
|
|
14
|
+
@abstractmethod
|
|
15
|
+
async def step(self, snapshot: ExecutionSnapshot) -> DriverStep: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Shared executions contracts and immutable records."""
|
|
2
|
+
|
|
3
|
+
from .models import ExecutionCapabilities, ExecutionSnapshot, DriverStep
|
|
4
|
+
from .IExecutionDriver import IExecutionDriver
|
|
5
|
+
from .IExecutionController import IExecutionController
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"IExecutionDriver",
|
|
9
|
+
"IExecutionController",
|
|
10
|
+
"ExecutionCapabilities",
|
|
11
|
+
"ExecutionSnapshot",
|
|
12
|
+
"DriverStep",
|
|
13
|
+
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Driver-neutral execution control records."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@dataclass(frozen=True)
|
|
8
|
+
class ExecutionCapabilities:
|
|
9
|
+
"""Describe cooperative control supported by an execution driver."""
|
|
10
|
+
|
|
11
|
+
pause: bool = True
|
|
12
|
+
resume: bool = True
|
|
13
|
+
stop: bool = True
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(frozen=True)
|
|
17
|
+
class ExecutionSnapshot:
|
|
18
|
+
"""Persist scheduling state, lifecycle intent and a driver identity."""
|
|
19
|
+
|
|
20
|
+
execution_id: str
|
|
21
|
+
task_id: str
|
|
22
|
+
driver: str
|
|
23
|
+
status: str = "ready"
|
|
24
|
+
state: dict[str, Any] = field(default_factory=dict)
|
|
25
|
+
result: Any = None
|
|
26
|
+
error: str | None = None
|
|
27
|
+
revision: int = 0
|
|
28
|
+
parent_id: str | None = None
|
|
29
|
+
|
|
30
|
+
def __post_init__(self):
|
|
31
|
+
if self.status not in {
|
|
32
|
+
"ready",
|
|
33
|
+
"running",
|
|
34
|
+
"pausing",
|
|
35
|
+
"paused",
|
|
36
|
+
"stopping",
|
|
37
|
+
"stopped",
|
|
38
|
+
"waiting",
|
|
39
|
+
"completed",
|
|
40
|
+
"failed",
|
|
41
|
+
}:
|
|
42
|
+
raise ValueError("Invalid execution status")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@dataclass(frozen=True)
|
|
46
|
+
class DriverStep:
|
|
47
|
+
"""Return the next durable scheduling boundary."""
|
|
48
|
+
|
|
49
|
+
state: dict[str, Any]
|
|
50
|
+
completed: bool = False
|
|
51
|
+
waiting: bool = False
|
|
52
|
+
result: Any = None
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""IAuthorityStrategy contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import InvocationRequest, InvocationContext
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IAuthorityStrategy(ABC):
|
|
9
|
+
"""Define the interchangeable AuthorityStrategy contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
async def credential(
|
|
13
|
+
self,
|
|
14
|
+
request: InvocationRequest,
|
|
15
|
+
context: InvocationContext,
|
|
16
|
+
audience: str,
|
|
17
|
+
) -> str: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""IInvoker contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import InvocationRequest, InvocationContext, InvocationResult
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IInvoker(ABC):
|
|
9
|
+
"""Define the interchangeable Invoker contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
async def invoke(
|
|
13
|
+
self, request: InvocationRequest, context: InvocationContext
|
|
14
|
+
) -> InvocationResult: ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Shared invocations contracts and immutable records."""
|
|
2
|
+
|
|
3
|
+
from .models import (
|
|
4
|
+
InvocationContext,
|
|
5
|
+
EdgeAuthorizationBinding,
|
|
6
|
+
InvocationRequest,
|
|
7
|
+
InvocationResult,
|
|
8
|
+
)
|
|
9
|
+
from .IInvoker import IInvoker
|
|
10
|
+
from .IAuthorityStrategy import IAuthorityStrategy
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"IInvoker",
|
|
14
|
+
"IAuthorityStrategy",
|
|
15
|
+
"InvocationContext",
|
|
16
|
+
"EdgeAuthorizationBinding",
|
|
17
|
+
"InvocationRequest",
|
|
18
|
+
"InvocationResult",
|
|
19
|
+
]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Typed invocation envelopes; authority remains outside model arguments."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from swarmauri_core.permissions import Permission
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(frozen=True)
|
|
10
|
+
class InvocationContext:
|
|
11
|
+
"""Carry host-established identity and task authority."""
|
|
12
|
+
|
|
13
|
+
actor: str
|
|
14
|
+
task_id: str
|
|
15
|
+
grant_id: str | None = None
|
|
16
|
+
execution_id: str | None = None
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass(frozen=True)
|
|
20
|
+
class EdgeAuthorizationBinding:
|
|
21
|
+
"""Configure an edge's caller, target and permission ceiling."""
|
|
22
|
+
|
|
23
|
+
edge_id: str
|
|
24
|
+
caller: str
|
|
25
|
+
service: str
|
|
26
|
+
operation: str
|
|
27
|
+
permissions: tuple[Permission, ...]
|
|
28
|
+
delegated: bool = True
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@dataclass(frozen=True)
|
|
32
|
+
class InvocationRequest:
|
|
33
|
+
"""Describe one attempt; invocation_id is the idempotency key."""
|
|
34
|
+
|
|
35
|
+
invocation_id: str
|
|
36
|
+
edge_id: str
|
|
37
|
+
task_id: str
|
|
38
|
+
operation: str
|
|
39
|
+
permission: Permission
|
|
40
|
+
arguments: dict[str, Any] = field(default_factory=dict)
|
|
41
|
+
parent_execution_id: str | None = None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@dataclass(frozen=True)
|
|
45
|
+
class InvocationResult:
|
|
46
|
+
"""Return a result correlated with the submitted invocation."""
|
|
47
|
+
|
|
48
|
+
invocation_id: str
|
|
49
|
+
value: Any
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""IPermissionPolicy contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import AuthorizationDecision, Permission
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IPermissionPolicy(ABC):
|
|
9
|
+
"""Define the interchangeable PermissionPolicy contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def authorize(
|
|
13
|
+
self, available: tuple[Permission, ...], requested: Permission
|
|
14
|
+
) -> AuthorizationDecision: ...
|
|
15
|
+
|
|
16
|
+
@abstractmethod
|
|
17
|
+
def attenuate(
|
|
18
|
+
self,
|
|
19
|
+
available: tuple[Permission, ...],
|
|
20
|
+
requested: tuple[Permission, ...],
|
|
21
|
+
) -> tuple[Permission, ...]: ...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Transport-independent permissions and authorization decisions."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@dataclass(frozen=True)
|
|
7
|
+
class Permission:
|
|
8
|
+
"""Allow one exact action on one exact resource within a tenant."""
|
|
9
|
+
|
|
10
|
+
action: str
|
|
11
|
+
resource: str
|
|
12
|
+
tenant: str
|
|
13
|
+
|
|
14
|
+
def __post_init__(self):
|
|
15
|
+
if not all(
|
|
16
|
+
isinstance(value, str) and value
|
|
17
|
+
for value in (self.action, self.resource, self.tenant)
|
|
18
|
+
):
|
|
19
|
+
raise ValueError("Permission fields must be non-empty")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(frozen=True)
|
|
23
|
+
class AuthorizationDecision:
|
|
24
|
+
"""Return a decision without silently granting missing permissions."""
|
|
25
|
+
|
|
26
|
+
allowed: bool
|
|
27
|
+
reason: str = ""
|
|
@@ -9,8 +9,8 @@ class ITaskMgmtStrategy(ABC):
|
|
|
9
9
|
def assign_task(
|
|
10
10
|
self,
|
|
11
11
|
task: dict[str, Any],
|
|
12
|
-
agent_factory: Callable,
|
|
13
|
-
service_registry: Callable,
|
|
12
|
+
agent_factory: Callable | None = None,
|
|
13
|
+
service_registry: Callable | None = None,
|
|
14
14
|
) -> str:
|
|
15
15
|
"""
|
|
16
16
|
Abstract method to assign a task to a service.
|
|
@@ -35,7 +35,9 @@ class ITaskMgmtStrategy(ABC):
|
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
37
|
@abstractmethod
|
|
38
|
-
def process_tasks(
|
|
38
|
+
def process_tasks(
|
|
39
|
+
self, service_registry: Callable, transport: Callable
|
|
40
|
+
) -> None:
|
|
39
41
|
"""
|
|
40
42
|
Abstract method to process a task.
|
|
41
43
|
"""
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""ITaskManager contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import TaskRecord
|
|
6
|
+
from swarmauri_core.permissions import Permission
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ITaskManager(ABC):
|
|
10
|
+
"""Define the interchangeable TaskManager contract."""
|
|
11
|
+
|
|
12
|
+
@abstractmethod
|
|
13
|
+
def start(
|
|
14
|
+
self,
|
|
15
|
+
subject: str,
|
|
16
|
+
tenant: str,
|
|
17
|
+
permissions: tuple[Permission, ...],
|
|
18
|
+
expires_at: int,
|
|
19
|
+
) -> TaskRecord: ...
|
|
20
|
+
|
|
21
|
+
@abstractmethod
|
|
22
|
+
def pause(self, task_id: str) -> TaskRecord: ...
|
|
23
|
+
|
|
24
|
+
@abstractmethod
|
|
25
|
+
def resume(self, task_id: str) -> TaskRecord: ...
|
|
26
|
+
|
|
27
|
+
@abstractmethod
|
|
28
|
+
def stop(self, task_id: str) -> TaskRecord: ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""ITaskStore contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import TaskRecord
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ITaskStore(ABC):
|
|
9
|
+
"""Define the interchangeable TaskStore contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def create(self, task: TaskRecord) -> None: ...
|
|
13
|
+
|
|
14
|
+
@abstractmethod
|
|
15
|
+
def load(self, task_id: str) -> TaskRecord: ...
|
|
16
|
+
|
|
17
|
+
@abstractmethod
|
|
18
|
+
def save(self, task: TaskRecord) -> TaskRecord: ...
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Versioned business tasks, separate from execution checkpoints."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
from swarmauri_core.permissions import Permission
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(frozen=True)
|
|
9
|
+
class TaskRecord:
|
|
10
|
+
"""Persist the admitted authority and lifecycle intent for one task."""
|
|
11
|
+
|
|
12
|
+
task_id: str
|
|
13
|
+
subject: str
|
|
14
|
+
tenant: str
|
|
15
|
+
permissions: tuple[Permission, ...]
|
|
16
|
+
expires_at: int
|
|
17
|
+
status: str = "active"
|
|
18
|
+
revision: int = 0
|
|
19
|
+
execution_ids: tuple[str, ...] = ()
|
|
20
|
+
|
|
21
|
+
def __post_init__(self):
|
|
22
|
+
if self.status not in {"active", "paused", "stopped"}:
|
|
23
|
+
raise ValueError("Invalid task status")
|
|
24
|
+
if not self.task_id or not self.subject or not self.tenant:
|
|
25
|
+
raise ValueError("Task identity fields must be non-empty")
|
|
26
|
+
if any(p.tenant != self.tenant for p in self.permissions):
|
|
27
|
+
raise ValueError("Task permissions must belong to its tenant")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TaskConflictError(RuntimeError):
|
|
31
|
+
"""Reject an insert conflict or stale task revision."""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""IWorkflowDefinition contract."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
|
|
5
|
+
from .models import GraphDefinition
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IWorkflowDefinition(ABC):
|
|
9
|
+
"""Define the interchangeable WorkflowDefinition contract."""
|
|
10
|
+
|
|
11
|
+
@abstractmethod
|
|
12
|
+
def definition(self) -> GraphDefinition: ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Shared workflows contracts and immutable records."""
|
|
2
|
+
|
|
3
|
+
from .models import (
|
|
4
|
+
NodeDefinition,
|
|
5
|
+
EdgeDefinition,
|
|
6
|
+
GraphDefinition,
|
|
7
|
+
ServiceBinding,
|
|
8
|
+
)
|
|
9
|
+
from .IWorkflowDefinition import IWorkflowDefinition
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"IWorkflowDefinition",
|
|
13
|
+
"NodeDefinition",
|
|
14
|
+
"EdgeDefinition",
|
|
15
|
+
"GraphDefinition",
|
|
16
|
+
"ServiceBinding",
|
|
17
|
+
]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""Versioned graph structure and service bindings."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@dataclass(frozen=True)
|
|
7
|
+
class NodeDefinition:
|
|
8
|
+
"""Bind a graph-local node to a service-registry name."""
|
|
9
|
+
|
|
10
|
+
node_id: str
|
|
11
|
+
service: str
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class EdgeDefinition:
|
|
16
|
+
"""Connect graph nodes without granting authority."""
|
|
17
|
+
|
|
18
|
+
edge_id: str
|
|
19
|
+
source: str
|
|
20
|
+
target: str
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@dataclass(frozen=True)
|
|
24
|
+
class GraphDefinition:
|
|
25
|
+
"""Describe a graph independently of scheduling or transport."""
|
|
26
|
+
|
|
27
|
+
graph_id: str
|
|
28
|
+
version: str
|
|
29
|
+
nodes: tuple[NodeDefinition, ...]
|
|
30
|
+
edges: tuple[EdgeDefinition, ...]
|
|
31
|
+
|
|
32
|
+
def __post_init__(self):
|
|
33
|
+
ids = [n.node_id for n in self.nodes]
|
|
34
|
+
edge_ids = [e.edge_id for e in self.edges]
|
|
35
|
+
if len(ids) != len(set(ids)) or len(edge_ids) != len(set(edge_ids)):
|
|
36
|
+
raise ValueError("Graph identifiers must be unique")
|
|
37
|
+
if any(e.source not in ids or e.target not in ids for e in self.edges):
|
|
38
|
+
raise ValueError("Edge references an unknown node")
|
|
39
|
+
|
|
40
|
+
def edge(self, edge_id: str) -> EdgeDefinition:
|
|
41
|
+
for edge in self.edges:
|
|
42
|
+
if edge.edge_id == edge_id:
|
|
43
|
+
return edge
|
|
44
|
+
raise KeyError(edge_id)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@dataclass(frozen=True)
|
|
48
|
+
class ServiceBinding:
|
|
49
|
+
"""Validate service details obtained through IServiceRegistry."""
|
|
50
|
+
|
|
51
|
+
service: str
|
|
52
|
+
subject: str
|
|
53
|
+
audience: str
|
|
54
|
+
endpoint: str
|
|
55
|
+
protocol: str = "local"
|
|
56
|
+
|
|
57
|
+
def __post_init__(self):
|
|
58
|
+
if not all((self.service, self.subject, self.audience, self.endpoint)):
|
|
59
|
+
raise ValueError("Service binding fields must be non-empty")
|
|
60
|
+
if self.protocol not in {"local", "http"}:
|
|
61
|
+
raise ValueError("Unsupported invocation protocol")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev7 → swarmauri_core-0.11.0.dev8}/swarmauri_core/agent_apis/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|