mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-06 22:23:45 +00:00
17 lines
582 B
TypeScript
17 lines
582 B
TypeScript
/**
|
|
* Plugin tool delivery-default hook.
|
|
* Centralizes future delivery-context defaults before final effective tool
|
|
* policy without changing plugin tool identity.
|
|
*/
|
|
import type { DeliveryContext } from "../utils/delivery-context.types.js";
|
|
import type { AnyAgentTool } from "./tools/common.js";
|
|
|
|
/** Applies delivery-context defaults to plugin tools before final tool policy. */
|
|
export function applyPluginToolDeliveryDefaults(params: {
|
|
tools: AnyAgentTool[];
|
|
deliveryContext?: DeliveryContext;
|
|
}): AnyAgentTool[] {
|
|
void params.deliveryContext;
|
|
return params.tools;
|
|
}
|