Skip to content

Commit 681db8c

Browse files
committed
fix linting errs
1 parent 31e5928 commit 681db8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dreadnode/agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ def validate_tools(cls, value: t.Any) -> t.Any:
130130

131131
return tools
132132

133-
def model_post_init(self, context: t.Any) -> None:
133+
def model_post_init(self, _context: t.Any) -> None:
134134
"""Initialize the agent and inject default tools."""
135135
if (
136136
not any(isinstance(t, Skills) for t in self.tools)
137137
and not any(t.name == "view_skill" for t in self.all_tools)
138138
and Skills.load("skills")
139139
):
140-
self.tools.append(Skills(skills_dir="skills"))
140+
self.tools.append(Skills())
141141

142142
def __repr__(self) -> str:
143143
description = shorten_string(self.description or "", 50)

dreadnode/agent/tools/skills.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def parse_frontmatter(cls, data: t.Any) -> t.Any:
6262
class Skills(Toolset):
6363
"""Tools for interacting with agent skills."""
6464

65-
skills_dir: str = Config("skills")
65+
skills_dir: str = Config(default="skills", expose_as=str)
66+
"""The directory where the skills are stored."""
6667

6768
@tool_method
6869
def view_skill(self, name: str) -> str:

0 commit comments

Comments
 (0)