404 Not found
NotFoundError · Custodian not found · App not found · Custodian squad not found.
Agent, app or squad not found
Usual causes:
- A typed or stale ID. The ID is wrong, or the agent was deleted in My AIs.
- A different account. The key belongs to another account than the one that created the agent.
- Not deployed yet.
chat()ran beforedeploy(). - A different environment. The agent was created against another
base_url.
Use the object deploy() returns instead of typing IDs:
app = Custodian(model="gpt-6-luna", system_prompt="You are helpful.").deploy()
app.chat("Hello") # app carries its own ID
const app = await new Custodian({ model: "gpt-6-luna", systemPrompt: "You are helpful." }).deploy();
await app.chat("Hello");