One agent: plugins/ /agents/ .md.
| 219 | |
| 220 | @dataclass |
| 221 | class AgentSource: |
| 222 | """One agent: plugins/<plugin>/agents/<name>.md.""" |
| 223 | |
| 224 | plugin: str |
| 225 | name: str |
| 226 | path: Path |
| 227 | frontmatter: dict |
| 228 | body: str |
| 229 | |
| 230 | @property |
| 231 | def description(self) -> str: |
| 232 | return (self.frontmatter.get("description") or "").strip() |
| 233 | |
| 234 | @property |
| 235 | def model(self) -> str: |
| 236 | return (self.frontmatter.get("model") or "inherit").strip() |
| 237 | |
| 238 | @property |
| 239 | def tools(self) -> list[str]: |
| 240 | return split_tools_list(self.frontmatter.get("tools")) |
| 241 | |
| 242 | @property |
| 243 | def color(self) -> str: |
| 244 | return (self.frontmatter.get("color") or "").strip() |
| 245 | |
| 246 | |
| 247 | @dataclass |
no outgoing calls