Thrown when createDeepAgent receives invalid configuration.
Follows the same pattern as SandboxError: a human-readable
message, a structured code for programmatic handling, and a
static isInstance guard that works across realms.
class ConfigurationErrortry {
createDeepAgent({ tools: [myTool] });
} catch (error) {
if (ConfigurationError.isInstance(error)) {
switch (error.code) {
case "TOOL_NAME_COLLISION":
console.error("Rename your tool:", error.message);
break;
}
}
}