Skip to content

Muhammad-Owais-Warsi/agent-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Scope

agent-scope

A security layer that ensures agents can only use the tools they're explicitly allowed to access.

Install

bun add agents-scope

Usage

import { createAgentScope } from "agents-scope";

const scope = createAgentScope({
  agents: [
    { id: "researcher", permissions: ["read_doc"] },
    { id: "admin", permissions: ["read_doc", "admin_delete_user"] },
  ],
});

// pass the tool and tool_id
const secureTool = scope.agent("researcher").secureTool(tool, "read_doc");

Any attempt by the research agent to execute admin_delete_user will be blocked.

About

A security layer that ensures agents can only use the tools they're explicitly allowed to access.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors