Install
Scope-Enforced Functions
Create OpenAI function-calling tool definitions with built-in Grantex scope checks:Function Registry
UseGrantexFunctionRegistry to manage multiple functions and dispatch tool calls by name:
Audit Logging
Wrap any function withwithAuditLogging:
API Reference
createGrantexFunction(options)
Returns
{ definition, execute }.
GrantexFunctionRegistry
withAuditLogging(fn, client, options)
Requirements
- Node.js 18+
@grantex/sdk>= 0.1.0