Skip to main content

Install

Scope-Enforced Functions

Create OpenAI function-calling tool definitions with built-in Grantex scope checks:

Function Registry

Use GrantexFunctionRegistry to manage multiple functions and dispatch tool calls by name:

Audit Logging

Wrap any function with withAuditLogging:

API Reference

createGrantexFunction(options)

Returns { definition, execute }.

GrantexFunctionRegistry

withAuditLogging(fn, client, options)

Requirements

  • Node.js 18+
  • @grantex/sdk >= 0.1.0
Last modified on March 30, 2026