Nox-Lumen MfgNox-Lumen Mfg

tool-sdk

One-liner

Let the AI invoke a first-class tool—query your ERP, call internal BOM APIs, drive lab equipment, etc. The platform injects credentials, validates parameters, and writes audit logs while you only implement the call path.

Install

Email for access

Request ragbase-tool-sdk at info@nox-lumen.com.

pip install ragbase-tool-sdk

Five-minute sample

ragbase-cli init tool my-erp-query
cd my-erp-query
vi src/my_erp_query/main.py
from ragbase.tool_sdk import Tool, tool_action
 
class ErpQueryTool(Tool):
    @tool_action(
        name="query_inventory",
        description="Look up stock by material code",
        params={"material_code": "str, material code"},
    )
    def query_inventory(self, ctx, material_code: str):
        token = ctx.credentials["erp_api_key"]   # injected at runtime
        resp = ctx.http.get(
            f"https://erp.internal/inv/{material_code}",
            headers={"Authorization": f"Bearer {token}"},
        )
        return {"qty": resp.json()["available"]}

@tool_action surfaces description / params directly to the LLM as a tool schema.

Why SDK vs “let the model write HTTP”

ConcernRaw LLM HTTPtool-sdk
CredentialsTokens may leak into promptsInjected at runtime, never in LLM context
ValidationHope the model behavesPydantic validation, hard failures
AuditingNoneLedger on every call
Retries / timeouts / rate limitsDIYFramework defaults
Tenant isolationDIYPlatform enforced

Industry sparks

IndustryIdea
AutomotiveInternal ASIL APIs; Vector vTESTstudio result fetchers
ManufacturingERP stock / BOM; MES job dispatch; SCADA reads
OfficeInternal approval / HR / finance APIs

See also

On this page