feat: increase loaded_skills block limit to 100k characters (#335)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -104,6 +104,13 @@ async function loadMemoryBlocksFromMdx(): Promise<CreateBlock[]> {
|
||||
block.description = frontmatter.description;
|
||||
}
|
||||
|
||||
if (frontmatter.limit) {
|
||||
const limit = parseInt(frontmatter.limit, 10);
|
||||
if (!Number.isNaN(limit) && limit > 0) {
|
||||
block.limit = limit;
|
||||
}
|
||||
}
|
||||
|
||||
// Set read-only for skills blocks (managed by Skill tool, not memory tools)
|
||||
if ((READ_ONLY_BLOCK_LABELS as readonly string[]).includes(label)) {
|
||||
block.read_only = true;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
label: loaded_skills
|
||||
description: A memory block to store the full instructions and capabilities from each loaded SKILL.md file in this block. Do not manually edit this block - use the Skill tool to load and unload skills.
|
||||
limit: 100000
|
||||
---
|
||||
|
||||
[CURRENTLY EMPTY]
|
||||
|
||||
Reference in New Issue
Block a user