-
Notifications
You must be signed in to change notification settings - Fork 437
Expand file tree
/
Copy pathpyproject.toml
More file actions
213 lines (196 loc) · 5.59 KB
/
Copy pathpyproject.toml
File metadata and controls
213 lines (196 loc) · 5.59 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[project]
name = "fast-agent-mcp"
version = "0.10.10"
description = "Code, Build and Evaluate agents - excellent Model and Skills/MCP/ACP/A2A Support"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Shaun Smith", email = "fastagent@llmindset.co.uk"},
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"
]
requires-python = ">=3.12,<3.15"
dependencies = [
"fastapi==0.136.3",
"fastmcp-slim[server]>=4.0.0b3",
"mcp==2.0.0",
"mcp-types==2.0.0",
"pydantic-settings==2.14.2",
"pydantic==2.13.4",
"pyyaml==6.0.3",
"rich==15.0.0",
"typer==0.25.1",
"anthropic[vertex]==1.0.0",
"openai[aiohttp,realtime]==3.3.1",
"prompt-toolkit==3.0.53",
"aiohttp==3.14.3",
"opentelemetry-exporter-otlp-proto-http==1.43.0",
"opentelemetry-instrumentation-openai==0.62.1; python_version >= '3.10' and python_version < '4.0'",
"opentelemetry-instrumentation-anthropic==0.62.1; python_version >= '3.10' and python_version < '4.0'",
"opentelemetry-instrumentation-google-genai==1.0b1",
"google-genai==2.19.0",
"deprecated==1.3.1",
"a2a-sdk==1.1.0",
"email-validator==2.3.0",
"pyperclip==1.11.0",
"keyring==25.7.0",
"pillow>=12.1.1",
"textual-image>=0.12.0",
"python-frontmatter==1.3.0",
"watchfiles==1.2.0",
"agent-client-protocol==0.10.1",
"jsonschema==4.26.0",
"tiktoken==0.13.0",
"uvloop==0.22.1; platform_system != 'Windows'",
"ruamel.yaml==0.19.1",
"huggingface_hub==1.28.0",
"mslex==1.3.0",
"starlette==1.3.1",
"uritemplate==4.2.0",
"filelock==3.29.1",
]
[project.optional-dependencies]
# For Azure OpenAI with DefaultAzureCredential support, install with: uv pip install fast-agent-mcp[azure]
azure = [
"azure-identity>=1.14.0"
]
# For AWS Bedrock support, install with: uv pip install fast-agent-mcp[bedrock]
bedrock = [
"boto3>=1.43.24"
]
# For TensorZero gateway support, install with: uv pip install fast-agent-mcp[tensorzero]
tensorzero = [
"tensorzero>=2025.7.5"
]
textual = [
"textual>=6.2.1",
]
batch-parquet = [
"duckdb>=1.4",
]
gepa = [
"gepa>=0.1.1",
"trackio>=0.27.0",
]
trackio = [
"trackio>=0.27.0",
]
parquet = [
"duckdb>=1.4",
]
privacy = [
"onnxruntime>=1.25",
"tokenizers>=0.22",
"numpy>=2",
]
privacy-gpu = [
"onnxruntime-gpu>=1.25",
"nvidia-cudnn-cu12>=9; platform_system == 'Linux' and platform_machine == 'x86_64'",
"tokenizers>=0.22",
"numpy>=2",
]
# For all provider support, install with: uv pip install fast-agent-mcp[all-providers]
all-providers = [
"azure-identity>=1.14.0",
"boto3>=1.35.0",
"tensorzero>=2025.7.5"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.custom]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build]
include = [
"src/fast_agent/**/*.py",
"src/fast_agent/resources/**/*",
"resources/shared/**/*",
"src/fast_agent/py.typed",
"examples/**/*",
]
[tool.hatch.build.targets.wheel]
packages = ["src/fast_agent"]
artifacts = [
"src/fast_agent/resources/examples/**/*",
]
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
markers = [
"e2e: tests that connect to external resources (llms)",
"integration: marks tests as integration tests",
"simulated_endpoints: marks tests that use simulated external endpoints",
"unit: marks tests as unit tests"
]
# Filter out utcnow depreciation warnings from the boto3 library (if installed)
# These filters are ignored if botocore is not installed
filterwarnings = [
"ignore:datetime\\.datetime\\.utcnow\\(\\) is deprecated.*:DeprecationWarning:botocore\\.auth",
"ignore:datetime\\.datetime\\.utcnow\\(\\) is deprecated.*:DeprecationWarning:botocore\\.endpoint$",
]
# Other pytest options can go here too
testpaths = ["tests"]
[dependency-groups]
dev = [
"boto3>=1.35.0",
"pre-commit>=4.0.1",
"pydantic>=2.10.4",
"ruamel.yaml>=0.18.0",
"pyyaml>=6.0.2",
"ruff==0.16.0",
"ty==0.0.65",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.1",
"pytest-cov>=6.1.1",
"ipdb>=0.13.13",
"zensical==0.0.44",
]
[project.scripts]
fast-agent = "fast_agent.cli.__main__:main"
apply_patch = "fast_agent.patch.cli:main"
fast-agent-mcp = "fast_agent.cli.__main__:main"
fast-agent-acp = "fast_agent.cli.commands.acp:main"
fast-agent-hf = "fast_agent.cli.commands.hf:main"
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [
"docs/docs/assets/gepa-monty-runs/**/candidate-*/*.monty.py",
"skills-repo/**",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"TCH" # type checking
]
extend-select = [
"RUF100", # stale noqa directives
"RUF012", # mutable class defaults
"B009", # constant getattr
"B010", # constant setattr
"B904", # exception chaining
"B905", # explicit zip strictness
"ISC004", # implicit string concatenation in collections
"SIM115", # file context management
"ASYNC230", # blocking file access in async functions
"PLW1510", # explicit subprocess error policy
]
ignore=["E501"]
# More lenient settings for existing code
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN"] # Don't require type annotations in tests
[tool.uv.workspace]
members = [
"publish/fast-agent-acp",
"publish/hf-inference-acp",
]
[tool.uv.sources]
fast-agent-mcp = { workspace = true }
fast-agent-acp = { workspace = true }
hf-inference-acp = { workspace = true }