Skip to content

Commit a8516a2

Browse files
committed
refactor(deprecate models.schema):
1 parent cb3a9bc commit a8516a2

File tree

13 files changed

+22
-11
lines changed

13 files changed

+22
-11
lines changed

agentic_security/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tabulate import tabulate
1111

1212
from agentic_security.config import SettingsMixin # Importing the configuration mixin
13-
from agentic_security.models.schemas import Scan
13+
from agentic_security.primitives import Scan
1414
from agentic_security.probe_data import REGISTRY
1515
from agentic_security.routes.scan import streaming_response_generator
1616

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from agentic_security.primitives.models import (
2+
Settings,
3+
LLMInfo,
4+
Scan,
5+
ScanResult,
6+
Probe,
7+
Message,
8+
CompletionRequest,
9+
FileProbeResponse,
10+
Table,
11+
) # noqa
File renamed without changes.

agentic_security/probe_actor/fuzzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from skopt.space import Real
1212

1313
from agentic_security.http_spec import Modality
14-
from agentic_security.models.schemas import Scan, ScanResult
14+
from agentic_security.primitives import Scan, ScanResult
1515
from agentic_security.probe_actor.cost_module import calculate_cost
1616
from agentic_security.probe_actor.refusal import refusal_heuristic
1717
from agentic_security.probe_data import audio_generator, image_generator, msj_data

agentic_security/probe_actor/test_fuzzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import httpx
66
import pytest
77

8-
from agentic_security.models.schemas import Scan
8+
from agentic_security.primitives import Scan
99
from agentic_security.probe_actor.fuzzer import (
1010
generate_prompts,
1111
perform_many_shot_scan,

agentic_security/routes/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from fastapi import APIRouter, File, Header, HTTPException, UploadFile
44
from fastapi.responses import JSONResponse
55

6-
from ..models.schemas import FileProbeResponse, Probe
6+
from ..primitives import FileProbeResponse, Probe
77
from ..probe_actor.refusal import REFUSAL_MARKS
88
from ..probe_data import REGISTRY
99

agentic_security/routes/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from loguru import logger
66

77
from ..core.app import get_current_run, get_tools_inbox
8-
from ..models.schemas import CompletionRequest, Settings
8+
from ..primitives import CompletionRequest, Settings
99
from ..probe_actor.refusal import REFUSAL_MARKS
1010

1111
router = APIRouter()

agentic_security/routes/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from fastapi import APIRouter, Response
44
from fastapi.responses import FileResponse, StreamingResponse
55

6-
from ..models.schemas import Table
6+
from ..primitives import Table
77
from ..report_chart import plot_security_report
88

99
router = APIRouter()

agentic_security/routes/scan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from ..core.app import get_stop_event, get_tools_inbox, set_current_run
1515
from ..dependencies import InMemorySecrets, get_in_memory_secrets
1616
from ..http_spec import LLMSpec
17-
from ..models.schemas import LLMInfo, Scan
17+
from ..primitives import LLMInfo, Scan
1818
from ..probe_actor import fuzzer
1919

2020
router = APIRouter()

agentic_security/routes/static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from jinja2 import Environment, FileSystemLoader
88
from starlette.responses import Response
99

10-
from ..models.schemas import Settings
10+
from ..primitives import Settings
1111

1212
router = APIRouter()
1313
STATIC_DIR = Path(__file__).parent.parent / "static"

0 commit comments

Comments
 (0)