export function buildPluginToolSourceMetadata(plugin) {
    return {
        kind: "plugin",
        pluginId: plugin.id,
        pluginDisplayName: plugin.displayName,
    };
}
export function toPluginToolDefinition(plugin, tool) {
    return {
        ...tool,
        source: `plugin:${plugin.id}`,
        sourceMetadata: buildPluginToolSourceMetadata(plugin),
    };
}
//# sourceMappingURL=contracts.js.map