Skip to main content

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