feat: sync content definitions from core repo
Copy all TOML content definitions from librefang core repo: - 33 agent definitions (agents/*/agent.toml) - 14 hand definitions with docs (hands/*/HAND.toml + SKILL.md) - 25 integration templates (integrations/*.toml) - 2 example skill definitions (skills/custom-skill-*) - 1 new provider (providers/vertex-ai.toml) Part of the framework-vs-content registry split (RFC v0.7).
This commit is contained in:
1 parent
ded26ce300
commit
17d32ed4a7
90 files changed
+13549
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
Word Counter Skill — a minimal example of a Python skill for LibreFang.
|
||||
|
||||
This skill receives a text input and returns word/sentence/character counts.
|
||||
"""
|
||||
|
||||
import re
|
||||
|
||||
|
||||
def run(input: dict) -> str:
|
||||
text = input.get("text", "")
|
||||
|
||||
words = len(text.split())
|
||||
sentences = len([s for s in re.split(r"[.!?]+", text.strip()) if s.strip()]) if text.strip() else 0
|
||||
characters = len(text)
|
||||
|
||||
return (
|
||||
f"Words: {words}\n"
|
||||
f"Sentences: {sentences}\n"
|
||||
f"Characters: {characters}"
|
||||
)
|
||||
Reference in new issue
Block a user