Skip to content

Commit 45c9dcf

Browse files
committed
back to mellea 0.3.*
1 parent 69642eb commit 45c9dcf

3 files changed

Lines changed: 827 additions & 34 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "toolguard"
7-
version = "0.2.11"
7+
version = "0.2.12"
88
description = "Policy adherence code generation for guarding AI agent tools"
99
readme = "README.md"
1010

@@ -13,14 +13,14 @@ authors = [
1313
{ name = "David Boaz", email = "davidbo@il.ibm.com" },
1414
]
1515

16-
requires-python = ">=3.11,<3.14"
16+
requires-python = ">=3.10,<3.14"
1717

1818
dependencies = [
1919
"datamodel-code-generator>=0.52.2",
2020
"langchain-core>=0.3.72",
2121
"litellm<=1.82.6", # https://github.com/BerriAI/litellm/issues/24512
2222
"markdown>=3.7",
23-
"mellea>=0.4.0",
23+
"mellea<0.4.0", # mellea 0.4.0 requires python >=3.11
2424
"pydantic>=2.11.0",
2525
"pytest>=8.3.3",
2626
"pytest-asyncio>=1.3.0",

src/toolguard/buildtime/gen_py/mellea_simple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def __init__(self, llm: I_TG_LLM):
1616
self.llm = llm
1717
self.formatter = TemplateFormatter(model_id="")
1818

19-
async def _generate_from_context(
19+
# _generate_from_context() for mellea > 0.4.0
20+
async def generate_from_context(
2021
self,
2122
action: Component | CBlock,
2223
ctx: Context,

0 commit comments

Comments
 (0)