Skip to content

Commit 930fd10

Browse files
authored
Merge pull request #4 from evidai/feature/v2.0-enterprise
feat: Add v2.0 Enterprise features
2 parents 414bc65 + bf2ba55 commit 930fd10

4 files changed

Lines changed: 79 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cat > .github/workflows/ci.yml << 'EOF'
12
name: CI
23

34
on:
@@ -14,16 +15,18 @@ jobs:
1415
python-version: ["3.10", "3.11", "3.12"]
1516

1617
steps:
17-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v4
1819

1920
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v6
21+
uses: actions/setup-python@v4
2122
with:
2223
python-version: ${{ matrix.python-version }}
2324

2425
- name: Install dependencies
2526
run: |
27+
python -m pip install --upgrade pip
2628
pip install -e ".[dev,api]"
29+
pip install uvicorn fastapi httpx websockets python-multipart
2730
2831
- name: Run tests
2932
run: |
@@ -33,5 +36,6 @@ jobs:
3336
run: |
3437
uvicorn api:app --host 0.0.0.0 --port 8000 &
3538
sleep 2
36-
curl -sf http://localhost:8000/health
39+
curl -sf http://localhost:8000/health || exit 1
3740
kill %1
41+
EOF

pyproject.toml

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,62 @@
11
[build-system]
2-
requires = ["setuptools>=68", "wheel"]
3-
build-backend = "setuptools.backends.legacy:build"
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "secure-agent-core"
7-
version = "0.1.0"
8-
description = "Model-agnostic security layer for AI agents — prompt injection protection, PII redaction, and policy enforcement"
7+
version = "2.0.0"
8+
description = "Model-agnostic security layer for AI agents"
99
readme = "README.md"
10-
license = {file = "LICENSE"}
10+
requires-python = ">=3.9"
11+
license = {text = "Business Source License 1.1"}
1112
authors = [
12-
{name = "lita-hiroto", email = "contact@aievid.com"}
13+
{name = "Evid AI", email = "support@evidai.com"}
1314
]
14-
keywords = ["ai", "security", "llm", "agent", "prompt-injection", "pii", "guardrails"]
15-
classifiers = [
16-
"Development Status :: 3 - Alpha",
17-
"Intended Audience :: Developers",
18-
"Topic :: Security",
19-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
20-
"Programming Language :: Python :: 3.10",
21-
"Programming Language :: Python :: 3.11",
22-
"Programming Language :: Python :: 3.12",
23-
]
24-
requires-python = ">=3.10"
2515
dependencies = [
26-
"pydantic>=2.0",
16+
"fastapi>=0.104.0",
17+
"pydantic>=2.0.0",
18+
"httpx>=0.24.0",
19+
"websockets>=11.0",
20+
"python-multipart>=0.0.6",
21+
"uvicorn>=0.23.0",
2722
]
2823

2924
[project.optional-dependencies]
30-
api = ["fastapi>=0.110", "uvicorn>=0.29"]
31-
dev = ["pytest>=8.0", "httpx>=0.27"]
25+
api = [
26+
"uvicorn>=0.23.0",
27+
"fastapi>=0.104.0",
28+
]
29+
dashboard = [
30+
"httpx>=0.24.0",
31+
"websockets>=11.0",
32+
]
33+
sdk = [
34+
"httpx>=0.24.0",
35+
]
36+
dev = [
37+
"pytest>=7.0.0",
38+
"pytest-asyncio>=0.21.0",
39+
]
40+
all = [
41+
"httpx>=0.24.0",
42+
"websockets>=11.0",
43+
"pytest>=7.0.0",
44+
"pytest-asyncio>=0.21.0",
45+
"uvicorn>=0.23.0",
46+
]
3247

3348
[project.urls]
34-
Homepage = "https://github.com/lita-hiroto/secure-agent-core"
35-
Documentation = "https://github.com/lita-hiroto/secure-agent-core#readme"
36-
Issues = "https://github.com/lita-hiroto/secure-agent-core/issues"
49+
Homepage = "https://github.com/evidai/Openpic"
50+
Documentation = "https://docs.openpic.ai"
51+
Repository = "https://github.com/evidai/Openpic"
52+
Issues = "https://github.com/evidai/Openpic/issues"
3753

3854
[tool.setuptools.packages.find]
3955
where = ["."]
4056
include = ["src*"]
57+
58+
[tool.pytest.ini_options]
59+
testpaths = ["tests"]
60+
python_files = "test_*.py"
61+
python_functions = "test_*"
62+
asyncio_mode = "auto"

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
# v2.0 新機能用
3+
httpx>=0.24.0
4+
websockets>=11.0
5+
python-multipart>=0.0.6
6+
uvicorn>=0.23.0

sdk/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Open Pic LLM Provider SDK
3+
"""
4+
from .client import (
5+
SecureLLMClient,
6+
OpenAISecure,
7+
AnthropicSecure,
8+
GoogleSecure,
9+
Provider,
10+
SecureResponse,
11+
)
12+
13+
__version__ = "2.0.0"
14+
__all__ = [
15+
"SecureLLMClient",
16+
"OpenAISecure",
17+
"AnthropicSecure",
18+
"GoogleSecure",
19+
"Provider",
20+
"SecureResponse",
21+
]

0 commit comments

Comments
 (0)