Skip to content

GNSAgentSDK Client ​

Constructor ​

typescript
import { GNSAgentSDK } from '@gns-aip/sdk';

const sdk = new GNSAgentSDK({
  backendUrl: 'https://gns-browser-production.up.railway.app',
  timeout: 30000, // optional, default 30s
});

Methods ​

MethodDescriptionReturns
provisionAgent(opts)Create new agent identityProvisionResult
delegateToAgent(opts)Create delegation certificateDelegationCert
getAgentManifest(id)Fetch public manifestAgentManifest
getCompliance(id)Query compliance scoreComplianceScore
submitBreadcrumbs(id, crumbs)Submit breadcrumbsBreadcrumbResult

Static Utilities ​

UtilityDescription
DelegationChain.verify(sdk, id)Walk chain to human root
DelegationChain.checkScope(sdk, id, action)Check action authorization
EscalationPolicy.evaluate(sdk, id, ctx?)Determine if escalation needed

Released under the MIT License.