PrerequisitesYour AgentKit network must be configured with Inngest.
Configuring Multi-tenancy
Adding multi-tenancy to your AgentKit network is done by transforming your AgentKit network into an Inngest function.Transforming your AgentKit network into an Inngest function
First, you’ll need to create an Inngest Client:src/inngest/client.ts
src/inngest/agent-network.ts
network.run()
is now performed by the Inngest function.
Don’t forget to register the function with createServer
’s functions
property.
Configuring a concurrency per user
We can now configure the capacity by user by adding concurrency and throttling configuration to our Inngest function:src/inngest/agent-network.ts