Files
docs/build/snippets/python/code-samples/permissions-basic-js.mdx
T
2026-07-29 10:28:19 +00:00

15 lines
229 B
Plaintext

```ts
const agent = createDeepAgent({
model,
backend,
permissions: [
{
operations: ["write"],
paths: ["/**"],
mode: "deny",
},
],
});
if (!agent) throw new Error("basic: agent not created");
```