Skip to content

targets

agent_cover.instrumentation.prompts.targets

This module defines the targets for instrumenting prompt classes.

It specifies the modules, classes, and methods that AgentCover should instrument to track prompt usage.

Functions

get_prompt_targets()

Returns the list of supported prompt targets.

This function provides access to the list of prompt targets that AgentCover will instrument.

Returns:

Type Description
TargetList

A list of dictionaries, where each dictionary represents a

TargetList

prompt target.

Source code in src/agent_cover/instrumentation/prompts/targets.py
def get_prompt_targets() -> TargetList:
    """Returns the list of supported prompt targets.

    This function provides access to the list of prompt targets that
    AgentCover will instrument.

    Returns:
        A list of dictionaries, where each dictionary represents a
        prompt target.
    """
    return SUPPORTED_FRAMEWORKS