-
Notifications
You must be signed in to change notification settings - Fork 6.4k
docs: add Aegis governance integration to observability #5161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Acacian
wants to merge
1
commit into
crewAIInc:main
Choose a base branch
from
Acacian:docs/aegis-governance
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+362
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| --- | ||
| title: تكامل Aegis | ||
| description: أضف الحوكمة واكتشاف حقن الموجهات وإخفاء المعلومات الشخصية إلى CrewAI باستخدام Aegis | ||
| icon: shield-halved | ||
| mode: "wide" | ||
| --- | ||
|
|
||
| # دمج Aegis مع CrewAI | ||
|
|
||
| يوضح هذا الدليل كيفية دمج **Aegis** مع **CrewAI** لإضافة حواجز حماية الحوكمة -- بما في ذلك اكتشاف حقن الموجهات وإخفاء المعلومات الشخصية والسياسة كرمز -- إلى سير عمل الوكلاء الخاص بك. | ||
|
|
||
| > **ما هو Aegis؟** [Aegis](https://github.com/Acacian/aegis) هو نظام حوكمة مفتوح المصدر لوكلاء الذكاء الاصطناعي. يوفر أدوات قياس تلقائية للأطر الشائعة، واكتشاف حقن الموجهات (107 أنماط)، وإخفاء المعلومات الشخصية، وتنفيذ السياسة كرمز، ومسار تدقيق كامل. التثبيت عبر PyPI: `pip install agent-aegis`. | ||
|
|
||
| ## البدء | ||
|
|
||
| ### الخطوة 1: تثبيت التبعيات | ||
|
|
||
| ```python | ||
| %pip install agent-aegis crewai crewai_tools | ||
| ``` | ||
|
|
||
| ### الخطوة 2: تهيئة Aegis | ||
|
|
||
| ```python | ||
| import aegis | ||
|
|
||
| aegis.auto_instrument() | ||
| ``` | ||
|
|
||
| ### الخطوة 3: إنشاء تطبيق CrewAI | ||
|
|
||
| أنشئ تطبيق CrewAI كالمعتاد. يعترض Aegis بشفافية مكالمات LLM لفرض سياسات الحوكمة. | ||
|
|
||
| ```python | ||
| from crewai import Agent, Task, Crew | ||
|
|
||
| researcher = Agent( | ||
| role="Researcher", | ||
| goal="البحث عن معلومات دقيقة حول حوكمة الذكاء الاصطناعي", | ||
| backstory="أنت باحث خبير في أمان الذكاء الاصطناعي.", | ||
| ) | ||
|
|
||
| task = Task( | ||
| description="ابحث عن أحدث الاتجاهات في حوكمة وكلاء الذكاء الاصطناعي.", | ||
| expected_output="ملخص موجز لاتجاهات حوكمة الذكاء الاصطناعي.", | ||
| agent=researcher, | ||
| ) | ||
|
|
||
| crew = Crew(agents=[researcher], tasks=[task], share_crew=False) | ||
| result = crew.kickoff() | ||
| ``` | ||
|
|
||
| ## الميزات الرئيسية | ||
|
|
||
| | الميزة | الوصف | | ||
| |---|---| | ||
| | **أدوات القياس التلقائية** | إعداد بسطر واحد | | ||
| | **اكتشاف حقن الموجهات** | 107 أنماط اكتشاف | | ||
| | **إخفاء المعلومات الشخصية** | إخفاء تلقائي للبريد الإلكتروني والهاتف | | ||
| | **السياسة كرمز** | سياسات حوكمة قائمة على YAML | | ||
| | **مسار التدقيق** | سجل كامل لجميع تفاعلات LLM | | ||
|
|
||
| ## المراجع | ||
|
|
||
| - [وثائق Aegis](https://acacian.github.io/aegis/) | ||
| - [Aegis على PyPI](https://pypi.org/project/agent-aegis/) | ||
| - [مستودع GitHub لـ Aegis](https://github.com/Acacian/aegis) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.