Skip to content

Commit bc030f0

Browse files
committed
feat(add docs):
1 parent 70c18c8 commit bc030f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+12672
-10
lines changed

docs/api_reference.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# API Reference
2+
3+
This section provides detailed information about the Agentic Security API.
4+
5+
## Endpoints
6+
7+
### `/v1/self-probe`
8+
9+
- **Method**: POST
10+
- **Description**: Used for integration testing.
11+
- **Request Body**:
12+
```json
13+
{
14+
"prompt": "<<PROMPT>>"
15+
}
16+
```
17+
18+
### `/v1/self-probe-image`
19+
20+
- **Method**: POST
21+
- **Description**: Probes the image modality.
22+
- **Request Body**:
23+
```json
24+
[
25+
{
26+
"role": "user",
27+
"content": [
28+
{
29+
"type": "text",
30+
"text": "What is in this image?"
31+
},
32+
{
33+
"type": "image_url",
34+
"image_url": {
35+
"url": "data:image/jpeg;base64,<<BASE64_IMAGE>>"
36+
}
37+
}
38+
]
39+
}
40+
]
41+
```
42+
43+
## Authentication
44+
45+
All API requests require an API key. Include it in the `Authorization` header:
46+
```
47+
Authorization: Bearer YOUR_API_KEY
48+
```
49+
50+
## Further Reading
51+
52+
For more details on API usage, refer to the [Configuration](configuration.md) section.

docs/ci_cd.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# CI/CD Integration
2+
3+
Integrate Agentic Security into your CI/CD pipeline to automate security scans.
4+
5+
## GitHub Actions
6+
7+
Use the provided GitHub Action workflow to perform automated scans:
8+
9+
```yaml
10+
name: Security Scan
11+
12+
on: [push, pull_request]
13+
14+
jobs:
15+
scan:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.11
23+
- name: Install dependencies
24+
run: pip install agentic_security
25+
- name: Run security scan
26+
run: agentic_security ci
27+
```
28+
29+
## Custom CI/CD Pipelines
30+
31+
For custom pipelines, ensure the following steps:
32+
1. Install dependencies.
33+
2. Run the `agentic_security ci` command.
34+
35+
## Further Reading
36+
37+
For more details on CI/CD integration, refer to the [API Reference](api_reference.md).

docs/configuration.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Configuration
2+
3+
This section provides information on configuring Agentic Security to suit your needs.
4+
5+
## Default Configuration
6+
7+
The default configuration file is `agesec.toml`. It includes settings for:
8+
9+
- General settings
10+
- Module configurations
11+
- Thresholds
12+
13+
## Customizing Configuration
14+
15+
1. Open the `agesec.toml` file in a text editor.
16+
2. Modify the settings as needed. For example, to change the port:
17+
```toml
18+
[modules.AgenticBackend.opts]
19+
port = 8718
20+
```
21+
22+
## Advanced Configuration
23+
24+
For advanced configuration options, refer to the [API Reference](api_reference.md).

docs/contributing.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
We welcome contributions to Agentic Security! Follow these steps to get started:
4+
5+
## How to Contribute
6+
7+
1. **Fork the Repository**: Click the "Fork" button at the top of the repository page.
8+
2. **Clone Your Fork**: Clone your forked repository to your local machine.
9+
```bash
10+
git clone https://github.com/mmsoedov/agentic_security.git
11+
```
12+
3. **Create a Branch**: Create a new branch for your feature or bugfix.
13+
```bash
14+
git checkout -b feature-name
15+
```
16+
4. **Make Changes**: Implement your changes and commit them.
17+
```bash
18+
git commit -m "Description of changes"
19+
```
20+
5. **Push Changes**: Push your changes to your fork.
21+
```bash
22+
git push origin feature-name
23+
```
24+
6. **Open a Pull Request**: Go to the original repository and open a pull request.
25+
26+
## Code of Conduct
27+
28+
Please adhere to the [Code of Conduct](CODE_OF_CONDUCT.md) in all interactions.
29+
30+
## Further Reading
31+
32+
For more details on contributing, refer to the [Documentation](index.md) section.

docs/datasets.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Dataset Extension
2+
3+
Agentic Security allows you to extend datasets to enhance its capabilities.
4+
5+
## Adding New Datasets
6+
7+
1. Place your dataset files in the `datasets` directory.
8+
2. Ensure each file contains a `prompt` column for processing.
9+
10+
## Supported Formats
11+
12+
- CSV
13+
- JSON
14+
15+
## Example
16+
17+
To add a new dataset:
18+
```bash
19+
cp my_dataset.csv datasets/
20+
```
21+
22+
## Further Reading
23+
24+
For more details on dataset formats and processing, refer to the [API Reference](api_reference.md).

docs/getting_started.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Getting Started
2+
3+
Welcome to Agentic Security! This guide will help you get started with using the tool.
4+
5+
## Quick Start
6+
7+
1. Ensure you have completed the [installation](installation.md) steps.
8+
2. Run the following command to start the application:
9+
```bash
10+
agentic_security
11+
```
12+
3. Access the application at `http://localhost:8718`.
13+
14+
## Basic Usage
15+
16+
- To view available commands, use:
17+
```bash
18+
agentic_security --help
19+
```
20+
21+
## Next Steps
22+
23+
Explore the [Configuration](configuration.md) section to customize your setup.

0 commit comments

Comments
 (0)