swarmauri-core 0.11.0.dev5__tar.gz → 0.11.0.dev7__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.dev5 → swarmauri_core-0.11.0.dev7}/PKG-INFO +6 -1
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/README.md +5 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/pyproject.toml +1 -2
- swarmauri_core-0.11.0.dev7/swarmauri_core/agents/IAgentCompaction.py +32 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/agents/__init__.py +5 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/conversations/ICompactingConversation.py +44 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/processes/IProcessBackend.py +75 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/processes/__init__.py +15 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/run_stores/IRunStore.py +22 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/run_stores/RunCheckpoint.py +10 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/run_stores/__init__.py +5 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/run_stores/errors.py +2 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/tool_llms/IToolStepModel.py +29 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/tool_llms/ToolStep.py +29 -0
- swarmauri_core-0.11.0.dev7/swarmauri_core/tool_llms/__init__.py +4 -0
- swarmauri_core-0.11.0.dev5/swarmauri_core/agents/__init__.py +0 -4
- swarmauri_core-0.11.0.dev5/swarmauri_core/vlms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/LICENSE +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_apis/IAgentCommands.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_apis/IAgentRouterCRUD.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_apis/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_factories/IExportConf.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_factories/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgent.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentConversation.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentParser.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentSystemContext.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentToolkit.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IRealtimeAgent.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth20AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth20Login.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth21AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth21Login.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOIDC10AppClient.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOIDC10Login.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IBalanceTransfers.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IBillingProvider.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/ICustomers.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IHostedCheckout.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IInvoicing.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IMarketplace.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IOnlinePayments.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPaymentMethods.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPayouts.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IProductsPrices.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPromotions.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IRefunds.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IReports.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IRisk.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/ISubscriptions.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IWebhooks.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/enums.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/protos.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/certs/ICertService.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/certs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/ICallableChain.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChain.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainContext.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainContextLoader.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainDependencyResolver.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainFactory.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainStep.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chunkers/IChunker.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chunkers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/cipher_suites/ICipherSuite.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/cipher_suites/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/cipher_suites/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/IConversation.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/IMaxSize.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/ISystemContext.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/crypto/ICrypto.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/crypto/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/crypto/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/dataconnectors/IDataConnector.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/dataconnectors/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/distances/IDistanceSimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/distances/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/document_stores/IDocumentRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/document_stores/IDocumentStore.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/document_stores/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/documents/IDocument.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/documents/IExperimentDocument.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/documents/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/IFeature.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/ISaveModel.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/IVectorize.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ensembles/IEnsemble.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ensembles/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluator_pools/IEvaluatorPool.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluator_pools/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluator_results/IEvalResult.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluator_results/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluators/IEvaluate.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluators/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/factories/IFactory.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/factories/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/git_filters/IGitFilter.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/git_filters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/image_gens/IGenImage.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/image_gens/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/inner_products/IInnerProduct.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/inner_products/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/key_providers/IKeyProvider.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/key_providers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/key_providers/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/keys.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveCapabilities.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveConfig.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveEvent.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveInput.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveModel.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveSession.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveToolCall.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/llms/IFit.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/llms/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/llms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/logger_formatters/IFormatter.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/logger_formatters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/logger_handlers/IHandler.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/logger_handlers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/loggers/ILogger.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/loggers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/matrices/IMatrix.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/matrices/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/measurements/IMeasurement.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/measurements/IMeasurementAggregate.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/measurements/IMeasurementCalculate.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/measurements/IThreshold.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/measurements/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/messages/IMessage.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/messages/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/metrics/IMetric.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/metrics/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/middlewares/IMiddleware.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/middlewares/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/IModelCatalog.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/IModelProvider.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/IProviderAuth.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/IProviderEndpoint.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/IProviderErrorMapper.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/model_providers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/models/IModel.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/models/IModelCapabilities.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/models/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/mre_crypto/IMreCrypto.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/mre_crypto/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/mre_crypto/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/norms/INorm.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/norms/IUseInnerProduct.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/norms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ocrs/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ocrs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/parsers/IParser.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/parsers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pipelines/IPipeline.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pipelines/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pop/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pop/ipop.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pop/isigner.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pop/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/programs/IProgram.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/programs/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompt_templates/IPromptTemplate.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompt_templates/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompts/IPrompt.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompts/IPromptMatrix.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompts/ITemplate.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/prompts/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pseudometrics/IPseudometric.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/pseudometrics/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/publishers/IPublish.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/publishers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/rate_limits/IRateLimit.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/rate_limits/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/retrievers/IRetriever.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/retrievers/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/schema_converters/ISchemaConvert.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/schema_converters/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/seminorms/ISeminorm.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/seminorms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/service_registries/IServiceRegistry.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/service_registries/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/signing/ISigning.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/signing/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/signing/intent.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/signing/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/similarities/ISimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/similarities/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/skills/ISkill.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/skills/ISkillLoader.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/skills/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/sst/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/sst/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/state/IState.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/state/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/storage/IStorageAdapter.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/storage/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/swarm_apis/IAgentRegistrationAPI.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/swarm_apis/ISwarmAPI.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/swarm_apis/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/swarms/ISwarm.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/swarms/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/task_mgmt_strategies/ITaskMgmtStrategy.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/task_mgmt_strategies/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tensors/ITensor.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tensors/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tokens/ITokenService.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tokens/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tool_llms/IToolPredict.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/toolkits/IToolkit.py +0 -0
- {swarmauri_core-0.11.0.dev5/swarmauri_core/tool_llms → swarmauri_core-0.11.0.dev7/swarmauri_core/toolkits}/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tools/IParameter.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tools/ITool.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tools/IToolExecutor.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tools/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tracing/IChainTracer.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tracing/ITraceContext.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tracing/ITracer.py +0 -0
- {swarmauri_core-0.11.0.dev5/swarmauri_core/toolkits → swarmauri_core-0.11.0.dev7/swarmauri_core/tracing}/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/ITransport.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/capabilities.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/enums.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/http_errors.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_anycast.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_appserver.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_bidirectional_stream.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_broadcast.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_http_client.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_http_response.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_http_retry_policy.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_http_stream_response.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_managed_http_client.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_multicast.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_multiplex.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_peer.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_runnable.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_unicast.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_websocket_client.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_websocket_connection.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/transports/i_websocket_multiplex.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tts/IPredict.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tts/ITextToSpeech.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/tts/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/utils/ITransactional.py +0 -0
- {swarmauri_core-0.11.0.dev5/swarmauri_core/tracing → swarmauri_core-0.11.0.dev7/swarmauri_core/utils}/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/ICloudVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IPersistentVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/ISimilarity.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IVectorNorm.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IVectorStore.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IVectorStoreComparator.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IVectorStoreRetrieve.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/IVectorStoreSaveLoad.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vector_stores/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vectors/IVector.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vectors/IVectorMeta.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vectors/IVectorProduct.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vectors/IVectorTransform.py +0 -0
- {swarmauri_core-0.11.0.dev5/swarmauri_core/utils → swarmauri_core-0.11.0.dev7/swarmauri_core/vectors}/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/video_lipsync/ILipSync.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/video_lipsync/IQueuedLipSync.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/video_lipsync/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/video_lipsync/types.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/vlms/IPredictVision.py +0 -0
- {swarmauri_core-0.11.0.dev5/swarmauri_core/vectors → swarmauri_core-0.11.0.dev7/swarmauri_core/vlms}/__init__.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/xmp/IEmbedXMP.py +0 -0
- {swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/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.dev7
|
|
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
|
|
@@ -197,5 +197,10 @@ Apache-2.0
|
|
|
197
197
|
|
|
198
198
|
When adding or changing a core interface, keep the contract narrow, update downstream base classes where needed, add focused tests, and follow the [Swarmauri SDK contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md).
|
|
199
199
|
|
|
200
|
+
## Run checkpoints and tool steps
|
|
200
201
|
|
|
202
|
+
`swarmauri_core.run_stores` defines `IRunStore`, `RunCheckpoint`, and
|
|
203
|
+
`RunConflictError`. Checkpoints have an opaque text payload and a revision
|
|
204
|
+
guarded by an atomic save. `swarmauri_core.tool_llms.IToolStepModel` is the
|
|
205
|
+
opt-in contract for proposing tool calls and formatting their results.
|
|
201
206
|
|
|
@@ -169,4 +169,9 @@ Apache-2.0
|
|
|
169
169
|
|
|
170
170
|
When adding or changing a core interface, keep the contract narrow, update downstream base classes where needed, add focused tests, and follow the [Swarmauri SDK contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md).
|
|
171
171
|
|
|
172
|
+
## Run checkpoints and tool steps
|
|
172
173
|
|
|
174
|
+
`swarmauri_core.run_stores` defines `IRunStore`, `RunCheckpoint`, and
|
|
175
|
+
`RunConflictError`. Checkpoints have an opaque text payload and a revision
|
|
176
|
+
guarded by an atomic save. `swarmauri_core.tool_llms.IToolStepModel` is the
|
|
177
|
+
opt-in contract for proposing tool calls and formatting their results.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_core"
|
|
3
|
-
version = "0.11.0.
|
|
3
|
+
version = "0.11.0.dev7"
|
|
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"
|
|
@@ -45,7 +45,6 @@ requires-python = ">=3.10,<3.15"
|
|
|
45
45
|
|
|
46
46
|
[dependency-groups]
|
|
47
47
|
dev = [
|
|
48
|
-
"tomli>=2.0; python_version < '3.11'",
|
|
49
48
|
"flake8>=7.0",
|
|
50
49
|
"pytest>=8.0",
|
|
51
50
|
"pytest-asyncio>=0.24.0",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from collections.abc import Callable, Sequence
|
|
3
|
+
|
|
4
|
+
from swarmauri_core.messages.IMessage import IMessage
|
|
5
|
+
|
|
6
|
+
CountInputTokens = Callable[[Sequence[IMessage]], int]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class IAgentCompaction(ABC):
|
|
10
|
+
@abstractmethod
|
|
11
|
+
def compact(self, *, count_input_tokens: CountInputTokens) -> bool:
|
|
12
|
+
"""Summarize eligible history and apply it if it reduces input size."""
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
@abstractmethod
|
|
16
|
+
async def acompact(self, *, count_input_tokens: CountInputTokens) -> bool:
|
|
17
|
+
"""Asynchronously summarize and apply eligible history."""
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
@abstractmethod
|
|
21
|
+
def compact_if_needed(
|
|
22
|
+
self, *, count_input_tokens: CountInputTokens
|
|
23
|
+
) -> bool:
|
|
24
|
+
"""Compact when the input meets the configured threshold."""
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
@abstractmethod
|
|
28
|
+
async def acompact_if_needed(
|
|
29
|
+
self, *, count_input_tokens: CountInputTokens
|
|
30
|
+
) -> bool:
|
|
31
|
+
"""Asynchronously compact when the input meets the threshold."""
|
|
32
|
+
pass
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from abc import abstractmethod
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
|
|
4
|
+
from swarmauri_core.conversations.IConversation import IConversation
|
|
5
|
+
from swarmauri_core.messages.IMessage import IMessage
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(frozen=True)
|
|
9
|
+
class CompactionPlan:
|
|
10
|
+
"""A snapshot of the messages and rolling summary at planning time."""
|
|
11
|
+
|
|
12
|
+
messages: tuple[IMessage, ...]
|
|
13
|
+
previous_summary: str | None
|
|
14
|
+
start: int
|
|
15
|
+
stop: int
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def older_messages(self) -> tuple[IMessage, ...]:
|
|
19
|
+
return self.messages[self.start : self.stop]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ICompactingConversation(IConversation):
|
|
23
|
+
@property
|
|
24
|
+
@abstractmethod
|
|
25
|
+
def compaction_trigger_tokens(self) -> int | None:
|
|
26
|
+
"""Return the automatic threshold, if enabled."""
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
@abstractmethod
|
|
30
|
+
def plan_compaction(self) -> CompactionPlan | None:
|
|
31
|
+
"""Snapshot the older complete turns eligible for compaction."""
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
@abstractmethod
|
|
35
|
+
def preview_compaction(
|
|
36
|
+
self, plan: CompactionPlan, summary: str
|
|
37
|
+
) -> list[IMessage]:
|
|
38
|
+
"""Render the proposed context without changing the conversation."""
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
@abstractmethod
|
|
42
|
+
def apply_compaction(self, plan: CompactionPlan, summary: str) -> bool:
|
|
43
|
+
"""Apply a nonempty summary if the plan still matches."""
|
|
44
|
+
pass
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from dataclasses import dataclass, field
|
|
3
|
+
from typing import Literal, Mapping
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@dataclass(frozen=True)
|
|
7
|
+
class ProcessRequest:
|
|
8
|
+
"""Describe a command and its execution context."""
|
|
9
|
+
|
|
10
|
+
argv: tuple[str, ...]
|
|
11
|
+
cwd: str | None = None
|
|
12
|
+
env: Mapping[str, str] | None = None
|
|
13
|
+
timeout: float | None = None
|
|
14
|
+
workspace: str | None = None
|
|
15
|
+
|
|
16
|
+
def __post_init__(self):
|
|
17
|
+
if not self.argv or not self.argv[0]:
|
|
18
|
+
raise ValueError("A command is required")
|
|
19
|
+
if self.timeout is not None and self.timeout <= 0:
|
|
20
|
+
raise ValueError("Timeout must be positive")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@dataclass(frozen=True)
|
|
24
|
+
class ProcessHandle:
|
|
25
|
+
"""Identify a process owned by one backend instance."""
|
|
26
|
+
|
|
27
|
+
id: str
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dataclass(frozen=True)
|
|
31
|
+
class ProcessEvent:
|
|
32
|
+
"""Report output bytes or the final process outcome."""
|
|
33
|
+
|
|
34
|
+
sequence: int
|
|
35
|
+
kind: Literal["stdout", "stderr", "exit"]
|
|
36
|
+
data: bytes = b""
|
|
37
|
+
exit_code: int | None = None
|
|
38
|
+
outcome: Literal["exited", "cancelled", "timed_out"] | None = None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@dataclass(frozen=True)
|
|
42
|
+
class ProcessOutput:
|
|
43
|
+
"""Return a bounded page of output and its continuation cursor."""
|
|
44
|
+
|
|
45
|
+
events: tuple[ProcessEvent, ...] = field(default_factory=tuple)
|
|
46
|
+
cursor: int = 0
|
|
47
|
+
truncated: bool = False
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class IProcessBackend(ABC):
|
|
51
|
+
"""Run a process and interact with it by handle."""
|
|
52
|
+
|
|
53
|
+
@abstractmethod
|
|
54
|
+
def start(self, request: ProcessRequest) -> ProcessHandle:
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
@abstractmethod
|
|
58
|
+
def read(
|
|
59
|
+
self, handle: ProcessHandle, *, after: int = 0, wait: float = 0
|
|
60
|
+
) -> ProcessOutput:
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
@abstractmethod
|
|
64
|
+
def write_stdin(
|
|
65
|
+
self, handle: ProcessHandle, data: bytes, *, close: bool = False
|
|
66
|
+
) -> None:
|
|
67
|
+
pass
|
|
68
|
+
|
|
69
|
+
@abstractmethod
|
|
70
|
+
def cancel(self, handle: ProcessHandle) -> bool:
|
|
71
|
+
pass
|
|
72
|
+
|
|
73
|
+
@abstractmethod
|
|
74
|
+
def release(self, handle: ProcessHandle) -> None:
|
|
75
|
+
pass
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
|
|
3
|
+
from .RunCheckpoint import RunCheckpoint
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IRunStore(ABC):
|
|
7
|
+
"""Persist checkpoints with atomic optimistic concurrency."""
|
|
8
|
+
|
|
9
|
+
@abstractmethod
|
|
10
|
+
def create(self, checkpoint: RunCheckpoint) -> None:
|
|
11
|
+
"""Insert revision zero or raise RunConflictError."""
|
|
12
|
+
pass
|
|
13
|
+
|
|
14
|
+
@abstractmethod
|
|
15
|
+
def load(self, run_id: str) -> RunCheckpoint:
|
|
16
|
+
"""Load a checkpoint or raise KeyError."""
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
@abstractmethod
|
|
20
|
+
def save(self, checkpoint: RunCheckpoint) -> RunCheckpoint:
|
|
21
|
+
"""Save atomically or raise RunConflictError on a stale revision."""
|
|
22
|
+
pass
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from collections.abc import Mapping, Sequence
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from swarmauri_core.tools.ITool import ITool
|
|
6
|
+
|
|
7
|
+
from .ToolStep import ToolStep, ToolStepResult
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class IToolStepModel(ABC):
|
|
11
|
+
"""Opt-in proposal and continuation interface for externally run tools."""
|
|
12
|
+
|
|
13
|
+
tool_step_protocol: str
|
|
14
|
+
|
|
15
|
+
@abstractmethod
|
|
16
|
+
def initial_tool_history(self, prompt: str) -> list[dict[str, Any]]:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
@abstractmethod
|
|
20
|
+
def propose_step(
|
|
21
|
+
self, history: Sequence[dict[str, Any]], tools: Mapping[str, ITool]
|
|
22
|
+
) -> ToolStep:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
@abstractmethod
|
|
26
|
+
def format_tool_results(
|
|
27
|
+
self, results: Sequence[ToolStepResult]
|
|
28
|
+
) -> list[dict[str, Any]]:
|
|
29
|
+
pass
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from dataclasses import dataclass, field
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@dataclass(frozen=True)
|
|
6
|
+
class ProposedToolCall:
|
|
7
|
+
"""A call correlated by the runner ID and, when available, provider ID."""
|
|
8
|
+
|
|
9
|
+
call_id: str
|
|
10
|
+
name: str
|
|
11
|
+
arguments: dict[str, Any] | str
|
|
12
|
+
provider_call_id: str | None = None
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True)
|
|
16
|
+
class ToolStep:
|
|
17
|
+
"""A model response and the original items needed to continue."""
|
|
18
|
+
|
|
19
|
+
items: list[dict[str, Any]]
|
|
20
|
+
calls: list[ProposedToolCall] = field(default_factory=list)
|
|
21
|
+
content: str | None = None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@dataclass(frozen=True)
|
|
25
|
+
class ToolStepResult:
|
|
26
|
+
"""The settled value for one call, including a possible denial."""
|
|
27
|
+
|
|
28
|
+
call: ProposedToolCall
|
|
29
|
+
value: Any
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_apis/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agent_factories/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentParser.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentRetrieve.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentToolkit.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IAgentVectorStore.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/agents/IRealtimeAgent.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth20Login.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOAuth21Login.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/IOIDC10Login.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/auth_idp/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IBillingProvider.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/ICustomers.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IHostedCheckout.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IInvoicing.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IMarketplace.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IOnlinePayments.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPaymentMethods.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPayouts.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IProductsPrices.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IPromotions.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IRefunds.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IReports.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/ISubscriptions.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/IWebhooks.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/billing/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/certs/ICertService.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/ICallableChain.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainContext.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainFactory.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chains/IChainStep.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chunkers/IChunker.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/chunkers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/cipher_suites/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/cipher_suites/types.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/IMaxSize.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/conversations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/dataconnectors/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/distances/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/document_stores/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/documents/IDocument.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/documents/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/IFeature.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/ISaveModel.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/IVectorize.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/embeddings/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ensembles/IEnsemble.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/ensembles/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluator_pools/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluators/IEvaluate.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/evaluators/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/factories/IFactory.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/factories/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/git_filters/IGitFilter.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/git_filters/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/image_gens/IGenImage.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/image_gens/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/inner_products/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/key_providers/__init__.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/key_providers/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveConfig.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveEvent.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveInput.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveModel.py
RENAMED
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/ILiveSession.py
RENAMED
|
File without changes
|
|
File without changes
|
{swarmauri_core-0.11.0.dev5 → swarmauri_core-0.11.0.dev7}/swarmauri_core/live_models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|