Quick path

Install, identity, invoke

Three steps to a successful gateway.invoke() call.

npm

Install for agents & tooling

Knowledge SDK — install as a devDependency only (not a production runtime).

npm i -D @x12i/ai-gateway-docs

Agents / SDK details → · agent-manifest.json

Getting started

npm install @x12i/ai-gateway

Every invoke() / invokeChat() needs:

  • identity from the upstream client (do not invent jobId / taskId in the gateway)
  • config.model (or modelConfig.model)
  • maxTokens somewhere in the resolve chain

Then follow the use case invoke-with-identity.