Semantic Kernel
Install
Integration
from scopebound import ScopeboundSDK
from scopebound.adapters.semantic_kernel import enforce_sk
sb = ScopeboundSDK()
class InvoicePlugin:
@enforce_sk(sb, role="invoice-processor")
def read_invoices(self, limit: int = 10) -> str:
return get_invoices(limit)
@enforce_sk(sb, role="invoice-processor")
async def async_read_invoices(self, limit: int = 10) -> str:
return await async_get_invoices(limit)
kernel.add_plugin(InvoicePlugin(), plugin_name="invoice")
Both sync and async methods are supported.