{"id":28028361,"url":"https://github.com/permitio/permit-pydanticai","last_synced_at":"2025-05-11T07:10:54.804Z","repository":{"id":278609859,"uuid":"935708208","full_name":"permitio/Permit-PydanticAI","owner":"permitio","description":"A demonstration of implementing secure AI agents using PydanticAI and Permit.io's fine-grained authorization framework. ","archived":false,"fork":false,"pushed_at":"2025-02-20T17:17:28.000Z","size":100,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-04T16:08:25.444Z","etag":null,"topics":["example"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/permitio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T22:15:22.000Z","updated_at":"2025-04-25T22:29:05.000Z","dependencies_parsed_at":"2025-02-20T18:29:51.755Z","dependency_job_id":"7995fb52-4ec0-4515-b31a-1ad2648f6b2e","html_url":"https://github.com/permitio/Permit-PydanticAI","commit_stats":null,"previous_names":["permitio/permit-pydanticai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2FPermit-PydanticAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2FPermit-PydanticAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2FPermit-PydanticAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2FPermit-PydanticAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/permitio","download_url":"https://codeload.github.com/permitio/Permit-PydanticAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528970,"owners_count":21922636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example"],"created_at":"2025-05-11T07:10:54.205Z","updated_at":"2025-05-11T07:10:54.793Z","avatar_url":"https://github.com/permitio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Access Control example with PydanticAI and Permit\n\nA demonstration of implementing secure AI agents using PydanticAI and Permit.io's fine-grained authorization framework. This project showcases a production-ready financial advisor AI system with comprehensive access control and compliance enforcement.\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Python 3.9 or higher\n- [Permit.io Account](https://app.permit.io) (free tier available)\n- uv for dependency management\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/yourusername/Permit-PydanticAI.git\ncd Permit-PydanticAI\n```\n\n2. Set up your Python environment:\n\n```bash\nuv sync --all-extras\n```\n\n## 🏗️ Architecture\n\nThe project implements a four-perimeter security model for AI systems:\n\n1. **Prompt Filtering**: Validates user permissions and query intent\n2. **Data Protection**: Controls access to sensitive financial data\n3. **Secure External Access**: Manages API and system interactions\n4. **Response Enforcement**: Ensures compliance in AI responses\n\n### Key Components\n\n- `main.py`: Core application logic and AI agent implementation\n- `config.py`: Permit.io configuration and ABAC setup\n- `docs.md`: Comprehensive documentation and examples\n\n## 🛠️ Development\n\n### Setting up the Development Environment\n\n2. Set up pre-commit hooks:\n\n```bash\npre-commit install\n```\n\n### Code Quality\n\n```bash\nmake lint  # Run linting\nmake format  # Format code\nmake typecheck # check types\n```\n\n## 📚 Documentation\n\nDetailed documentation is available in the `example/docs.md` file, covering:\n\n- Complete implementation guide\n- Security model details\n- Usage examples\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermitio%2Fpermit-pydanticai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpermitio%2Fpermit-pydanticai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermitio%2Fpermit-pydanticai/lists"}