File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ def parse_frontmatter(cls, data: t.Any) -> t.Any:
6262class 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 :
You can’t perform that action at this time.
0 commit comments