PrerequisitesYour AgentKit network must be configured with Inngest.
Configuring Retries
Configuring a custom retry policy 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 custom retry policy
We can now configure the capacity by user by adding concurrency and throttling configuration to our Inngest function:src/inngest/agent-network.ts