-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (82 loc) · 2.76 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (82 loc) · 2.76 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
[project]
name = "apodex-agent-core"
version = "0.11.0"
description = "Shared, product-neutral runtime primitives for Apodex agents"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.12"
keywords = ["agent", "llm", "runtime", "agent-loop", "tool-calling"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"anthropic[bedrock]>=0.69",
"httpx>=0.27,<1",
"jinja2>=3.1",
"openai>=1.0",
"pydantic>=2.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
tokenizer = ["tiktoken>=0.12.0"]
# ``configure_model_registry()`` reads a host-supplied YAML file. The core has
# no required dependencies, so the parser is an explicit extra rather than an
# assumption: without it registry inference is disabled and logged loudly.
registry = ["pyyaml>=6.0"]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.7",
"pyright[nodejs]>=1.1.400",
"pyyaml>=6.0",
]
[project.urls]
Homepage = "https://github.com/ApodexAI/AgentCore"
Repository = "https://github.com/ApodexAI/AgentCore"
Changelog = "https://github.com/ApodexAI/AgentCore/blob/main/CHANGELOG.md"
Issues = "https://github.com/ApodexAI/AgentCore/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["agent_core"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "FA", "B", "SIM", "RUF"]
ignore = ["E501", "RUF001", "RUF002", "RUF003"]
[tool.ruff.lint.per-file-ignores]
# ``call_llm``'s per-attempt async closures are created and awaited inside the
# same physical-attempt iteration; none escapes to observe a later loop
# binding. B023 cannot infer that lifetime and reports all 21 captured
# attempt-local values.
#
# Do NOT "fix" this by binding them as default arguments (the usual B023
# remedy): ``_finish_attempt`` MUST observe ``attempt_index`` /
# ``attempt_started`` / ``attempt_first_delta`` as they stand when it runs,
# because the empty-tool-arguments replay rebinds all three mid-iteration to
# open a second physical attempt. Snapshotting them at definition time would
# silently bill the replay against the discarded stream's attempt id.
"agent_core/runtime/loop/_call.py" = ["B023"]
[tool.pyright]
pythonVersion = "3.12"
include = ["agent_core"]
typeCheckingMode = "strict"
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.7",
"pyright[nodejs]>=1.1.400",
]