Skip to content

dependabit / detector/src / createClassificationPrompt

Function: createClassificationPrompt()

ts
function createClassificationPrompt(url, context): string;

Defined in: packages/detector/src/llm/prompts.ts:149

Renders a classification prompt for a single URL, asking the LLM to determine the dependency type and best access method.

Parameters

ParameterTypeDescription
urlstringThe URL to classify.
contextstringSurrounding text or code comments that mention the URL, used to improve classification accuracy.

Returns

string

Rendered prompt string.

Released under the MIT License.