eslint-plugin-copilot Documentation / _internal/copilot-customization-names / getAgentName
Function: getAgentName()
function getAgentName(
filePath: string,
frontmatter: Readonly<{
body: string;
content: string;
fields: ReadonlyMap<string, FrontmatterField>;
}> | null
): string;
Defined in: _internal/copilot-customization-names.ts:82
Get the effective custom-agent name.
Parametersâ
| Parameter | Type |
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| filePath | string |
| frontmatter | | Readonly<{ body: string; content: string; fields: ReadonlyMap<string, FrontmatterField>; }> | null |
Returnsâ
string