How to integrate Icepick agents with Next.js applications
lib/agents/my-agent.ts
):
pages/api/agent.ts
or app/api/agent/route.ts
):
.env.local
:
runNoWait()
for long-running agents and add a get endpoint to subscribe to the result to avoid timeout issues.