write this prompt for Cline AI-agent:
@/src/schemas/note.ts @/src/services/note-manager.ts
create a schema and message manager like note.ts.
Messages will be between the Telegram user (that's @/src/schemas/user.ts) and an AI-agent.
You need to save the last 100 messages, when you reach 100 messages,
you need to take the last 50 messages and summarize them,
make a stub function for that
- Anthropic Constitutional Prompting format
- Anthropic Tool Use / Function Calling with structured input,