You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FRAI is an open-source toolkit that helps teams launch AI features responsibly. It guides you through evidence gathering, scans your code, and assembles documentation you can hand to reviewers: implementation checklists, model cards, risk files, evaluation reports, and compliance-aware RAG indexes. The toolkit ships as two packages that work together:
24
+
FRAI is an open-source toolkit that helps teams launch AI features responsibly. It guides you through evidence gathering, scans your code, and assembles documentation you can hand to reviewers: implementation checklists, model cards, risk files, evaluation reports, and compliance-aware RAG indexes. The toolkit ships as three packages that work together:
25
25
26
26
-`frai` – the command-line app with ready-to-run workflows.
27
27
-`frai-core` – the reusable SDK that powers the CLI and any custom integrations.
28
+
-`frai-agent` – a LangChain-powered conversational agent for FRAI workflows.
28
29
29
30
### Short Answer
30
31
-`frai-core` is the library/SDK. Use it when you are embedding FRAI capabilities into your own tools, servers, automations, or extensions.
@@ -43,10 +44,12 @@ FRAI is an open-source toolkit that helps teams launch AI features responsibly.
43
44
### When to Use Each
44
45
- Choose **`frai` (CLI)** when you want interactive prompts, one-command scans, RAG indexing, evaluation reports, or CI-friendly automation without writing code.
45
46
- Choose **`frai-core` (SDK)** when you want API access to FRAI capabilities from Node scripts, services, custom CLIs, extensions, or unusual I/O flows.
47
+
- Choose **`frai-agent`** when you want a conversational AI assistant that can intelligently orchestrate FRAI workflows using natural language commands.
46
48
47
49
### Concrete Examples
48
50
- CLI user: run `frai --scan` and `frai eval` in a repository to generate governance docs and audit reports.
49
51
- Library user: call `Documents.generateDocuments` from an internal portal to produce standardized docs, use `Scanners.scanCodebase` inside a GitHub Action, or embed `Rag.indexDocuments` inside a VS Code extension for grounded hints.
52
+
- Agent user: interact with `frai-agent` conversationally: "scan the repo and tell me what risks you found" or "generate docs based on this questionnaire data".
50
53
51
54
In short: CLI = product; Core = platform. They overlap in capability on purpose but target different audiences and distribution needs.
52
55
@@ -183,6 +186,69 @@ Because `frai-core` is a regular ESM package, you can import only the modules yo
183
186
184
187
---
185
188
189
+
## Using `frai-agent`
190
+
191
+
`frai-agent` is a LangChain-powered conversational agent that wraps FRAI scanning and documentation workflows behind a natural language interface. It provides an intelligent assistant that can scan repositories, generate documentation, and answer questions about your AI features.
192
+
193
+
### Getting Started
194
+
195
+
From the monorepo root:
196
+
```bash
197
+
pnpm agent:frai "Scan the repository and summarize AI risks."
198
+
```
199
+
200
+
### Interactive Mode
201
+
202
+
Launch a chat-style session:
203
+
```bash
204
+
pnpm agent:frai --interactive --verbose
205
+
```
206
+
207
+
The agent supports two tools:
208
+
-**`scan_repository`** – Scans your codebase for AI indicators using FRAI's static detectors.
209
+
-**`generate_responsible_ai_docs`** – Generates `checklist.md`, `model_card.md`, and `risk_file.md` from questionnaire answers.
210
+
211
+
### Example Usage
212
+
213
+
Scan a repository:
214
+
```bash
215
+
pnpm agent:frai "Scan the repo and tell me what AI-related code you found."
0 commit comments