-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (90 loc) · 3.05 KB
/
pyproject.toml
File metadata and controls
99 lines (90 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[project]
name = "agent-control-sdk"
version = "7.4.1"
description = "Python SDK for Agent Control - protect your AI agents with controls"
requires-python = ">=3.12"
# Note: agent-control-models, agent-control-engine, and agent-control-telemetry
# are bundled at build time
# Note: agent-control-evaluators is a runtime dependency (NOT vendored) to avoid
# duplicate module conflict when galileo extras are installed
dependencies = [
"httpx>=0.26.0",
"pydantic>=2.5.0",
"pydantic-settings>=2.0.0", # For typed configuration via environment variables
"docstring-parser>=0.15", # For @tool decorator schema inference
"google-re2>=1.1", # For engine (bundled)
"jsonschema>=4.0.0", # For models/engine (bundled)
"agent-control-evaluators>=3.0.0", # NOT vendored - avoid conflict with galileo
]
authors = [
{name = "Agent Control Team"}
]
readme = "README.md"
license = {text = "Apache-2.0"}
keywords = ["agent", "protection", "security", "sdk", "llm", "ai-safety"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/yourusername/agent-control"
Documentation = "https://github.com/yourusername/agent-control#readme"
Repository = "https://github.com/yourusername/agent-control"
[project.optional-dependencies]
strands-agents = ["strands-agents>=1.26.0"]
google-adk = ["google-adk>=1.0.0"]
galileo = ["agent-control-evaluator-galileo>=3.0.0"]
otel = [
"opentelemetry-api>=1.24.0",
"opentelemetry-sdk>=1.24.0",
"opentelemetry-exporter-otlp-proto-http>=1.24.0",
]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.8.0",
"agent-control-models",
"agent-control-engine",
"agent-control-telemetry",
"agent-control-evaluators",
"strands-agents>=1.26.0", # For strands integration tests
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
# Note: agent_control_models, agent_control_engine, and agent_control_telemetry
# are copied by scripts/build.py
packages = [
"src/agent_control",
"src/agent_control_models",
"src/agent_control_engine",
"src/agent_control_telemetry",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade
]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["agent_control"]
# For local development, use workspace packages
[tool.uv.sources]
agent-control-models = { workspace = true }
agent-control-engine = { workspace = true }
agent-control-telemetry = { workspace = true }
agent-control-evaluators = { workspace = true }
# For local dev: use local galileo package instead of PyPI
agent-control-evaluator-galileo = { path = "../../evaluators/contrib/galileo", editable = true }