Extension points¶
The public repository exposes two stable interfaces so that separate packages (for example a private commercial layer) can extend PharmaSkills without forking.
Connector interface¶
pharmaskills.connectors.base.Connector is a typing.Protocol:
name: str- short identifier used in the CLI and MCP tool names.search(query, **params) -> ConnectorResultfetch(identifier, **params) -> ConnectorResult
ConnectorResult carries data, source_url, retrieved_at and cached. Connectors must use the
shared HTTP client (timeouts, retries, cache, user agent) and must never send user documents or study
data to a remote service.
Third-party connectors register through the pharmaskills.connectors entry-point group.
Validator plugin interface¶
pharmaskills.validators.Validator is a typing.Protocol:
id: str,applies_to: set[str](dataset or document standards).validate(target: Path, options: Mapping[str, Any]) -> ValidationReport
ValidationReport lists issues with rule, severity, domain, variable, count and states which
engine produced it. Plugins register through the pharmaskills.validators entry-point group.