-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (48 loc) · 2.08 KB
/
Copy pathpyproject.toml
File metadata and controls
52 lines (48 loc) · 2.08 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
[project]
name = "microsoft-agent-framework-governed-agent"
version = "0.1.0"
description = "Agent Assembly governance demo with Microsoft Agent Framework"
requires-python = ">=3.12"
dependencies = [
# Pinned exactly: the only newer release, 0.0.2, was yanked upstream
# ("have wrong to release"). 0.0.1rc3 remains the latest installable
# version on PyPI. Re-evaluate once a non-yanked 0.0.2+ is published.
"agent-assembly==0.0.1rc5",
]
[project.optional-dependencies]
# The live integration drives the real Microsoft Agent Framework. The offline
# smoke (what CI runs with `--extra dev`) needs none of this heavy, pre-release
# transitive tree — its governance assertions `importorskip("agent_framework")`
# and skip cleanly when it is absent.
#
# Microsoft Agent Framework ships on PyPI as `agent-framework` and imports as the
# top-level module `agent_framework`. The Agent Assembly adapter patches
# `agent_framework.FunctionTool.invoke` — the single async coroutine through which
# every function tool executes — so governance attaches across the 1.x line.
# NOTE: `agent-framework` pulls pre-release sub-distributions, so an installer that
# does not allow pre-releases (uv) needs `--prerelease=allow`:
# uv sync --extra live --prerelease=allow
live = [
"agent-framework>=1.11.0,<2",
]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
[tool.uv]
# `agent-framework` (the `live` extra) pulls pre-release sub-distributions, which
# uv refuses to resolve by default. Allow pre-releases for this example so
# `uv lock` / `uv sync --extra live` resolve without a per-command flag. The base
# / `dev` install path pulls no pre-releases regardless.
prerelease = "allow"
[tool.mypy]
# The Microsoft Agent Framework (`agent_framework`) ships no type stubs and is
# only present under the `live` extra, so its import is unresolved under the
# `dev`-only typecheck. Treat it as untyped rather than failing the whole run.
[[tool.mypy.overrides]]
module = "agent_framework"
ignore_missing_imports = true