Skip to content

GNSAgentSDK Client

Constructor

python
from gns_aip import GNSAgentSDK

# Context manager (recommended)
async with GNSAgentSDK("https://gns-browser-production.up.railway.app") as sdk:
    ...

# Manual
sdk = GNSAgentSDK("https://gns-browser-production.up.railway.app", timeout=30)

Methods

MethodDescriptionReturns
provision_agent(...)Create new agent identityProvisionResult
delegate_to_agent(...)Create delegation certificateDelegationCert
get_agent_manifest(id)Fetch public manifestAgentManifest
get_compliance(id)Query compliance scoreComplianceScore
submit_breadcrumbs(id, crumbs)Submit breadcrumbsBreadcrumbResult

All methods are async. Backend responses are auto-converted from camelCase to snake_case Python models.

Static Utilities

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

Released under the MIT License.