Skip to content

Commit c0b5dd5

Browse files
authored
refactor(codegen): generate schema bindings directly (#136)
* refactor(codegen): generate schema bindings directly * refactor(codegen): inherit shared model configuration * refactor(codegen): name inline schema variants * refactor(codegen): name all anonymous variants
1 parent ce23c4a commit c0b5dd5

10 files changed

Lines changed: 1050 additions & 1926 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ gen-all: ## Generate all code from schema
1111
@uv run ruff check --fix
1212
@uv run ruff format .
1313

14+
.PHONY: gen-check
15+
gen-check: ## Verify generated schema bindings without changing the worktree
16+
@echo "🚀 Checking generated schema bindings"
17+
@uv run --frozen python -m scripts.gen_schema --check
18+
1419
.PHONY: check
1520
check: ## Run code quality tools.
1621
@echo "🚀 Checking lock file consistency with 'pyproject.toml'"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers = [
2222
]
2323
dependencies = [
2424
"pydantic>=2.7",
25+
"pydantic-core>=2.18.1",
2526
]
2627

2728

@@ -32,7 +33,7 @@ Documentation = "https://agentclientprotocol.github.io/python-sdk/"
3233

3334
[dependency-groups]
3435
dev = [
35-
"datamodel-code-generator>=0.71.0",
36+
"datamodel-code-generator==0.71.0",
3637
"pytest>=7.2.0",
3738
"pytest-asyncio>=0.21.0",
3839
"tox-uv>=1.11.3",

0 commit comments

Comments
 (0)