//#region src/domains/run/utils/tool-result.ts
const INKEEP_TOOL_DENIED_KEY = "__inkeepToolDenied";
function isToolResultDenied(result) {
	return !!result && typeof result === "object" && INKEEP_TOOL_DENIED_KEY in result && result[INKEEP_TOOL_DENIED_KEY] === true;
}
function createDeniedToolResult(toolCallId, reason) {
	return {
		[INKEEP_TOOL_DENIED_KEY]: true,
		toolCallId,
		reason
	};
}

//#endregion
export { INKEEP_TOOL_DENIED_KEY, createDeniedToolResult, isToolResultDenied };