sync update from LAN repo (source master @ c21a2a4a)
This commit is contained in:
1 parent
ea9dcff9c0
commit
66a443e915
140 files changed
+13777
-1040
No files matched your search
+10
-1
@@ -273,7 +273,16 @@ def skill_view_tool(name: str, runtime: ToolRuntime) -> str:
|
||||
Args:
|
||||
name: The skill name (hyphen-case, e.g. 'my-skill').
|
||||
"""
|
||||
return skill_view_impl(name, _resolve_active_agent_id(runtime), _resolve_extra_skills(runtime))
|
||||
result = skill_view_impl(name, _resolve_active_agent_id(runtime), _resolve_extra_skills(runtime))
|
||||
head = result.lstrip()[:200].lower()
|
||||
if not ((head.startswith("skill '") and "not found" in head) or head.startswith("error reading skill")):
|
||||
try:
|
||||
from deerflow.skills.usage import bump_use, runtime_use_event_key
|
||||
|
||||
bump_use(name, event_key=runtime_use_event_key(runtime))
|
||||
except Exception:
|
||||
pass
|
||||
return result
|
||||
|
||||
|
||||
def _resolve_skills_container_base_path() -> str:
|
||||
|
||||
Reference in new issue
Block a user