feat: integrate Jinja2 templating for agent responses and memory consolidation

- Added Jinja2 template support for various agent responses, including identity, skills, and memory consolidation.
- Introduced new templates for evaluating notifications, handling subagent announcements, and managing platform policies.
- Updated the agent context and memory modules to utilize the new templating system for improved readability and maintainability.
- Added a new dependency on Jinja2 in pyproject.toml.
This commit is contained in:
Jack Lu
2026-04-04 14:18:22 +08:00
parent 7229a81594
commit d436a1d678
16 changed files with 180 additions and 100 deletions
+1
View File
@@ -48,6 +48,7 @@ dependencies = [
"chardet>=3.0.2,<6.0.0",
"openai>=2.8.0",
"tiktoken>=0.12.0,<1.0.0",
"jinja2>=3.1.0,<4.0.0",
]
[project.optional-dependencies]